MathLabs
TheoremProved

Euler's theorem (totient)

Statement

If gcd⁡(a,n)=1\gcd(a,n)=1, then aφ(n)≡1(modn)a^{\varphi(n)}\equiv 1 \pmod{n}, where φ(n)\varphi(n) (Euler's totient function) counts the integers in {1,…,n}\{1,\dots,n\} coprime to nn.

Why is it true?

This generalizes Fermat's little theorem from prime moduli to arbitrary moduli: the same permutation argument works on the φ(n)\varphi(n) residues invertible mod nn, instead of on all of 1,…,p−11,\dots,p-1.

Proof sketch

Let R={r1,…,rφ(n)}R=\{r_1,\dots,r_{\varphi(n)}\} be the residues mod nn coprime to nn. Multiplication by aa permutes RR, since gcd⁡(a,n)=1\gcd(a,n)=1. Multiplying all elements of RR before and after this permutation gives aφ(n)∏ri≡∏ri(modn)a^{\varphi(n)}\prod r_i \equiv \prod r_i \pmod n; cancelling ∏ri\prod r_i (invertible mod nn) yields aφ(n)≡1(modn)a^{\varphi(n)}\equiv1\pmod n.

Stated by

Proved by

Topics that use this theorem

Related theorems

Step-by-step proofs

No step-by-step proof yet for this theorem.

References

  1. Leonhard Euler (1763). Theoremata arithmetica nova methodo demonstrata
  2. G. H. Hardy, E. M. Wright (2008). An Introduction to the Theory of Numbers · DOI:10.1093/oso/9780199219858.001.0001