Olympiad Maths Prep

Library / /16 of 30

Combinatorics Difficulty 6.3 National olympiad Prove it Belarus

Integers from 11 to 8080 are written on a blackboard. Tom and Jerry play the following game. They, in turn (Tom is the first), erase these numbers. Per move it is allowed to erase exactly 11, or exactly 55, or exactly 88 numbers. The player wins if he erases the last number.
Who wins if both of the players play to win?

Solution

It is easy to see that if either 11 or 55 numbers remain on the blackboard, then the player who must move wins, but if 22 or 44 numbers remain, then this player loses. So we will solve the problem moving backward. We write all numbers from 11 to 8080 and mark them with "+" or "-". If kk numbers remain on the blackboard before the move of a player and he can win, then we write +k+k, otherwise we write k-k. We have the following table:

| +1 | -2 | +3 | -4 | +5 | -6 | +7 | +8 | +9 | +10 | +11 | +12 | -13 |
|----|----|----|----|----|----|----|----|----|-----|-----|-----|-----|
| 1 | - | 1 | - | 5 | - | 1 | 8 | 5 | 8 | 5 | 8 | - |

| +14 | -15 | +16 | -17 | +18 | -19 | +20 | +21 | +22 | +23 | +24 | +25 | -26 | ... |
|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|
| 1 | - | 1 | - | 5 | - | 1 | 8 | 5 | 8 | 5 | 8 | - | ... |

The second row of the table contains the possible winning moves (to win the player can erase so many numbers that after his move the quantity of the numbers remained on the blackboard would be marked with "+"). We see that the signs in the first row of the table are repeated with the period equaled 1313 (it is easy to prove by induction).

Since 8080 leaves remainder 22 when divided by 1313, it follows that 8080 and 22 are marked with the same sign, i.e. "-". Thus the number 8080 is the losing number of the numbers for the beginning player. To win Jerry can erase so many numbers as it is written in the second row of the table.

Looking for a route rather than 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.