Library Web

What is Fermat's little theorem?

Fermat's little theorem is a fundamental result in elementary number theory stating that if $p$ is a prime number, the $p$-th power of any integer $a$ is congruent to $a$ modulo $p$. Named after Pierre de Fermat, who stated it in 1640 without proof, it forms the basis for primality tests. Leonhard Euler later published the first known proof of the theorem in 1736.

What we know

Where to go next

Sources