Skip to main content
OlympiadHQ

Browse · MathNet

Print

Pre-IMO 2017 Mock Exam

Hong Kong 2017 counting and probability

Problem

Let be an integer. A game is played on an board by two players X and Y as follows.

Order: The two players take turns to play. X plays in the 1st round, Y plays the 2nd round, then X plays the 3rd round and so on. Rule: In the th round, one has to choose unmarked consecutive cells in the same row or in the same column and mark each of these cells. Winner: The first player who cannot complete the task will lose the game.

The player who is expected to carry out the st round is called the
natural loser*, as there are no consecutive cells on the board. Find the smallest for which the natural loser has a winning strategy.
Solution
We claim that the smallest unnatural case is . In the following, we use to mean the cell in the th row and the th column, and use to mean the consecutive cells from to inclusive (similar for ).

For , X and Y can play in any way and the natural loser X will lose.

For , Y is the natural loser and X has a winning strategy. In the first round, X marks . WLOG Y has to mark . Then X can take .

For , Y has a winning strategy. In round 1, we may assume X chooses a cell in the upper left corner. Then Y can mark 2 consecutive cells in the same corner. This leaves 2 unoccupied rows as well as 2 unoccupied columns. WLOG we may assume X chooses certain cells from a row in round 3. Then there is at least one unoccupied row left, which can be marked by Y in round 4.

For , X has a winning strategy by first choosing . WLOG, we may assume Y chooses 2 cells in the upper left corner in the next round. Then X can always choose 3 consecutive cells from the same corner. Again, there are at least 2 unoccupied rows and 2 unoccupied columns. For the same reason as the case , X can win the game.

The same trick no longer works for . The natural loser X can still win the game. We propose a winning strategy as follows. Firstly, X chooses . WLOG assume Y chooses 2 cells in the th column in the next round.

If , X chooses in round 3. This blocks columns 3, 4, 5 and hence Y must mark at least one cell in column 2 or column 6 (but not both columns with obvious reason) in round 4. If some cells in column 2 (column 6 in the second case) is used, X can then take (correspondingly ) in round 5. Then all rows and columns have been used so that Y will lose.

A similar strategy works for cases . Y loses in all following subcases. - For , X chooses . In round 5, X should take or , depending on column 6 is used or not. - For , X chooses . In round 5, X should take or , depending on column 6 is used or not. - For , X chooses . In round 5, X should take or , depending on column 5 is used or not.

If and , X can still choose in round 3. - If Y chooses at least one cell in column 2 in round 4, X can then take in round 5. Y loses. - If Y chooses at least one cell in column 6 in round 4, X can then take in round 5. Y loses. - Suppose Y chooses in round 4. Next, X should take if row 6 is not used in round 2, or take otherwise. Y loses. - Suppose Y chooses in round 4. Next, X should take if row 2 is not used in round 2, or take otherwise. Y loses.

If and , X can take in round 3. - If Y chooses at least one cell in column 2 in round 4, X can then take in round 5. Y loses. - If Y chooses at least one cell in column 6 in round 4, X can then take in round 5. Y loses. - If Y chooses in round 4, X can take in round 5. Y loses. - Suppose Y chooses in round 4. Next, X should take if row 2 is not used in round 2, or take otherwise. Y loses. - If Y chooses 4 consecutive cells in column 3, 4 or 5 in round 4, then the first 5 rows are all occupied. X can then take in round 5. Y loses.

In all cases, X can win the game when . This completes the proof.
Final answer
6

Techniques

Games / greedy algorithmsColoring schemes, extremal arguments