Solution

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

Put . The nonzero quadratic residues in the finite field form a subgroup of size : the group homomorphism has kernel . Each square satisfies by Fermat's little theorem. Since a nonzero polynomial of degree has at most roots of a polynomial, these are all the roots of . For any other nonzero , Fermat's theorem gives , so . Thus Euler's criterion follows, and multiplication gives
Both sides are or , which are distinct modulo the odd prime number , so . Taking in Euler's criterion gives , which is for and for .

New to topics? Read the docs here!