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 m and n such that m 2 + n 2 and m 2 n 2 are both perfect squares.

Answers

Proof. We show here that there do not exist positive integers m , n , x , y such that

x 2 = m 2 n 2 , y 2 = m 2 + n 2 (1)

Note that (1) is equivalent to

y 2 + x 2 = 2 m 2 , y 2 x 2 = 2 n 2 . (2)

If (2) has some solution, let ( x , y , m , n ) ( ) 4 be a solution of the system (2) such that y is minimal.

By (2), y and x are both odd or both even. If 2 y and 2 x , then 2 2 y 2 + x 2 = 2 m 2 , so 2 m 2 , 2 m , and similarly 2 n . Then ( x 2 , y 2 , m 2 , n 2 ) is a solution of (2) in positive integers such that y 2 < y , which contradicts the minimality of y . Moreover y x = 1 . Indeed, if some prime number p satisfies p y , p x , then p 2 , and p 2 m 2 , thus p m , and similarly p n . Then ( x p , y p , m p , n p ) is a solution of (10) which contradicts the minimality of y . Therefore y x = 1 . Using (2), this implies m x = m y = n y = n y = 1 .

Since y and x are odd and y > x by (1), we may write

y = x + 2 α ,

where α is a positive integer. Then the first equation of (2) gives

( x + 2 α ) 2 + x 2 = 2 m 2 , 2 x 2 + 4 αx + 4 α 2 = 2 m 2 , x 2 + 2 αx + 2 α 2 = m 2 ,

thus

( x + α ) 2 + α 2 = m 2 . (3)

From x 2 + 2 αx + 2 α 2 = m 2 and x m = 1 , we see that α m = 1 . This shows that ( x + α , α , m ) is a primitive Pythagorean triple. By Theorem 5.5, there are positive integers r , s of opposite parity such that r s = 1 and

( 4 . a ) { x + α = 2 rs , α = r 2 s 2 , m = r 2 + s 2 ,  or  ( 4 . b ) { x + α = r 2 s 2 , α = 2 rs , m = r 2 + s 2 . (4)

In either cases we have

y 2 x 2 = ( y x ) ( y + x ) = 2 α 2 ( x + α ) = 8 rs ( r 2 s 2 ) .

Then the second equation of (2) gives, after division by 2 ,

n 2 = 4 rs ( r 2 s 2 ) . (5)

Since r , s are of opposite parity, r 2 s 2 is odd, and r s = 1 , thus ( 4 rs ) ( r 2 s 2 ) = 1 . By Lemma 5.4, r , s and r 2 s 2 are perfect squares, say

r = u 2 , s = v 2 , r 2 s 2 = w 2 , (6)

where u , v , w are positive integers. Then w 2 = u 4 v 4 , or equivalently

v 4 + w 2 = u 4 .

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 m and n such that m 2 + n 2 and m 2 n 2 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).

User profile picture
2025-04-25 08:48
Comments