Famous Theorems of Mathematics/Fermat's little theorem

From testwiki
Jump to navigation Jump to search

Fermat's little theorem (not to be confused with [[../Fermat's last theorem/]]) states that if p is a prime number, then for any integer a, apa will be evenly divisible by p. This can be expressed in the notation of modular arithmetic as follows:

apa(modp).

A variant of this theorem is stated in the following form: if p is a prime and a is an integer coprime to p, then ap11 will be evenly divisible by p. In the notation of modular arithmetic:

ap11(modp).

Template:BookCat