View Full Version : Modular arithmetic
If p is a prime and a an integer coprime with p, why is
a^{\frac{p-1}{2}}\equiv -1 mod p ?
micromass
Sep3-11, 11:15 AM
It's not true. Consider p=5 and a=4.
Yes, i was trying some examples and I think it only works with primitive roots... But why?
micromass
Sep3-11, 11:40 AM
Are you aware of Fermat's little theorem?? Try to use that...
I like Serena
Sep3-11, 11:41 AM
Hah, that's basically the definition of a primitive root. :smile:
Any co-prime "a" has a "period" indicating how soon it gets to "1".
Fermat's little theorem guarantees that (p-1) will bring it back to "1".
The actual period will be a divider of (p-1).
Only for primitive roots, the period is exactly (p-1).
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.