From Fermat's to Brilliant

Let x x be a prime number larger than 3. What is the probability that x 2 x 1 1 x|2^{x-1} - 1 and x 3 x 1 1 x | 3^{x-1} - 1 ?

1 4 \frac14 0 0 1 2 \frac12 1 1

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Sam Bealing
Jun 12, 2016

Fermat's Little Theorem gives for all primes p p :

a p 1 1 ( m o d p ) a p 1 1 0 ( m o d p ) p a p 1 a^{p-1} \equiv 1 \pmod{p} \implies a^{p-1} -1 \equiv 0 \pmod{p} \implies p \vert a^{p-1}

The condition is that a a and p p are comprime but because p > 3 p>3 it follows g c d ( p , 2 ) = g c d ( p , 3 ) = 1 gcd(p,2)=gcd(p,3)=1 so:

p 2 p 1 1 p 3 p 1 1 p \vert 2^{p-1}-1 \quad p \vert 3^{p-1}-1

This applies to all p p so the probability is:

1 \color{#20A900}{\boxed{\boxed{1}}}

Moderator note:

Simple standard approach.

Even if the problem has not stated "prime larger than 3", the probability still would have been 1.

Mateo Matijasevick - 5 years ago

@achal jain I do not like using probability, because there is no uniform distribution on countably infinite terms. That makes it trickier to rigorously express what you mean.

Calvin Lin Staff - 4 years, 12 months ago

Log in to reply

Thanks for your feedback. Your are right , Will take care of it next time.

Achal Jain - 4 years, 12 months ago
Sumukh Bansal
Nov 9, 2017

According to Fermat's Little Theorem all prime numbers p p : a p 1 1 ( m o d p ) a p 1 1 0 ( m o d p ) p a p 1 a^{p-1} \equiv 1 \pmod{p} \implies a^{p-1} -1 \equiv 0 \pmod{p} \implies p \vert a^{p-1} The equations satisfy the above equations.So, the probability is 1 \color{#3D99F6}{\boxed{1}}

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...