Solution

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

Write . In Gauss's lemma, for the multiplier 2, precisely the integers with give residues . Their number is
It is even, so the Legendre symbol : 2 is a quadratic residue modulo . For completeness, the sign rule follows by replacing those large residues by their negatives; the resulting absolute residues permute . Multiplying them and cancelling their nonzero product gives , equivalent to the residue assertion by Euler's criterion.
Now take the prime . The condition gives , so . Thus divides . For integers , (true at 4 and preserved on increasing ), so this divisor is proper and is composite. At , the divisor is the number itself: . The congruence still holds, but it does not establish compositeness.

New to topics? Read the docs here!