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?
Answers
Proof. Here and are prime numbers.
- (a)
- Since is of the form , by Theorem 3.3. Therefore the congruence has no solution.
- (b)
- Since is of the form , . Therefore the congruence has no solution.
- (c)
- Since , the congruence has no solution.
- (d)
-
Here
. Therefore
has
solutions.
(With the RESSOL (Tonelli-Shanks) algorithm, we obtain the solutions modulo .)
- (e)
- Here . If , a fortiori , but this last congruence has no solution by part (a). Therefore the congruence has no solution.
- (f)
- Here . With the same reasoning, since has no solution by part (b), the congruence has no solution.
- (g)
- Since has no solution by part (c), the congruence has no solution.
- (h)
-
The congruence
is equivalent to
Then (1) is equivalent to
Therefore the solutions of are or ( solutions).
Verification:
sage: [a for a in Integers(118) if a^2 == Mod(-2,118)] [36, 82]