Skip to main content
OlympiadHQ

Browse · MathNet

Print

Saudi Arabia booklet 2024

Saudi Arabia 2024 number theory

Problem

On the board, there are written numbers . At each step, it is allowed to erase any two numbers on the board and then replace them with , keep doing this until there is only one number left. Find all possible values of .

On the board, there are written numbers 1, 2, 3, ..., . At each step, it is allowed to erase any two numbers on the board and then replace them with . Keep doing this until there is only one number left, find all possible values of .
Solution
Let then for 2 numbers on the board, the new number generated will be . We consider some cases: If are same parity then is even. If are different from parity then is odd. This means that the number of odd numbers either remains the same or decreases by 2 units; but initially, there are odd numbers, so the final number must be odd. Suppose that , let be some prime divisor of . Note that If , since then . Similarly, if then there is also . We have the following familiar lemma derived from Fermat's little theorem or quadratic residue: Lemma. If is a prime of form and then . Since 11 has the form , according to the above lemma, one can get . Continuing like that, the previous numbers on the board that generated also be divisible by 11, making all the original numbers divisible by 11, contradiction. Similarly for the case . Finally, if then entails . Obviously from , we get that is a divisor of one of or , but then . We get the similar contradiction as the above argument. Therefore is odd and has no odd prime divisors, proving that . ☐
Final answer
1

Techniques

Greatest common divisors (gcd)Quadratic residuesInvariants / monovariants