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 p are congruent to 1 2 , 2 2 , 3 2 , , ( ( p 1 ) 2 ) 2 , where p is an odd prime. Hence prove that if p > 3 , the sum of the quadratic residues is divisible by p .

Answers

Proof. Every quadratic residue modulo p is by definition congruent to 1 2 , 2 2 , , ( p 1 ) 2 . Moreover, a 2 ( p a ) 2 ( mod p ) for every a , thus every quadratic residue modulo p is by definition congruent to 1 2 , 2 2 , , ( ( p 1 ) 2 ) 2 .

Note that the classes of the ( p 1 ) 2 integers are distinct, otherwise there are less than ( p 1 ) 2 classes of quadratic residues. But Problem 12 shows that there are exactly ( p 1 ) 2 such classes. So every quadratic residue modulo p is congruent to one and only one integer in the set { 1 2 , 2 2 , 3 2 , , ( ( p 1 ) 2 ) 2 } .

This shows that the sum S of residues modulo p satisfies

S j = 1 ( p 1 ) 2 j 2 ( mod p )

Using

j = 1 n j 2 = n ( n + 1 ) ( 2 n + 1 ) 6 ,

we obtain, for n = ( p 1 ) 2 ,

S ( p 1 2 ) ( p + 1 2 ) p 6 ( p 2 1 ) p 24 ( mod p ) ,

where ( p 2 1 ) p 24 = j = 1 ( p 1 ) 2 j 2 is an integer. Thus 24 ( p 2 1 ) p , and 24 p = 1 , since p > 3 by hypothesis, thus 24 p 2 1 is true for every prime p > 3 , so

S p 2 1 24 p 0 ( mod p ) .

If p > 3 , the sum of the quadratic residues is divisible by p . □

User profile picture
2024-10-18 09:30
Comments