Fermat's little theorem

Layer 0 — Mathematicsin the number-theory subtree

For prime p and integer a with gcd(a,p)=1: a^(p-1) ≡ 1 (mod p). Generalised by Euler to a^φ(n) ≡ 1 (mod n). Basis of primality testing.

Related concepts

Explore Fermat's little theorem on the interactive knowledge graph →