Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2018/ii/paper-2/1g/solution

For an odd prime , the Legendre symbol is
Gauss lemma says that if and of the least positive residues of
exceed , then .
For , none of needs reduction modulo , and the terms exceeding are those with . Hence
Checking shows that has the same parity as . Therefore
By quadratic reciprocity, and because ,
The three factors are , respectively, so

New to topics? Read the docs here!