Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2008/ia/paper-4/6d/b/solution

Take a generator of the multiplicative group of a finite field , which has order . Write . Since any possible nonzero base is , the condition of being a th power is
By part (a), this linear congruence is soluble exactly when divides . Meanwhile
Thus the required test is
The exponent residue classes divisible by are , so there are exactly distinct nonzero th powers. Equivalently, part (a) shows each value has exactly preimages under the power map.

New to topics? Read the docs here!