Find the number of pairs of positive integers
such that and
are both perfect squares.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We may tackle the problem by setting up the following system of equations: x 2 + 3 y = ( x + t ) 2 y 2 + 3 x = ( y + c ) 2 For some positive integers t , c . The good thing about this setup is that we can actually bound the values at least one of these variables. Suppose that both t , c > 1 , then t , c ≥ 2 and thus x 2 + 3 y ≥ ( x + 2 ) 2 ⟹ 3 y ≥ 4 x + 4 y 2 + 3 x ≥ ( y + 2 ) 2 ⟹ 3 x ≥ 4 y + 4 Adding these two inequalities we obtain 3 ( x + y ) ≥ 4 ( x + y ) + 8 , a clear contradiction. Without loss of generality let's now assume that t = 1 . We may do this because it is also impossible to have t < 1 . This immediately tells us x 2 + 3 y = ( x + 1 ) 2 ⟹ 3 y = 2 x + 1 . We could now just plug this into the various expressions we have, but I found it useful to clean this up a little bit. The given equation implies that 2 x + 1 ≡ 0 m o d 3 ⟹ x ≡ 1 m o d 3 ⟹ x = 3 k + 1 for some non-negative integer k . This also tells us y = 2 k + 1 .
Because we have the identity x 2 + 3 y = ( x + 1 ) 2 , we already know this expression is a perfect square. We can now just focus on figuring out when is y 2 + 3 x a perfect square. Substituting for y , x the expressions with k we find that 4 k 2 + 1 3 k + 4 must be a perfect square. Notice that 4 k 2 + 1 3 k + 4 = ( 2 k + 3 ) 2 + k − 5 . If k > 5 , then we would have ( 2 k + 3 ) 2 + k − 5 ≥ ( 2 k + 4 ) 2 ⟹ k − 5 ≥ 4 k + 7 ⟹ 0 ≥ 3 k + 1 2 , a contradiction. Thus, we just have to check the values 0 ≤ k ≤ 5 . Doing this, we find that the polynomial is only a perfect square when k = 0 , 5 . These give the pairs ( 1 , 1 ) , ( 1 1 , 1 6 ) , ( 1 6 , 1 1 ) .