Exercise 5.3.13 (Solutions of $x^2 + 2y^2 = z^2$)

Show that all solutions of x 2 + 2 y 2 = z 2 in positive integers with ( x , y , z ) = 1 are given by x = | r 2 2 s 2 | , y = 2 rs , z = r 2 + 2 s 2 , where r and s are arbitrary positive integers such that r is odd and ( r , s ) = 1 .

Hint: Any solution has y even, because y odd implies z 2 x 2 2 ( mod 8 ) , which is impossible. Hence x and z are odd, and the proof of Theorem 5.5 may be used as a model.

Answers

Proof. Let ( x , y , z ) be a solution of x 2 + 2 y 2 = z 2 in positive integers with x y z = 1 .

If y = 2 k + 1 is odd, then 2 y 2 = 2 ( 2 k + 1 ) 2 = 8 k 2 + 8 k + 2 2 ( mod 8 ) , thus z 2 x 2 2 ( mod 8 ) . But the squares modulo 8 are 0 , 1 , 4 , so the congruence z 2 x 2 2 ( mod 8 ) is impossible. Therefore y is even. Moreover x and z have same parity, but x and y cannot be both even, otherwise 2 x y z = 1 . This contradiction shows that x and z are odd (and y is even).

Then z x and z + x are both even, so we write the equation x 2 + 2 y 2 = z 2 as

2 z + x 2 z x 2 = y 2 .

Any common divisor of the two factors u = z + x 2 , v = z x 2 divides both their sum, z and their difference, x . Since x z = 1 , it follows that these two factors u , v have no common factor. Since 2 uv = y 2 and u > 0 , v > 0 , by Problem 5, either (a) u = 2 s 2 , v = r 2 , or (b) u = r 2 , v = 2 s 2 , for suitable integers r > 0 , s > 0 (we intentionally changed the names of the variables in the case (a)). Note that r s = 1 , because u v = 1 .

(a)
If z + x 2 = 2 s 2 , z x 2 = r 2 , then 4 s 2 r 2 = y 2 , so { x = 2 s 2 r 2 y = ± 2 sr z = 2 s 2 + r 2 .
(b)
If z + x 2 = r 2 , z x 2 = 2 s 2 , then 4 r 2 s 2 = y 2 , so { x = r 2 2 s 2 y = ± 2 rs z = r 2 + 2 s 2 .

In both cases

x = ± ( r 2 2 s 2 ) , y = ± 2 rs , z = r 2 + 2 s 2 .

Note that r is odd, because x = ± ( r 2 2 s 2 ) and x is odd.

Since x > 0 , y > 0 , z > 0 by hypothesis (and r > 0 , s 0 ), we obtain

{ x = | r 2 2 s 2 | y = 2 rs z = r 2 + 2 s 2 , (1)

where r > 0 , s > 0 , r odd, and r s = 1 .

Conversely, if (1) is satisfied, then

x 2 + 2 y 2 = ( r 2 2 s 2 ) 2 + 8 r 2 s 2 = r 4 + 4 s 4 + 4 r 2 s 2 = z 2 .

In conclusion, the solutions of x 2 + 2 y 2 = z 2 in positive integers with x y z = 1 are given by

{ x = | r 2 2 s 2 | y = 2 rs z = r 2 + 2 s 2 , (2)

where r > 0 , s > 0 , r odd and r s = 1 .

User profile picture
2025-04-08 13:28
Comments