Proof of a^{\frac{p-1}{2}}=-1 mod p

  • Level: Graduate 
  • Thread starter Thread starter yavanna
  • Start date Start date
  • Tags Tags
    Arithmetic
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
4 replies · 2K views
yavanna
Messages
10
Reaction score
0
If [itex]p[/itex] is a prime and [itex]a[/itex] an integer coprime with [itex]p[/itex], why is

[itex]a^{\frac{p-1}{2}}\equiv -1 mod p[/itex] ?
 
Physics news on Phys.org
Yes, i was trying some examples and I think it only works with primitive roots... But why?
 
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).