Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/ia/paper-4/1e/solution

Fermat's little theorem states that if is prime, then for every integer ; equivalently, when .
If and , then
because is odd. This contradicts Fermat's theorem, so has no solution.
If the primes congruent to were , set . Any prime divisor of is odd and has as a quadratic residue. The preceding result forces , but divides none of the because . This contradiction proves that infinitely many primes are congruent to .

New to topics? Read the docs here!