Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 1.3.12 (If $x$ and $y$ are prime to $3$, $x^2 + y^2$ cannot be a perfect square)
Exercise 1.3.12 (If $x$ and $y$ are prime to $3$, $x^2 + y^2$ cannot be a perfect square)
If and are prime to , prove that cannot be a perfect square.
Answers
Proof. Assume for contradiction that and are prime to , and that is a perfect square. Then , and , thus . Therefore
But this is impossible, because the square of any integer is of the form or , but not of the form (see Problem 1.2.22). □