2023 SSMO Team Round Problems/Problem 14
Problem
Find the sum of all perfect squares of the form where
and
are positive integers such
is prime and
.
Solution
If , the expression becomes
which can equal either
or
.
If , then let
We rearrange and factor as
Note that does not divide
, so
cannot divide both factors evenly. Thus, either
or
, implying that
for some integer
, and so
However, this leads to a contradiction:
This means no perfect square is possible in this form for , so the only valid values come from the
case, where
~SMO_Team