Skip to main content
OlympiadHQ

Browse · MathNet

Print

SAUDI ARABIAN MATHEMATICAL COMPETITIONS

Saudi Arabia number theory

Problem

Find all positive integer such that there exists a permutation of satisfying the condition:
Solution
It is easy to see that , satisfy the given condition, while does not. We will show that all numbers do not satisfy the condition.

First, we can see that then is divisible by , which means or is an odd number. We also have Thus, is divisible by .

On the other hand, then we must have It implies that Continue, we have Similarly, we get , then , which is a contradiction.

Hence, the only two satisfied values are and .
Final answer
1 and 3

Techniques

Divisibility / FactorizationSums and products