Maths Olympiad Prep

Library / /34 of 43

Combinatorics Difficulty 6.3 National Olympiad Prove it JBMO

Problem:

There are two piles of coins, each containing 20102010 pieces. Two players AA and BB play a game taking turns (AA plays first). At each turn, the player on play has to take one or more coins from one pile or exactly one coin from each pile. Whoever takes the last coin is the winner. Which player will win if they both play in the best possible way?

Solution

Solution:

BB wins.

In fact, we will show that AA will lose if the total number of coins is a multiple of 33 and the two piles differ by not more than one coin (call this a balanced position). To this end, firstly notice that it is not possible to move from one balanced position to another. The winning strategy for BB consists in returning AA to a balanced position (notice that the initial position is a balanced position).

There are two types of balanced positions; for each of them consider the moves of AA and the replies of BB.

If the number in each pile is a multiple of 33 and there is at least one coin:
- if AA takes 3n3n coins from one pile, then BB takes 3n3n coins from the other one.
- if AA takes 3n+13n+1 coins from one pile, then BB takes 3n+23n+2 coins from the other one.
- if AA takes 3n+23n+2 coins from one pile, then BB takes 3n+13n+1 coins from the other one.
- if AA takes a coin from each pile, then BB takes one coin from one pile.

If the numbers are not multiples of 33, then we have 3m+13m+1 coins in one pile and 3m+23m+2 in the other one. Hence:
- if AA takes 3n3n coins from one pile, then BB takes 3n3n coins from the other one.
- if AA takes 3n+13n+1 coins from the first pile (nmn \leq m), then BB takes 3n+23n+2 coins from the second one.
- if AA takes 3n+23n+2 coins from the second pile (nmn \leq m), then BB takes 3n+13n+1 coins from the first one.
- if AA takes 3n+23n+2 coins from the first pile (nm1n \leq m-1), then BB takes 3n+43n+4 coins from the second one.
- if AA takes 3n+13n+1 coins from the second pile (nmn \leq m), then BB takes 3n13n-1 coins from the first one. This is impossible if AA has taken only one coin from the second pile; in this case BB takes one coin from each pile.
- if AA takes a coin from each pile, then BB takes one coin from the second pile.

In all these cases, the position after BB's move is again a balanced position. Since the number of coins decreases and (0,0)(0, 0) is a balanced position, after a finite number of moves, there will be no coins left after BB's move. Thus, BB 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.