2004 OIM Problems/Problem 4
Problem
Find all pairs , where
and
are positive integers of two digits each, such that
and
are four-digit perfect squares.
~translated into English by Tomas Diaz. ~orders@tomasdiaz.com
Solution
Let and
; then, by subtracting,
, so
. Notice that since
and
are four-digit,
, so
. Thus
.
Clearly , so both
and
are positive; however, as
cannot equal
due to
, we must have
. Since
and
, it is necessary that
. Then
. Solving for
and
results in
Substituting back in:
From the second equation, rearranging yields
Using the Quadratic Formula:
must be a perfect square, and the only perfect square that allows
to have two digits is
. Thus
, and:
, which works (testing yields the two squares
and
).