Weighted complete Legendre-symbol sum
ID: weighted-complete-legendre-symbol-sum
For the first statement, the first supplementary law for quadratic reciprocity gives , where is the Legendre symbol. Pairing with givesThe same pairing in the complete Legendre-symbol sum shows that this half sum is zero, proving the exact equality.
For the second statement, multiplication by permutes the nonzero residue classes modulo . Reducing the weighted sum modulo and using multiplicativity of the Legendre symbol therefore gives . The coefficient is either or , and hence is invertible for . Thus . The restriction is necessary: at , .
New to topics? Read the docs here!