Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.1.11 (There are equally many residues and non residues for an odd prime)

Exercise 3.1.11 (There are equally many residues and non residues for an odd prime)

Let g be a primitive root of an odd prime p . Prove that the quadratic residues modulo p are congruent to g 2 , g 4 , g 6 , , g p 1 and that the non residues are congruent to g , g 3 , , g p 2 . Thus there are equally many residues and non residues for an odd prime.

Answers

Proof.

First proof.

Let g be a primitive root of an odd prime p . Then every integer x such that p x satisfies x = g j for some j [ [ 1 , p 1 ] ] (where g p 1 = 1 ).

  • If j is even, then j = 2 k for some integer k , and x ( g k ) 2 ( mod p ) is a quadratic residue.
  • If j is odd, then j = 2 k + 1 . Assume for contradiction that x is a quadratic residue. Then g 2 k + 1 x a 2 ( mod p ) , where a . If g ¯ ( = g p 2 ) is an inverse of g modulo p , i.e. g g ¯ 1 ( mod p ) , then g ( a g ¯ k ) 2 = b 2 ( mod p ) , where b = a g ¯ k . But then g ( p 1 ) 2 = b p 1 1 ( mod p ) , thus the order of g is at most ( p 1 ) 2 . Since g is a generator, this is a contradiction. Therefore x = g 2 k + 1 is a quadratic nonresidue.

This shows that the quadratic residues modulo p are congruent to g 2 , g 4 , g 6 , , g p 1 , and that the non residues are congruent to g , g 3 , , g p 2 . Thus there are ( p 1 ) 2 residues and ( p 1 ) 2 non residues for an odd prime in [ [ 1 , p 1 ] ] . □

Second proof. (without primitive element)

Let 𝔽 p = pℤ the field with p elements, so that 𝔽 p is an abelian group. Consider the map

φ { 𝔽 p 𝔽 p x x 2 .

Then φ is a group homomorphism. By the first isomorphism theorem,

im φ 𝔽 p ker φ .

Moreover, since 𝔽 p is a field,

x ker ( φ ) x 2 = 1 ( x 1 ) ( x + 1 ) = 0 x { 1 , 1 } ,

therefore

ker φ = { 1 , 1 } .

This shows that

| im φ | = | 𝔽 p | 2 = ( p 1 ) 2 .

Here im φ is the subgroup of squares in 𝔽 p . We have proved that there are as many squares as non squares in 𝔽 p . In other words, there are equally many residues and non residues for an odd prime in [ [ 1 , p 1 ] ] .

Third proof (See Ireland , Rosen)

The squares in 𝔽 p are the roots of the polynomial x ( p 1 ) 2 1 𝔽 p [ x ] , which has at most ( p 1 ) 2 roots, because 𝔽 p is a field. Since x p 1 1 has p roots (all the elements of 𝔽 p ), and

x p 1 1 = ( x p 1 2 1 ) ( x p 1 2 + 1 ) ,

it is impossible that x ( p 1 ) 2 1 has less than ( p 1 ) 2 roots, otherwise x p 1 1 would have less that p 1 roots, which is false. Therefore x p 1 2 1 has ( p 1 ) 2 roots, so 𝔽 p contains exactly ( p 1 ) 2 squares. There are as many squares as non squares in 𝔽 p .

User profile picture
2024-10-18 08:13
Comments