Problem:
The difference of two positive integers and is a prime number and their product is a perfect square not exceeding . What is the maximum value that can assume?
Problem:
The difference of two positive integers and is a prime number and their product is a perfect square not exceeding . What is the maximum value that can assume?
Solution:
The answer is . Indeed, suppose without loss of generality that ; then and .
If now divided we could set , and we would have that
would be a perfect square; but since and are coprime, this would mean that both and would be perfect squares, which is impossible (the only case in which this occurs among the integers, namely when , is excluded by the hypothesis that is positive).
Therefore and must be coprime, and hence both perfect squares; we can therefore set , with in turn positive. But from the fact that
is a prime number it follows that one of and (and it will evidently be ) must be . Hence , and are two consecutive squares and the sum of their square roots must be the prime number .
However, since by hypothesis , and hence , and therefore ; and precisely the case , , , , turns out to fall within the hypotheses of the problem, hence is the maximum possible prime.