Fermat's little theorem

Home > Mathematics > Number theory > Modular arithmetic > Fermat's little theorem

Fermat's little theorem states that if p is a prime number and a is an integer that is not divisible by p, then a^(p-1) ≡ 1 (mod p).