Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 5.4.15 ( There exist no integers $m>0$ and $n>0$ such that $m^2 + n^2, m^2 -n^2$ are perfect squares)
Exercise 5.4.15 ( There exist no integers $m>0$ and $n>0$ such that $m^2 + n^2, m^2 -n^2$ are perfect squares)
Show that there exist no positive integers and such that and are both perfect squares.
Answers
Proof. We show here that there do not exist positive integers such that
Note that (1) is equivalent to
If (2) has some solution, let be a solution of the system (2) such that is minimal.
By (2), and are both odd or both even. If and , then , so , , and similarly . Then is a solution of (2) in positive integers such that , which contradicts the minimality of . Moreover . Indeed, if some prime number satisfies , then , and , thus , and similarly . Then is a solution of (10) which contradicts the minimality of . Therefore . Using (2), this implies .
Since and are odd and by (1), we may write
where is a positive integer. Then the first equation of (2) gives
thus
From and , we see that . This shows that is a primitive Pythagorean triple. By Theorem 5.5, there are positive integers of opposite parity such that and
In either cases we have
Then the second equation of (2) gives, after division by ,
Since are of opposite parity, is odd, and , thus . By Lemma 5.4, and are perfect squares, say
where are positive integers. Then , or equivalently
But we have proved in Problem 14 that this equation has no solution in positive integers. This contradiction shows that there exist no positive integers and such that and are both perfect squares. □
Note: A variant of this proof is given in Carmichael, “Diophantine analysis", without the result of problem 14 (which is proved in Carmichael’s book as a consequence).