Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 3.1.7 (Solve $x^2 \equiv \pm 2 \pmod m$ for $m = 61,59,118,122$)

Exercise 3.1.7 (Solve $x^2 \equiv \pm 2 \pmod m$ for $m = 61,59,118,122$)

Which of the following congruences have solutions? How many?

( a ) x 2 2 ( mod 61 ) ( b ) x 2 2 ( mod 59 ) ( c ) x 2 2 ( mod 61 ) ( d ) x 2 2 ( mod 59 ) ( e ) x 2 2 ( mod 122 ) ( f ) x 2 2 ( mod 118 ) ( g ) x 2 2 ( mod 122 ) ( h ) x 2 2 ( mod 118 ) .

Answers

Proof. Here 61 and 59 are prime numbers.

(a)
Since 61 = 7 × 8 + 5 is of the form 8 k + 5 , ( 2 61 ) = 1 by Theorem 3.3. Therefore the congruence x 2 2 ( mod 61 ) has no solution.
(b)
Since 59 = 7 × 8 + 3 is of the form 8 k + 3 , ( 2 59 ) = 1 . Therefore the congruence x 2 2 ( mod 59 ) has no solution.
(c)
Since ( 2 61 ) = ( 1 61 ) ( 2 61 ) = ( 1 ) ( 61 1 ) 2 = 1 , the congruence x 2 2 ( mod 61 ) has no solution.
(d)
Here ( 2 59 ) = ( 1 59 ) ( 2 59 ) = ( 1 ) ( 59 1 ) 2 = 1 . Therefore x 2 1 ( mod 59 ) has 2 solutions.

(With the RESSOL (Tonelli-Shanks) algorithm, we obtain the solutions 23 , 36 modulo 59 .)

(e)
Here 122 = 2 61 . If x 2 2 ( mod 122 ) , a fortiori x 2 2 ( mod 61 ) , but this last congruence has no solution by part (a). Therefore the congruence x 2 2 ( mod 122 ) has no solution.
(f)
Here 118 = 2 59 . With the same reasoning, since x 2 2 ( mod 59 ) has no solution by part (b), the congruence x 2 2 ( mod 118 ) has no solution.
(g)
Since x 2 2 ( mod 61 ) has no solution by part (c), the congruence x 2 2 ( mod 122 ) has no solution.
(h)
The congruence x 2 2 ( mod 118 ) is equivalent to { x 2 2 ( mod 2 ) , x 2 2 ( mod 59 ) , (1)

Then (1) is equivalent to

{ x 0 ( mod 2 ) , x 36 ( mod 59 ) ,  or  { x 0 ( mod 2 ) , x 36 ( mod 59 ) .

Therefore the solutions of x 2 2 ( mod 118 ) are x 36 82 ( mod 118 ) or x 36 ( mod 118 ) ( 2 solutions).

Verification:

     sage: [a for a in Integers(118) if a^2 == Mod(-2,118)]
     [36, 82]

User profile picture
2024-10-17 09:43
Comments