Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 1.3.11 (If $x$ and $y$ are odd, $x^2 + y^2$ cannot be a perfect square)

Exercise 1.3.11 (If $x$ and $y$ are odd, $x^2 + y^2$ cannot be a perfect square)

If x and y are odd, prove that x 2 + y 2 cannot be a perfect square.

Answers

Proof. Assume for contradiction that x 2 + y 2 = z 2 is the square of z , where x , y are odd.

Then x = 2 k + 1 for some integer k , thus x 2 = 4 k 2 + 4 k + 1 1 ( mod 4 ) . Similarly, y 2 1 ( mod 4 ) . Therefore

z 2 = x 2 + y 2 2 ( mod 4 ) .

Thus 2 z 2 , therefore 2 z , and 4 z 2 , so z 2 0 ( mod 4 ) . We obtain z 2 0 and z 2 2 ( mod 4 ) : this is absurd. Therefore, if x and y are odd, x 2 + y 2 cannot be a perfect square. □

User profile picture
2024-10-03 10:12
Comments