Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.1.14 (The sum of the quadratic residues is divisible by $p$)
Exercise 3.1.14 (The sum of the quadratic residues is divisible by $p$)
Prove that the quadratic residues modulo are congruent to , where is an odd prime. Hence prove that if , the sum of the quadratic residues is divisible by .
Answers
Proof. Every quadratic residue modulo is by definition congruent to . Moreover, for every , thus every quadratic residue modulo is by definition congruent to .
Note that the classes of the integers are distinct, otherwise there are less than classes of quadratic residues. But Problem 12 shows that there are exactly such classes. So every quadratic residue modulo is congruent to one and only one integer in the set .
This shows that the sum of residues modulo satisfies
Using
we obtain, for ,
where is an integer. Thus , and , since by hypothesis, thus is true for every prime , so
If , the sum of the quadratic residues is divisible by . □