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 iswhere 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 . ThereforeThe 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 satisfiesin the field , so or . Thus there are
Let be the sum of the nonzero quadratic residues. Each has two square roots by part (iii), sowhere 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 .
Articles by others on the same topic
There are currently no matching articles.