Solution

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

Write , and . The residues are exactly the odd factors of , in reverse order. Hence
by Wilson's theorem. It follows that the odd-residue squared product modulo a prime is
Thus it is for and for .

New to topics? Read the docs here!