You are not logged in.
Pages: 1
Hello
I am doing some work on some Mersenne primes and can't figure out the following;
Why is this always divisible by p when p is prime?
"Time not important. Only life important." - The Fifth Element 1997
Offline
Hi;
That is called Fermat's little theorem and was stated by him around 1640. The theorem states
If p is a prime and a is any integer not divisible by p, then
is divisible by p.In your case you are choosing a = 2 and all the primes greater than 2 satisfy the condition of not dividing 2.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Thanks so much!
Now I can continue with my mersenne prime theorem.
"Time not important. Only life important." - The Fifth Element 1997
Offline
Hi;
You might want to take a look at some of what is already known about them here:
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
Pages: 1