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 x , y , z be positive integers such that ( x , y ) = 1 and x 2 + 5 y 2 = z 2 . Show that if x is odd and y is even then there exist integers r and s such that x , y , z are given by the equations of Problem 12 (*). Show that if x is even and y odd, then there exist integers r and s such that x = ± ( 2 r 2 + 2 rs s 2 ) , y = 2 rs + s 2 , z = 2 r 2 + 2 rs + 3 s 2 .

Hint: After replacing x by x , if necessary, argue as in the proof of Lemma 5.4 that there exist odd integers s and t such that z x = 5 s 2 , z + x = t 2 . Then choose r so that t = s + 2 r .

(*) misprint corrected (R.G.)

Answers

Proof. Let ( x , y , z ) be a solution of x 2 + 5 y 2 = z 2 , where x y = 1 and x , y , z are positive integers.

Since x y = 1 , x and y cannot both be even. They cannot both be odd either, for if they were we would have x 2 1 ( m o d 4 ) , y 2 1 ( mod 4 ) , and therefore z 2 x 2 + 5 y 2 2 ( m o d 4 ) , which is impossible. So x and y have distinct parity, and z is odd.

If a prime p 5 divides x and z , then p 5 y 2 = z 2 x 2 , thus p y , which is impossible because x y = 1 . If p = 5 divides x and y , then 5 2 5 y 2 , thus 5 y , which is impossible. This proves that x z = 1

  • We consider first the case were x is odd and y is even. Then we can write the equation x 2 + 5 y 2 = z 2 as

    5 ( y 2 ) 2 = z + x 2 z x 2 . (1)

    We define u = ( z + x ) 2 , v = ( z x ) 2 , w = y 2 , so that u , v , w are positive integers satisfying

    u v = 5 w 2 .

    We have proved that x z = 1 , hence u v = 1 .

    Since 5 u v , then 5 u or 5 v .

    • If 5 u , then u = 5 u for some positive integer u , and u v = w 2 , where u and v are relatively prime (since u u ). By Lemma 5.4, u and v are both perfect squares, so u = s 2 , v = r 2 for suitable positive integers r , s such that r s = 1 , and

      u = 5 s 2 , v = r 2 .

    • If 5 v , we obtain similarly by exchanging the roles of u and v

      u = r 2 , v = 5 s 2 .

    In the first case ( 5 u ), we obtain z + x 2 = 5 s 2 , z x 2 = r 2 , and 5 ( y 2 ) 2 = 5 s 2 r 2 , so y = 2 r s (because y , r , s are positive integers). Therefore

    { x = 5 s 2 r 2 , y = 2 r s , z = 5 s 2 + r 2 .

    In the second case ( 5 v ), we obtain z + x 2 = r 2 , z x 2 = 5 s 2 , and 5 ( y 2 ) 2 = 5 r 2 s 2 , so y = 2 r s . Therefore

    { x = r 2 5 s 2 , y = 2 r s , z = r 2 + 5 s 2 .

    In both cases, since x , y , z are positive integers, we obtain

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

    (which are the equations of Problem 12).

    Conversely, if (2) is satisfied, then

    x 2 + 5 y 2 = ( r 2 5 s 2 ) 2 + 2 0 r 2 s 2 = r 4 + 2 5 s 4 + 1 0 r 2 s 2 = ( r 2 + 5 s 2 ) 2 = z 2 .

    (Since in this case x is even, we can assume that r and s have distinct parity).

  • Now we consider the case where x is even and y is odd. Then z is odd. We write the equation x 2 + 5 y 2 = z 2 as

    5 y 2 = ( z + x ) ( z x ) .

    Here z + x and z x are both odd. If p is a prime such that p z + x and p z x , then p 2 , and p 2 z , p 2 x thus p x and p z . This is impossible, since x z = 1 . Therefore ( z + x ) ( z x ) = 1 .

    As in the first case, this implies that there are positive integers s , t such that z x = 5 s 2 , z + x = t 2 , or z x = t 2 , z + x = 5 s 2 , where s t = 1 . In both cases, 5 y 2 = 5 s 2 t 2 , thus y = s t (here y , s , t are positive integers). Note that s , t are odd, because z x and z + x are odd.

    After replacing x by x , if necessary, there exist odd integers s and t such that z x = 5 s 2 , z + x = t 2 . Hence

    { x = ± ( t 2 5 s 2 2 ) , y = t s , z = t 2 + 5 s 2 2 .

    Put r = ( t s ) 2 , which is an integer because t and s are odd, so that t = s + 2 r . Since s t = 1 , we have also r s = 1 , and

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

    Conversely, if (3) is satisfied, then

    x 2 + 5 y 2 z 2 = ( 2 r 2 + 2 r s 2 s 2 ) 2 + 5 ( s 2 + 2 r s ) 2 ( 2 r 2 + 2 r s + 3 s 2 ) 2 = 5 s 4 2 0 r 2 s 2 2 0 r s 3 + 5 s 4 + 2 0 r s 3 + 2 0 r 2 s 2 = 0 .

In conclusion, if x , y , z are positive integers such that x y = 1 , then

x 2 + 5 y 2 = z 2 r , s , r s = 1 , { x = | r 2 5 s 2 | , y = 2 r s , z = r 2 + 5 s 2 ,  or  { x = | 2 r 2 + 2 r s 2 s 2 | , y = s 2 + 2 r s , z = 2 r 2 + 2 r s + 3 s 2 .
User profile picture
2025-04-09 09:41
Comments