Browse · MathNet
PrintXI APMO
number theory
Problem
Determine all pairs of integers with the property that the numbers and are both perfect squares.
Solution
Without loss of generality, assume that . If , then must be a perfect square. So for each is a solution.
Now we consider the case . Because is a perfect square, the quadratic equation
has two non-zero integral roots .
Then and , and from this it follows that
Hence there is at least one root, say , such that .
There are the following possibilities.
(1) . Substituting into () we get . So we have . It is easy to see that the solution in non-negative integers of the equation is . Hence . From this we obtain and . The latter should be rejected because of the assumption .
(2) . Substituting into () we get . Hence . It is easy to show that the solution in non-negative integers of the equation is . Hence . From this we obtain .
(3) . Substituting into (*) we get . Hence . It is easy to show that the solution in non-negative integers of the equation is . Hence . From this we obtain .
(4) . Substituting into we get . Then , . Consequently, () is a solution.
Testing these solutions and by symmetry we obtain the following solutions where is an arbitrary integer. (Observe that the solution obtained in the second possibility is included in the last solution as a special case.)
---
Alternative solution.
Without loss of generality assume that . Then . Given that is a perfect square and since and have the same parity then , so
Case 1. . Then and must be a perfect square. So () is a solution.
Case 2. . Then , therefore must be a perfect square.
If then is a perfect square for each . Consequently and () is a solution.
If then must be a perfect square, where . For therefore . If then . If , is a perfect square thus and is a solution. If , is not a perfect square.
Case 3. . Since then , thus . It follows that . We have following possibilities:
(a) . Then or . Thus must be a perfect square. So and .
(b) . In this case , then or . The equation does not have integer solutions. The solution of the second equation is . Then must be a perfect square, thus .
(c) . . Since is even and must be a perfect square then or . Therefore or . If , is not a perfect square. If then is a perfect square if . Thus and is a solution.
(d) . Then . Since must be an odd perfect square then or . So or . If , , then . If then , but this is not possible because . Thus and is a solution in this case.
(e) . Since then .
Testing these solutions and by symmetry we obtain the following solutions: where is an arbitrary integer. Note that if is a solution with , then taking , , so is solution. Thus by symmetry is a solution for any integer.
Now we consider the case . Because is a perfect square, the quadratic equation
has two non-zero integral roots .
Then and , and from this it follows that
Hence there is at least one root, say , such that .
There are the following possibilities.
(1) . Substituting into () we get . So we have . It is easy to see that the solution in non-negative integers of the equation is . Hence . From this we obtain and . The latter should be rejected because of the assumption .
(2) . Substituting into () we get . Hence . It is easy to show that the solution in non-negative integers of the equation is . Hence . From this we obtain .
(3) . Substituting into (*) we get . Hence . It is easy to show that the solution in non-negative integers of the equation is . Hence . From this we obtain .
(4) . Substituting into we get . Then , . Consequently, () is a solution.
Testing these solutions and by symmetry we obtain the following solutions where is an arbitrary integer. (Observe that the solution obtained in the second possibility is included in the last solution as a special case.)
---
Alternative solution.
Without loss of generality assume that . Then . Given that is a perfect square and since and have the same parity then , so
Case 1. . Then and must be a perfect square. So () is a solution.
Case 2. . Then , therefore must be a perfect square.
If then is a perfect square for each . Consequently and () is a solution.
If then must be a perfect square, where . For therefore . If then . If , is a perfect square thus and is a solution. If , is not a perfect square.
Case 3. . Since then , thus . It follows that . We have following possibilities:
(a) . Then or . Thus must be a perfect square. So and .
(b) . In this case , then or . The equation does not have integer solutions. The solution of the second equation is . Then must be a perfect square, thus .
(c) . . Since is even and must be a perfect square then or . Therefore or . If , is not a perfect square. If then is a perfect square if . Thus and is a solution.
(d) . Then . Since must be an odd perfect square then or . So or . If , , then . If then , but this is not possible because . Thus and is a solution in this case.
(e) . Since then .
Testing these solutions and by symmetry we obtain the following solutions: where is an arbitrary integer. Note that if is a solution with , then taking , , so is solution. Thus by symmetry is a solution for any integer.
Final answer
(k^2, 0), (0, k^2), (k, 1 - k), (-4, -4), (-6, -5), (-5, -6) for any integer k
Techniques
Techniques: modulo, size analysis, order analysis, inequalitiesVieta's formulas