For a positive integer exponent and positive modulus
, an
th power residue modulo
is a residue class represented
by
for some integer
. For example, the cases
and
give quadratic residues
and cubic residues, respectively.
Let be the mean of the least nonnegative
representatives of
as
ranges over
, and let
be the number of those
with
. For odd
,
Indeed, replacing
by
modulo
permutes the inputs and negates each power modulo
. The two least representatives sum to
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.