2025 SSMO Speed Round Problems/Problem 7
Problem
Positive integers and
satisfy
. The sum of all possible values of
is
where
and
are relatively prime positive integers. Find
.
Solution
Let and
, where
,
,
, and
are all nonnegative integers and
is a positive integer not divisible by any of
,
,
, and
. Then,
Now, we determine the possible values of each factor on the right hand side based on the values of
,
,
, and
.
- If
, then
; if
, then
.
- If
, then
; if
, then
.
- If
, then
; if
, then
.
- If
, then
; if
, then
.
Thus, the sum of all possible values of is
We extract
.