Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.3.10 (Solvability of $x^2 \equiv k \pmod 4$)
Exercise 3.3.10 (Solvability of $x^2 \equiv k \pmod 4$)
Let be odd. Prove that has exactly one solution. Furthermore, is solvable if and only if , in which case there are two solutions.
Answers
Proof. If is odd, the congruence has exactly one solution, since .
Suppose that is solvable. Since is odd, and , is also odd, so for some integer . Therefore , so .
Conversely, if , the congruence is equivalent to . Since , the solutions are .
The congruence is solvable if and only if , in which case there are two solutions. □