TOPICS
Search

Power Residue


For a positive integer exponent e and positive modulus n, an eth power residue modulo n is a residue class represented by x^e for some integer x. For example, the cases e=2 and e=3 give quadratic residues and cubic residues, respectively.

Let S_e(n) be the mean of the least nonnegative representatives of x^e as x ranges over 0,...,n-1, and let s_e(n) be the number of those x with n|x^e. For odd e,

 S_e(n)=(n-s_e(n))/2.

Indeed, replacing x by -x modulo n permutes the inputs and negates each power modulo n. The two least representatives sum to n for nonzero residue classes and to zero otherwise. The mean counts each input, allowing repetitions of the same residue. Farland (2026) formalized this identity and gave a general expression for the mean using Dirichlet characters.


See also

Cubic Residue, Quadratic Residue, Residue Class

Explore with Wolfram|Alpha

References

Farland, J. S. "The Mean eth Power Residue Modulo Any n, Formalized in Lean." Zenodo, 2026. https://doi.org/10.5281/zenodo.24617088.

Cite this as:

Weisstein, Eric W. "Power Residue." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/PowerResidue.html

Subject classifications