Skip to main content
OlympiadHQ

Browse · MathNet

Print

Mathematical Olympiad Rioplatense

Argentina counting and probability

Problem

There are given boxes () with pebbles in each one. A legal move is to choose boxes and remove one pebble from each one of them. Players and make moves alternately; goes first. A player wins if a move of his empties two boxes. Determine which player has a winning strategy.
Solution
The second player has a winning strategy.

Each move does not affect (ignores) exactly two boxes ; then we denote it by . Let 's first move be . Then divides the remaining boxes arbitrarily into pairs , and his first moves are . He is not interested in how plays until move , the last one of these . However 's move after depends on 's response. We show that this move of , his th, is winning.

Every box is ignored by exactly one of the moves . Hence these moves combined decrease the contents of every box by exactly .

Let be 's moves matching . They affect a box at most times, so by the previous conclusion there will be at least pebbles in each box after . In particular are not winning.

We claim that after at least two boxes contain exactly one pebble. A move ignores two boxes; then moves ignore at most boxes. So there exist two boxes and that are affected by each of the moves , meaning that the latter sequence decreases their contents by exactly . But the previous sequence decreased the contents of every box by exactly . As a result each of and has exactly one pebble after . It is clear now that 's next move is winning.
Final answer
Player B

Techniques

Games / greedy algorithmsPigeonhole principle