Browse · MathNet
Print59th Ukrainian National Mathematical Olympiad
Ukraine counting and probability
Problem
Given a white table. Andrii and Arsenii are playing the following game: one after another (starting with Andrii) a player colors one of the cells in black. Moreover, one's turn cannot create a square that contains two black cells. Whoever doesn't have a turn loses. Who will win if both want to win the game? And what is the strategy?

Fig. 3
Fig. 3
Solution
We will show that there exists a strategy such that Arsenii always has a turn after Andrii's turn. We will split all the cells into friendly pairs. Two cells make a friendly pair, if they are in the same column and there are exactly two cells in-between. Then Arsenii colors the cell that makes a friendly pair with a cell that Andrii colored during his last turn.
We want to show that Arsenii always has such a turn. If Andrii colored some cell , then a cell , that makes a friendly pair with is white. Moreover, suppose the cell cannot be colored in black because there already is another black cell in some square that is located either in the very top or the very bottom of the table. Then there also exists another similar square either in the very top or the very bottom that contains cells and , both of which are black, where is a friendly pair of (Fig. 3). This completes the proof.
We want to show that Arsenii always has such a turn. If Andrii colored some cell , then a cell , that makes a friendly pair with is white. Moreover, suppose the cell cannot be colored in black because there already is another black cell in some square that is located either in the very top or the very bottom of the table. Then there also exists another similar square either in the very top or the very bottom that contains cells and , both of which are black, where is a friendly pair of (Fig. 3). This completes the proof.
Final answer
Arsenii (the second player) wins. Strategy: partition each column into friendly pairs of cells three rows apart, and after Andrii colors a cell, Arsenii colors its paired cell in the same column.
Techniques
Games / greedy algorithms