All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Perfect Square Too (Posted on 2008-06-21) Difficulty: 2 of 5
Determine all possible integer pair(s) (P, Q), with neither P nor Q being zero, such that each of P2 + Q and Q2 + P is a perfect square.

See The Solution Submitted by K Sengupta    
Rating: 3.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution solution with proof | Comment 3 of 6 |

Suppose P and Q are both > 0. Then P >= 2Q+1 since the next perfect square after Q² is Q² + 2Q + 1. (We've assumed P>0 or else we'd also be able to consider squares less than Q²). Similarly, Q > 2P + 1. But the first inequality requires P>Q while the second Q>P so these can't both be true. Hence there are no solutions where P and Q are both > 0.

Now suppose P>0 but Q<0 (the same logic will apply to P<0 and Q>0). Then Q <= -2P+1 since the first available perfect square less than P² is P² - 2P + 1 and Q must be at least that negative. On the other side, P >= -2Q + 1. Writing both inequalities in terms of Q, we have Q <= -2P + 1 and Q >= (1-P)/2. These two expressions in P are equal when P= 1/3, and when P > 1/3, as when P is an integer >0, (1-P)/2 > -2P + 1. So we'd have the nonsensical result that -2P+1 >= Q >= (1-P)/2 AND (1-P)/2 > -2P+1. So there are no solutions when P>0 and Q<0. Swapping "P" and "Q" everywhere also demonstrates there are no solutions when P<0 and Q > 0.

The only case left is when P<0 and Q<0. Then the inequalities are: Q <= 2P+1 and P <= 2Q+1

Since P and Q are both negative, Q < 2P + 1 implies Q < P and likewise P >= Q. So the first inequality cannot hold. The only possibility is that Q = 2P+1, which imples P <= 4P + 3. Again, since P < 0 the inequality cannot hold, but the equality can -- P=4P+3 implies 3P+3 = 0 and P=-1, which in turn means Q = 2(-1) + 1 = -1.

And so the only solution possible is (-1,-1), which is consistent with the computer exploration earlier.  


  Posted by Paul on 2008-06-23 18:23:01
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (18)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information