Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.3.9 (Congruence $x^2 + y^2 \equiv 0 \pmod n$)
Exercise 3.3.9 (Congruence $x^2 + y^2 \equiv 0 \pmod n$)
For which positive integers do there exist integers and with , such that .
Answers
Proof. If , for all integers . We suppose now that .
Write the decomposition of in prime factors, where are distincts odd primes, and , for every index .
Suppose that , where . Then
If , then by Problem 8 the congruence has no solution where are odd. Therefore , or .
Moreover, Problem 8 shows that .
Conversely, suppose that , where , and for .
By Problem 8, for each index , there are some integers satisfying and
-
If , by the Chinese Remainder Theorem, there are integers such that and for . Then
Since the are relatively prime by pairs, this implies
Moreover implies . Similarly . Therefore .
-
If , there are integers such that and also , and for , and . Then
where and . Therefore
If , there exist integers and with , such that if and only if , where or , and the distinct odd primes satisfy . □