Problem 2
Find all positive integers such that and are both integers.
Step 2 of 7: Establish the denominator sign
Detailed analysis
If b=1, the case b^2-a<0 can be checked directly; only a=2 survives. If b is at least 2 and a is at least b^2, then the second positive fraction is strictly between 0 and 1, impossible for an integer. Thus in the remaining cases b^2-a is positive.