Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 5.3.13 (Solutions of $x^2 + 2y^2 = z^2$)
Exercise 5.3.13 (Solutions of $x^2 + 2y^2 = z^2$)
Show that all solutions of in positive integers with are given by , where and are arbitrary positive integers such that is odd and .
Hint: Any solution has even, because odd implies , which is impossible. Hence and are odd, and the proof of Theorem 5.5 may be used as a model.
Answers
Proof. Let be a solution of in positive integers with .
If is odd, then , thus . But the squares modulo are , so the congruence is impossible. Therefore is even. Moreover and have same parity, but and cannot be both even, otherwise . This contradiction shows that and are odd (and is even).
Then and are both even, so we write the equation as
Any common divisor of the two factors divides both their sum, and their difference, . Since , it follows that these two factors have no common factor. Since and , by Problem 5, either (a) , or (b) , for suitable integers (we intentionally changed the names of the variables in the case (a)). Note that , because .
- (a)
- If , then , so
- (b)
-
If
, then
, so
In both cases
Note that is odd, because and is odd.
Since by hypothesis (and ), we obtain
where , odd, and .
Conversely, if (1) is satisfied, then
In conclusion, the solutions of in positive integers with are given by
where , odd and .