Determine all pairs of positive integers such that
is a positive integer.
Solutions — 2
Solution 1
Solution I Let be a pair of positive integers satisfying the condition. Since , we have or , and hence . Using this, we infer from , or , that . Hence
Now consider the two solutions of the equation
for any fixed positive integers and , and assume that one of them is an integer. Then the other is also an integer because . We may assume that , and we have . Furthermore, since , we get
Together with (1), we conclude that or (in the latter case must be even).
If , then , and hence and .
If , then and .
Therefore the only possibilities are
for some positive integer . All of these pairs satisfy the given condition.
Solution II If , it follows from the given condition that must be even.
Let . If , then there are two solutions to the equation (②) and one of them is a positive integer. Thus the discriminant of the equation (②) is a perfect square, that is is a perfect square.
Note that, if , we have
The proof is given as follows,
this completes the proof of (3).
Since is a perfect square, it follows from (3) that
Then , and hence must be even. Let . We have . Together with ②, we have or .
Therefore the only possibilities are
for some positive integer . All of these pairs satisfy the given condition.
Solution 2
First Solution. (Based on work by Anders Kaseorg) Rewrite equation as . Adding to both sides completes the square on the left-hand side and gives
or
Completing the square on the right-hand side gives
or,
where and .
If , then either or . In the former case, ; in the latter case, , that is, . Because is an integer if and only if is even, we get the solutions
for any even ; that is, and for all positive integers .
If , then , so (since is clearly positive). Thus,
or, . Because , this is a contradiction.
Similarly, if , then , so . Thus,
or . We must have and
This is an integer whenever is even, so we get the solutions for all positive integers .
Second Solution. (Based on work by Po-Ru Loh) Assume that . Then
is a positive integer if and only if is even. Thus, are solutions of the problem for all positive integers .
Now we assume that . Viewing equation as a quadratic in , replace by to consider the equation
for fixed positive integers and . Its roots are
Assume that is an integer root of equation . Then must be a perfect square. We claim that
Note first that
To establish the first inequality in our claim, it suffices to show that
or, , which is evident as and .
Note also that
which establishes the second inequality in our claim.
Because all of , and are positive integers, we conclude from our claim that is an integer and that
and so . Thus, for some positive integer . The two solutions of the equation becomes
that is. or . Hence, and are the possible solutions of the problem, in addition to the solutions .
Third Solution. Because both and are positive, , or,
Because and are positive integers, we have . Because is a positive integer, , or, . Because
we have
We consider again the quadratic equation for fixed positive integers and , and assume that is an integer root of equation . Then the other root is also an integer because . Without loss of generality, we assume that . Then . Furthermore, because , we obtain
If , then , and so and can be written in the form of for some integers .
If , then is a pair of positive integers satisfying the equations and . We conclude that , and so
and . Thus, can be written in the form of either or for some positive integers .