Maths Olympiad Prep

Library / /18 of 24

, 2016

Combinatorics Difficulty 7.2 National olympiad, round 2 Prove it Argentina

Agustin and Lucas take turns in marking one cell at a time in a 101×101101 \times 101 grid. Agustin starts the game. A cell cannot be marked if there are already two marked cells in its row or in its column. The one who cannot move loses. Decide which player has a winning strategy.

Solution

We describe a winning strategy for the second player Lucas. It applies to any grid square n×nn \times n with odd n3n \ge 3. Call a row or column empty, incomplete or full at a certain moment of the game if it contain respectively 0, 1 or 2 marked cells. The strategy of Lucas has two stages.

Stage 1: The first move of Agustin has the following properties. It is in an empty row RR and an empty column CC, and after it there are still empty rows left. Call such a move standard. The answer of Lucas to a standard move of Agustin is to choose an empty row RRR' \ne R and mark the intersection of RR' and column CC. Such a standard answer is allowed by the rules, and it makes CC a full column; thus CC cannot be used later on. Let Lucas give standard answers as long as Agustin makes standard moves (at least Agustin's first move is standard). Observe that each column either empty or full after every standard answer of Lucas, hence Agustin's next move is in an empty column. Since there is a standard answer to any standard move, Lucas cannot lose if all of Agustin's moves are standard. Suppose then that Agustin makes non-standard moves, and let MM be the first one of them. As explained above, MM is in an empty column CC. There are two possibilities: (1) MM is in an incomplete row RR; (2) MM is in the last empty row remaining. In case (1) there are still empty rows left. Indeed each previous combined move of the two leaves an odd number of empty rows because nn is odd. So Lucas gives a standard answer again: taking an empty row RRR' \ne R and marking the intersection of RR' and column CC. In case (2) all rows are incomplete after MM. Here Lucas takes any row RRR' \ne R and marks the intersection of RR' and column CC, thus making RR' full. This completes stage 1. As a result the table has the following properties:
(i) The number EE of empty rows is even.
(ii) The number II of incomplete rows is even.
(iii) There are no incomplete columns.
Indeed EE is odd and II is even after all moves before MM, while the last combined move of the two decreases EE by 1 and does not change II, in both case 1 and 2. Hence (i) and (ii) hold. As for (iii), it holds after every move of Lucas so far.

Stage 2: Now Lucas makes sure that after each move of his properties (i) - (iii) are preserved. Let us justify that he can achieve this no matter how Agustin plays.
Let Agustin make a move MM in row RR and column CC, where RR is empty. Then CC was also empty before MM. This is because by (iii) there were no incomplete columns before MM, and one cannot move in a full column. So MM makes both RR and CC incomplete, in particular, by (i), EE is odd after MM. Hence it is possible for Lucas to mark the intersection of one empty row RRR' \ne R and column CC. This is a standard answer which makes CC full and RR' incomplete. Thus the combined move of Agustin and Lucas decreases EE by 2 and increases II by 2. Hence (i) - (iii) are preserved after the answer of Lucas.

Similarly let Agustin make a move MM in row RR and column CC where RR is incomplete. As in the previous case, CC was empty before MM. So MM makes RR full and CC incomplete. Then by (ii) II is odd after MM. Hence Lucas can mark the intersection of one incomplete row RRR' \ne R and column CC, making both RR' and CC full. The combined move of Agustin and Lucas decreases II by 2 and does not change EE. Again, (i) - (iii) are maintained after the answer of Lucas.

In conclusion, Lucas is able to answer any move of Agustin at the second stage, hence he will not lose. The game is finite; there will be a loser, and it is not Lucas. Hence eventually Agustin loses and thus Lucas 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 and solution reproduced as published; topic and difficulty added by this site.