Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.1.15 (Sum of the quadratic residues in $[1,p)$)

Exercise 3.1.15 (Sum of the quadratic residues in $[1,p)$)

Show that if p is a prime of the form 4 k + 1 then the sum of the quadratic residues ( mod p ) in the interval [ 1 , p ) is p ( p 1 ) 4 .

Answers

Proof. Let p = 4 k + 1 a prime number. By Problem 15, there are ( p 1 ) 2 quadratic residues r [ [ 1 , p 1 ] ] . Let R be the set of such residues:

R = { r [ [ 1 , p 1 ] ] a , r a 2 ( mod p ) } .

Then | R | = ( p 1 ) 2 .

Here p 1 ( mod 4 ) , thus ( 1 p ) = ( 1 ) ( p 1 ) 2 = 1 , so 1 is a quadratic residue. Since the product of quadratic residues is a quadratic residue, if r is a quadratic residue modulo p , so is r , thus the congruent number p r is also a quadratic residue. Moreover, if 1 r p 1 , then 1 p r p 1 . This shows that

r , r R p r R .

This allows us to define the map

f { R R r p r .

For all r R , ( f f ) ( r ) = p ( p r ) = r , so f f = 1 R . Moreover, if f ( r ) = r , then 2 r = p , where p is odd, thus p r . Since 1 r p 1 , this is impossible, therefore f ( x ) x for every r R . This shows that f is an involution without fixed point. Therefore we can group all residues in R by pairs, so that the set of pairs { r , f ( r ) } = { r , p r } is a partition of R . Since | R | = ( p 1 ) 2 , there are ( p 1 ) 4 such pairs:

R = { r 1 , p r 1 } { r 2 , p r 2 } { r ( p 1 ) 4 , p r ( p 1 ) 4 } ,

where r 1 , , r ( p 1 ) 4 are chosen arbitrarily in each pair.

Therefore, the sum s of the quadratic residues modulo p in the interval [ [ 1 , p [ [ is given by

s = i = 1 ( p 1 ) 4 [ r i + ( p r i ) ] = p p 1 4 .

Note: This shows also that every quadratic residue modulo p , where p 1 ( mod 4 ) , is congruent to ± r 1 , ± r 2 , , ± r ( p 1 ) 4 , as in the examples of Problem 6(a) for p = 13 , 17 , 29 , 37 .

User profile picture
2024-10-19 08:08
Comments