Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabian IMO Booklet

Saudi Arabia number theory

Problem

Find all positive integers such that
Solution
Let . We want .

Note that:

So if and only if .

But , so .

Let us check small values of :

For : is true.

For : ? , so no.

For : ? , so no.

For : ? , so no.

It seems only works.

Let us prove that is the only solution.

Suppose . Let . We want . So . But , so for any integer .

Let : So .

Similarly, let : So .

Therefore, (since and are coprime).

But for .

Therefore, the only solution is .

Answer: .
Final answer
1

Techniques

Divisibility / FactorizationGreatest common divisors (gcd)