Euler's Theorem
If gcd(a,n)=1 then a^{φ(n)} ≡ 1 (mod n).
Euler's Theorem: Let and let . If the greatest common divisor of and is (written ), then
where is Euler's totient function, defined by
As usual, means divides .
Remarks
This follows immediately from Lagrange's theorem applied to the group of units , a finite group with . The special case prime is Fermat's little theorem.
Examples
- , : , and .
- , : , and .
- The hypothesis matters: for , we have , and indeed .