Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2001/ia/paper-4/7e/a/solution

If is a prime number and , multiplication by permutes the nonzero residue classes modulo : implies because has a multiplicative inverse. Multiplying all the permuted classes gives
The factorial is a nonzero element of the finite field , so cancellation is valid. Therefore
which is Fermat's little theorem.

New to topics? Read the docs here!