Baltic Way 2010 · Problem 9
Combinatorics
There is a pile of 1000 matches. Two players each take turns and can take 1 to 5 matches. It is also allowed at most 10 times during the whole game to take 6 matches, for example 7 exceptional moves can be done by the first player and 3 moves by the second and then no more exceptional moves are allowed. Whoever takes the last match wins. Determine which player has a winning strategy.
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Games and strategies · Algorithms and processes · Invariants and monovariants
Solutions
Solution
Let be the number of the remaining exceptional moves in the current position (at the beginning of the game and decreases during the game). The winning strategy of the second player is the following. After his move the number of matches in the pile must have the form , where , or , where (observe that for ).
At the beginning of the game the initial number of matches agrees with this strategy.
What happens during two consecutive moves?
Consider the case first. If the first player takes matches (and hence is not changing during his move) then the second player takes matches. So players take matches together and the pile contains now matches.
Contest context
Results from Baltic Way 2010
10 teams
- Mean score
- 2.5 / 5
- Scores of 4 or 5
- 5 / 10
- Estonia
- 4 / 5
Score distribution
All team scores
| Team | Score |
|---|---|
| Poland | 0 / 5 |
| Lithuania | 5 / 5 |
| Germany | 1 / 5 |
| Latvia | 5 / 5 |
| Denmark | 5 / 5 |
| Sweden | 5 / 5 |
| Estonia | 4 / 5 |
| Norway | 0 / 5 |
| Finland | 0 / 5 |
| Iceland | 0 / 5 |