Browse · MathNet
PrintIMO Team Selection Test 2, June 2020
Netherlands 2020 counting and probability
Problem
Ward and Gabrielle are playing a game on a large sheet of paper. At the start of the game, there are 999 ones on the sheet of paper. Ward and Gabrielle each take turns alternatingly, and Ward has the first turn. During their turn, a player must pick two numbers and on the sheet such that , erase these numbers from the sheet, and write the number on the sheet. The first player who is not able to do so, loses. Determine which player can always win this game.
Solution
Gabrielle can always win using the following strategy: during each of her turns, she picks the largest two numbers on the sheet as and . Using induction on , we will prove that she is always allowed to do so, and that after her -th turn, the sheet contains the number and ones.
In his first turn, Ward can only pick , after which the sheet contains the number and ones. Gabrielle then picks the two largest numbers, and , after which the sheet contains and ones. This finishes the basis of the induction.
Now suppose that for some after Gabrielle's -th turn the sheet contains the number and ones. If , then Ward cannot make a move. If not, then Ward can do one of two things, either pick or pick and . We consider these two cases separately:
If Ward picks , then the sheet contains the number , the number , and ones. Gabrielle then picks the two largest numbers, so and (which is allowed since their gcd is ). After her turn the sheet contains the numbers and ones.
If Ward picks and , then the sheet contains the number and ones. Gabrielle then picks the two largest numbers, so and (which is allowed since their gcd is ). Note that there is a one left, as is odd, so not equal to . After her turn the sheet contains the numbers and ones.
This completes the induction.
Therefore Gabrielle can always make a move. After Gabrielle's turn the only number left on the sheet is , so Ward can no longer make a move, and Gabrielle wins.
In his first turn, Ward can only pick , after which the sheet contains the number and ones. Gabrielle then picks the two largest numbers, and , after which the sheet contains and ones. This finishes the basis of the induction.
Now suppose that for some after Gabrielle's -th turn the sheet contains the number and ones. If , then Ward cannot make a move. If not, then Ward can do one of two things, either pick or pick and . We consider these two cases separately:
If Ward picks , then the sheet contains the number , the number , and ones. Gabrielle then picks the two largest numbers, so and (which is allowed since their gcd is ). After her turn the sheet contains the numbers and ones.
If Ward picks and , then the sheet contains the number and ones. Gabrielle then picks the two largest numbers, so and (which is allowed since their gcd is ). Note that there is a one left, as is odd, so not equal to . After her turn the sheet contains the numbers and ones.
This completes the induction.
Therefore Gabrielle can always make a move. After Gabrielle's turn the only number left on the sheet is , so Ward can no longer make a move, and Gabrielle wins.
Final answer
Gabrielle
Techniques
Games / greedy algorithmsInduction / smoothingGreatest common divisors (gcd)