Maths Olympiad Prep

Library / /65 of 101

Combinatorics Difficulty 6.4 National olympiad Prove it Estonia

Juku and Miku are playing the following game. In the beginning, there is a positive integer on the board. Each turn, a player subtracts from the number on the board a non-zero digit that appears in his or his opponent's ID code, and replaces the number on the board with the result. Players take turns, Juku starts. The player whose move ends up in a negative number on the board loses. Prove that, among any 10 consecutive positive integers, there is a number nn such that, if initially the number nn is on the board, then Juku can win the game regardless of his opponent's counterplay.

Solution

Let a,a+1,,a+9a, a+1, \dots, a+9 be 10 arbitrary consecutive positive integers. If there exists a number nn among a,a+1,,a+8a, a+1, \dots, a+8 for which Juku has a winning strategy, then we are done. We will now assume that if any of the numbers a,a+1,,a+8a, a+1, \dots, a+8 is on the board, then the active player loses if his opponent plays perfectly. Then, if n=a+9n = a+9, Juku can start by subtracting any non-zero digit, after which the number on the board is one of a,a+1,,a+8a, a+1, \dots, a+8, putting Miku in a losing position, which means that Juku will win. There must be a non-zero digit in either code, as both codes cannot be strings of zeroes, as they must be distinct and have the same length.

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 and solution reproduced as published; topic and difficulty added by this site.