Fermat's Little Theorem
Fermat's Little Theorem (FℓT)
For all prime numbers
Let
Since
We prove the equivalent result, that for all prime numbers
Now consider the list of
in
- The element
does not exist in the list - The elements in the list are all distinct
For fact 1, assume for the sake of contradiction, that
By the corollary Inverses in Z_m,
Using modular arithmetic, LS =
For fact 2, assume for the sake contradiction, that two elements in the list are the same, and hence that
Multiplying on both sides of the above equation by
Using modular arithmetic, LS =
Putting facts 1 and 2 together, means the elements in the list
must be non-zero elements in
Since lists (1) and (2) consist of the same elements in possible different order, the products of the two lists must be equal. Hence
and factoring each
Now from the corollary Inverses in Z_p,
Corollary of Fermat's Little Theorem
For all prime numbers
Let
In the case that
In the case that
Examples
Solve the congruence relation
Let
By corollary of FℓT
Since
for all integers
Since
for all integers
Since
for all integers
Putting all there together, we get
for all integers
Now, we can use a table to check the possible values of
Therefore, the solutions are given by all integers