Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.1.16* (The product of the quadratic residues is congruent to $\pm 1$)

Exercise 3.1.16* (The product of the quadratic residues is congruent to $\pm 1$)

Show that if a is a quadratic residue modulo m , and ab 1 ( mod m ) , then b is also a quadratic residue. Then prove that the product of quadratic residues modulo p is congruent to + 1 or 1 according as the prime p is of the form 4 k + 3 or 4 k + 1 .

Answers

Proof. Let p be an odd number. Write 𝔽 p the field pℤ with p elements. Then 𝔽 p is an Abelian group. Let S be the subset of squares if 𝔽 p :

S = { y 𝔽 p x 𝔽 p , y = x 2 } .

(Note that r is a quadratic residue modulo p if and only if [ r ] p S .)

Then S is a subgroup of 𝔽 p :

  • 1 = 1 2 S , so S .
  • If y S , z S , then y = a 2 , z = b 2 for some a , b S , thus yz = a 2 b 2 = ( ab ) 2 S .
  • If y S , y = a 2 , thus y 1 = ( a 2 ) 1 = ( a 1 ) 2 , so y 1 S .

The last item shows that if a is a quadratic residue, so that [ a ] p S , and if b is an inverse of a modulo p , i.e. ab 1 ( mod p ) , then [ b ] p = [ a ] p 1 S , so b is a quadratic residue. By Problem 11 (second proof), the order of S = im φ is | S | = ( p 1 ) 2 .

Since x 1 S for all x S , we may consider the map

g { S S x x 1 .

For all x S , ( g g ) ( x ) = ( x 1 ) 1 = x , so g g = 1 S , g is an involution. If x is a fixed point for g , then x 1 = x , so x 2 = 1 . Since 𝔽 p is a field, x = 1 or x = 1 , which are their own inverses. The element 1 is always in S , but 1 S if and only if ( 1 p ) = 1 , that is if p 1 ( mod 4 ) .

  • If p 1 ( mod 4 ) , we obtain a partition of S with pairs { x , x 1 } , where x ± 1 , and singletons { 1 } , { 1 } . There are 2 singletons, and ( p 5 ) 4 pairs:

    S = { { 1 } , { 1 } , { x 1 , x 1 1 } , { x 2 , x 2 1 } , , { x ( p 5 ) 4 , x ( p 5 ) 4 1 } } .

    Therefore

    y S y = i = 1 ( p 5 ) 4 ( x i x i 1 ) = 1 .

  • If p 3 ( mod 4 ) , we obtain a partition of S with pairs { x , x 1 } , where x 1 , and singleton { 1 } . There are 1 singleton, and ( p 3 ) 4 pairs:

    S = { 1 } { x 1 , x 1 1 } { x 2 , x 2 1 } { x ( p 3 ) 4 , x ( p 3 ) 4 1 } .

    Therefore

    y S y = i = 1 ( p 3 ) 4 ( x i x i 1 ) = 1 .

Write s = r R r the product of quadratic residues in [ [ 1 , p [ [ , where

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

as in Problem 15. Then [ s ] p = y S y . Therefore

s = r R r { 1 ( mod p )  if  p 1 ( mod 4 ) , 1 ( mod p )  if  p 3 ( mod 4 ) .
User profile picture
2024-10-19 09:19
Comments