Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 5.3.14 (General solution of $x^2 + 5y^2 =z^2$, $\mathrm{gcd}(x,y) = 1$)
Exercise 5.3.14 (General solution of $x^2 + 5y^2 =z^2$, $\mathrm{gcd}(x,y) = 1$)
Let be positive integers such that and . Show that if is odd and is even then there exist integers and such that are given by the equations of Problem 12 (*). Show that if is even and odd, then there exist integers and such that .
Hint: After replacing by , if necessary, argue as in the proof of Lemma 5.4 that there exist odd integers and such that . Then choose so that .
(*) misprint corrected (R.G.)
Answers
Proof. Let be a solution of , where and are positive integers.
Since , and cannot both be even. They cannot both be odd either, for if they were we would have , and therefore , which is impossible. So and have distinct parity, and is odd.
If a prime divides and , then , thus , which is impossible because . If divides and , then , thus , which is impossible. This proves that
-
We consider first the case were is odd and is even. Then we can write the equation as
We define , so that are positive integers satisfying
We have proved that , hence .
Since , then or .
-
If , then for some positive integer , and , where and are relatively prime (since ). By Lemma 5.4, and are both perfect squares, so for suitable positive integers such that , and
-
If , we obtain similarly by exchanging the roles of and
In the first case ( ), we obtain , and , so (because are positive integers). Therefore
In the second case ( ), we obtain , and , so . Therefore
In both cases, since are positive integers, we obtain
(which are the equations of Problem 12).
Conversely, if (2) is satisfied, then
(Since in this case is even, we can assume that and have distinct parity).
-
-
Now we consider the case where is even and is odd. Then is odd. We write the equation as
Here and are both odd. If is a prime such that and , then , and thus and . This is impossible, since . Therefore .
As in the first case, this implies that there are positive integers such that , or , where . In both cases, , thus (here are positive integers). Note that are odd, because and are odd.
After replacing by , if necessary, there exist odd integers and such that . Hence
Put , which is an integer because and are odd, so that . Since , we have also , and
Conversely, if (3) is satisfied, then
In conclusion, if are positive integers such that , then