A primitive root modulo is a residue class generating the cyclic multiplicative group , so its order is . If is one generator, all generators are with . Thus the number is
where is Euler's totient function. This includes , with .
For , the zero residue contributes zero. Write . Multiplication by any nonzero permutes these residues, so in . If , choose a primitive root ; then , and forces .
If , every nonzero has , so . Therefore
The source also lists , although its premise assumes . For that separate case, the integer sum has terms each equal to one, so it is zero modulo .
The Legendre symbol equal to says that is a nonzero square modulo . Choose one root . Then is another root, distinct because is odd. Any solution satisfies
in the field , so or . Thus there are
Let be the sum of the nonzero quadratic residues. Each has two square roots by part (iii), so
where part (ii) applies because makes not divide . Since is invertible modulo , .
The sum of all nonzero classes is . Subtracting shows that the sum of quadratic nonresidues is also zero. Consequently both requested sums vanish modulo .
Part (ii), with exponent , shows that a prime fails to divide the sum precisely when divides . The positive divisors are . Adding one gives , of which the primes are
For these primes the sum is modulo ; for every other prime it is zero.

Articles by others on the same topic (0)

There are currently no matching articles.