Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabia booklet 2024

Saudi Arabia 2024 number theory

Problem

Given an integer , let be all the positive integers that are less than and coprime to . Determine all values of for which there is no index satisfying .
Solution
It is easy to check that for the sequences are respectively. Thus these numbers are solution of the given problem. Considering , if is odd then so clearly and their sum is divisible by , which not satisfy. Hence, is even. It is easy to check that or also do not work. Now we consider and separate in the following cases:

1. If for then consider . Since is odd then so . Similarly, we have so are two consecutive terms in the sequence of , but which is divisible by . This case does not give any solution.

2. If for then consider . Let denote then so , but is odd then , thus . Similarly, denote then so , but is odd then , thus . Now are consecutive terms in the sequence and , not satisfies.

3. If for then consider .

4. If for then consider .

5. If for then consider .

6. If for then consider .
Final answer
2, 4, 10

Techniques

Greatest common divisors (gcd)