Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.3.11 (Solutions of $x^2 \equiv a \pmod {2^\alpha}$)

Exercise 3.3.11 (Solutions of $x^2 \equiv a \pmod {2^\alpha}$)

Let a be odd, and suppose that α 3 . Prove that x 2 a ( mod 2 α ) has 4 solutions or no solution, according as a 1 ( mod 8 ) or not. Show that if x 0 is a solution, then the other three are x 0 , x 0 ± 2 α 1 .

Hint. Use Corollary 2.44.

Note: there is a misprint here, because x 0 + 2 α 1 and x 0 2 α 1 are congruent modulo 2 α . We must read ± x 0 + 2 α 1 instead of x 0 ± 2 α 1 (note of R.G.).

Answers

Proof. If x 2 a ( mod 2 α ) , where α 3 , then x 2 a ( mod 8 ) . Since a is odd, x is odd, so x = 2 k + 1 for some integer k . Therefore a x 2 = 8 k ( k + 1 ) 2 + 1 1 ( mod 8 ) , so a 1 ( mod 8 ) .

  • If a 1 ( mod 8 ) , we have proved that the congruence x 2 a ( mod 2 α ) has no solution.
  • Suppose now that a 1 ( mod 8 ) . By Theorem 2.43, since a is odd, there exists i , j such that a ( 1 ) i 5 j ( mod 2 α ) , where 0 i < 2 , 0 j < 2 α 2 . Reducing modulo 4 , this implies ( 1 ) i a 1 ( mod 4 ) , therefore i is even, and a 5 j ( mod 2 α ) . Since 5 2 l 2 5 l 1 ( mod 8 ) , and 5 2 l + 1 5 ( mod 8 ) , we obtain that j is even, so that j = 2 k for some integer k ( 0 k < 2 α 3 ) and

    a 5 2 k ( mod 2 α ) .

    We prove anew Corollary 2.44 in this particular case, to show that the congruence x 2 a ( mod 2 α ) ( α 3 ) has exactly 4 solutions when a 1 ( mod 8 ) . Since a is odd, x is odd, thus by Theorem 2.43, there are integers u , t such that

    x = ( 1 ) u 5 t , 0 u < 2 , 0 t < 2 α 2 .

    Then, the part “unicity” of Theorem 2.43 shows that

    x 2 a ( mod 2 α ) ( 1 ) 2 u 5 2 t 5 2 k { 2 u 0 ( mod 2 ) , 2 t 2 k ( mod 2 α 2 ) .

    The first congruence is always true, so its solutions are u = 0 , u = 1 . The second is equivalent to t k ( mod 2 α 3 ) , where 0 t < 2 α 2 (and 0 k < 2 α 3 ). Therefore k = 0 or k = 1 , and

    { x ± 5 k ( mod 2 α ) , x ± 5 k 5 2 α 3 ( mod 2 α ) .

    Conversely, ± 5 k and ± 5 k 5 2 α 3 are solutions of the congruence, because ( ± 5 k ) 2 = 5 2 k a ( mod 2 α ) , and ( ± 5 k 5 2 α 3 ) 2 = 5 2 k 5 2 α 2 a (recall that 5 has order 2 α 2 modulo 2 α by Theorem 2.43).

    Moreover, these 4 solutions are distinct modulo 2 α . If ( 1 ) u 5 t ( 1 ) v 5 s then ( 1 ) u = ( 1 ) v , and 5 t 5 s ( mod 2 ) α . Therefore 5 k 5 k + 2 α 3 , 5 k 5 k , and 5 k 5 k + 2 α 3 . If 5 k 5 k 5 2 α 3 , then 1 5 2 α 3 ( mod 2 α ) . This is impossible, since the order of 5 is 2 α 2 .

We have proved that the congruence x 2 a ( mod 2 α ) , where a is odd, has 4 solutions or no solution, according as a 1 ( mod 8 ) or not.

Suppose now that x 0 is one of these four solutions. Then ( ± x 0 ) 2 = x 0 2 a ( mod 2 α ) and

( ± x 0 + 2 α 1 ) 2 = x 0 2 ± 2 2 α 1 x 0 + 2 2 α 2 .

Since 2 α 2 α (here α 3 ), and 2 2 α 1 = 2 α , we obtain

( ± x 0 + 2 α 1 ) 2 x 0 2 a ( mod 2 α ) .

Therefore ± x 0 , ± x 0 + 2 α 1 are solutions of the congruence x 2 a ( mod 2 α ) .

Moreover these solutions are distinct modulo 2 α . Indeed, the solution x 0 is odd, thus x 0 x 0 ( mod 2 α ) , otherwise 4 2 x 0 and 2 x 0 . Similarly x 0 + 2 α 1 x 0 + 2 α 1 ( mod 2 α ) . Since 2 α 2 α 1 , x 0 x 0 + 2 α 1 ( mod 2 α ) . If x 0 x 0 + 2 α 1 ( mod 2 α ) , then 2 α 1 2 x 0 , and so 2 α 2 x 0 . Since α 3 , this implies that x 0 is even, which is false. This shows that x 0 x 0 + 2 α 1 ( mod 2 α ) , and similarly x 0 x 0 + 2 α 1 ( mod 2 α ) .

Therefore the four solutions of the congruence x 2 a ( mod 2 α ) are x 0 , x 0 , x 0 + 2 α 1 , x 0 + 2 α 1 . Let u ¯ denote the class of the integer u in 2 α . Then

{ 5 ¯ k , 5 ¯ k , 5 ¯ k 5 ¯ 2 α 3 , 5 ¯ k 5 ¯ 2 α 3 } = { x 0 ¯ , x 0 ¯ , x 0 ¯ + 2 ¯ α 1 , x 0 ¯ + 2 ¯ α 1 }

is the set of solutions of the equation x 2 = a ¯ in 2 α , if a 1 ( mod 8 ) and α 3 . □

Example. Consider the congruence x 2 17 ( mod 1024 ) , where 1024 = 2 10 and 17 1 ( mod 8 ) . We find

17 5 2 78 ( mod 2 10 ) ,

which is in agreement with the first part of the proof.

Thus the solutions are 5 78 233 , 5 78 791 , 5 78 5 128 745 , 5 78 5 128 279 ( mod 1024 ) .

If we take x 0 = 233 , x 0 791 , and

x 0 + 2 9 745 , x 0 + 2 9 279 ( mod 1024 ) .

So we refind the same roots (but with the initial sentence x 0 2 9 x 0 + 2 9 745 ).

The solutions of the congruence x 2 17 ( mod 1024 ) are 233 , 791 , 745 , 279 (that is ± 233 , ± 279 ) modulo 1024 .

(The calculations are made with Sage software.)

User profile picture
2024-11-04 11:29
Comments