Maths Olympiad Prep

Library / /17 of 26

Combinatorics Difficulty 5.1 AIME, harder Prove it United States

Problem:

Aerith and Bob take turns picking a nonnegative integer, each time subtracting a (positive) divisor from the other's last number. The first person to pick 00 loses. For example, if Aerith reached 20202020 on some turn, Bob could pick 202020=20002020-20=2000, as 2020 is a divisor of 20202020.
Continuing this example (with Aerith now picking a divisor of 20002000), if both of them play optimally, who wins?

Solution

Solution:

If 1998=200021998 = 2000 - 2 were a losing position, Aerith would pick it. Otherwise, she can choose 1999=200011999 = 2000 - 1. And since this is prime, Bob must pick either 19991999=01999 - 1999 = 0 or 19991=19981999 - 1 = 1998. In any case, Aerith wins.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.