Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.1.24* (Number of solutions of the congruence $x^2 \equiv a \pmod m$)
Exercise 3.1.24* (Number of solutions of the congruence $x^2 \equiv a \pmod m$)
Suppose that is an odd number. Show that if (*) then the number of solutions of the congruence is
(*) I replaced the obvious misprint by in the sentence (note of R.G.).
Answers
Proof. The decomposition of the odd integer into prime factors is , where and is an odd prime number for every index . Then is equivalent to the conditions
For every positive integer , and every integer , write the class of in . Let denote the roots of in :
Consider the map
- is well defined: If , where are integers, then , thus , therefore for every index .
- is injective: If , then for every , therefore , so .
-
is surjective: Let be any element of . By the Chinese remainder Theorem, there is some integer such that for every index . Then
This shows that is a bijection, hence
Since , for every index . By Problem 23,
Therefore
If , the number of solutions of the congruence is
□