Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.3.7 (Congruence $x^2 + y^2 \equiv 0 \pmod p$)
Exercise 3.3.7 (Congruence $x^2 + y^2 \equiv 0 \pmod p$)
For which primes do there exist integers and with , such that .
Answers
Proof. Suppose that , where (then ). Let be an inverse of modulo , so that . Then
thus is a quadratic residue modulo , therefore , or is odd and This gives , thus is even. This shows that
Conversely, if then , and if , then , therefore there is some integer such that . Put . Then , where , and , otherwise .
To conclude, if is a prime number,
□