Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2003/ia/paper-4/6c/iii/solution

For , part (i) constructs a solution to . It is nonzero modulo , so and are distinct for odd . Any other solution obeys
The Euclid lemma forces or . Hence there are exactly two solutions. For , a solution to would have , but part (ii) would imply , impossible because cannot divide two. Therefore
These two cases exhaust all odd primes.

New to topics? Read the docs here!