Skip to main content
OlympiadHQ

Browse · MathNet

Print

59th Ukrainian National Mathematical Olympiad

Ukraine counting and probability

Problem

Natural numbers are written on the board. At each step, two numbers written on the board are wiped out, and their sum and the modulus of difference are written down instead. At some point the number 2019 appeared on the board. What is the smallest possible value of ?
Solution
It is easy to write down all the pairs of the numbers, that will successively appear on the board:

As we see, after the appearance of the first four numbers: – all the other numbers that may appear on the board are even. Since 2019 is an odd number, then the number 2019 must appear among these first four numbers.

Case 1: .

Case 2: .

Case 3: .

Case 4: , then . Thus the smallest possible value of is . Then if and the number 2019 can appear on the board.
Final answer
1010

Techniques

Invariants / monovariants