Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.1.24* (Number of solutions of the congruence $x^2 \equiv a \pmod m$)

Exercise 3.1.24* (Number of solutions of the congruence $x^2 \equiv a \pmod m$)

Suppose that m is an odd number. Show that if ( a , m ) = 1 (*) then the number of solutions of the congruence x 2 a ( mod m ) is p m ( 1 + ( a p ) )

(*) I replaced the obvious misprint ( a , p ) = 1 by ( a , m ) = 1 in the sentence (note of R.G.).

Answers

Proof. The decomposition of the odd integer m into prime factors is m = p 1 a 1 p 2 a 2 p l a l , where a i > 0 and p i is an odd prime number for every index i . Then x 2 a ( mod m ) is equivalent to the l conditions

x 2 a ( mod p i a i ) , i = 1 , 2 , , l . (1)

For every positive integer n , and every integer x , write [ x ] n the class of x in nℤ . Let S n denote the roots of x 2 [ a ] n in nℤ :

S n = { x nℤ x 2 = [ a ] n }

Consider the map

φ { S m S p 1 a 1 × S p 2 a 2 × × S p l a l [ x ] m ( [ x ] p 1 a 1 , [ x ] p 2 a 2 , , [ x ] p l a l )

  • φ is well defined: If y = [ x ] n = [ x ] n S n , where x , x are integers, then x x ( mod m ) , thus x x ( mod p i a i ) , therefore [ x ] p i a i = [ x ] p i a i for every index i .
  • φ is injective: If φ ( [ x ] m ) = φ [ x ] m ) , then x x ( mod p i a i ) for every i , therefore x x ( mod m ) , so [ x ] m = [ x ] m .
  • φ is surjective: Let ( [ x 1 ] p 1 a 1 , [ x 2 ] p 2 a 2 , , [ x l ] p l a l ) be any element of S p 1 a 1 × S p 2 a 2 × × S p l a l . By the Chinese remainder Theorem, there is some integer x such that x x i ( mod p i a i ) for every index i . Then

    φ ( [ x ] m ) = ( [ x ] p 1 a 1 , [ x ] p 2 a 2 , , [ x ] p l a l ) = ( [ x 1 ] p 1 a 1 , [ x 2 ] p 2 a 2 , , [ x l ] p l a l )

This shows that φ is a bijection, hence

| S m | = | S p 1 a 1 | | S p 2 a 2 | | S p l a l | .

Since a m = 1 , a p i for every index i . By Problem 23,

| S p i a i | = 1 + ( a p i ) , i = 1 , 2 , , l .

Therefore

| S m | = i = 1 l ( 1 + ( a p i ) ) = p m ( 1 + ( a p ) ) .

If a m = 1 , the number of solutions of the congruence x 2 a ( mod m ) is

p m ( 1 + ( a p ) ) .

User profile picture
2024-10-22 08:36
Comments