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 be odd, and suppose that . Prove that has solutions or no solution, according as or not. Show that if is a solution, then the other three are .
Hint. Use Corollary 2.44.
Note: there is a misprint here, because and are congruent modulo . We must read instead of (note of R.G.).
Answers
Proof. If , where , then . Since is odd, is odd, so for some integer . Therefore , so .
- If , we have proved that the congruence has no solution.
-
Suppose now that . By Theorem 2.43, since is odd, there exists such that , where . Reducing modulo , this implies , therefore is even, and . Since , and , we obtain that is even, so that for some integer and
We prove anew Corollary 2.44 in this particular case, to show that the congruence has exactly solutions when . Since is odd, is odd, thus by Theorem 2.43, there are integers such that
Then, the part “unicity” of Theorem 2.43 shows that
The first congruence is always true, so its solutions are . The second is equivalent to , where (and ). Therefore or , and
Conversely, and are solutions of the congruence, because , and (recall that has order modulo by Theorem 2.43).
Moreover, these solutions are distinct modulo . If then , and . Therefore , and . If , then . This is impossible, since the order of is .
We have proved that the congruence , where is odd, has solutions or no solution, according as or not.
Suppose now that is one of these four solutions. Then and
Since (here ), and , we obtain
Therefore are solutions of the congruence .
Moreover these solutions are distinct modulo . Indeed, the solution is odd, thus , otherwise and . Similarly . Since , . If , then , and so . Since , this implies that is even, which is false. This shows that , and similarly .
Therefore the four solutions of the congruence are . Let denote the class of the integer in . Then
is the set of solutions of the equation in , if and . □
Example. Consider the congruence , where and . We find
which is in agreement with the first part of the proof.
Thus the solutions are .
If we take , and
So we refind the same roots (but with the initial sentence ).
The solutions of the congruence are (that is ) modulo .
(The calculations are made with Sage software.)