Solution

ID: past-exam-of-the-probability-statistics-and-options-ii-course-of-the-university-of-oxford/2010/c/c2/ii/solution

For , the zero residue contributes zero. Multiplication by any nonzero permutes the nonzero residues, so the sum satisfies in . If , choose a primitive root ; then , forcing . If , every nonzero term equals one, so in the field.
The printed display also mentions , although its introductory assumption is . For that extra case the sum of the integer values for is , so that branch is consistent too. The result is

New to topics? Read the docs here!