Olympiad Maths Prep

Track / Stage 7 / 252 of 300 #1652 of 2000

Problem 1652

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.6 Prove it 36th Balkan Mathematical Olympiad · Greece

A grid consists of all points of the form (m,n)(m, n) where mm and nn are integers with m2019|m| \le 2019, n2019|n| \le 2019 and m+n<4038|m| + |n| < 4038. We call the points (m,n)(m, n) of the grid with either m=2019|m| = 2019 or n=2019|n| = 2019 the *boundary points*. The four lines x=±2019x = \pm 2019 and y=±2019y = \pm 2019 are called *boundary lines*. Two points in the grid are called *neighbours* if the distance between them is equal to 1.
Anna and Bob play a game on this grid.
Anna starts with a token at the point (0,0)(0, 0). They take turns, with Bob playing first.
1) On each of his turns, Bob deletes at most two boundary points on each boundary line.
2) On each of her turns, Anna makes exactly three *steps*, where a *step* consists of moving her token from its current point to any neighbouring point which has not been deleted.
As soon as Anna places her token on some boundary point which has not been deleted, the game is over and Anna wins.

Does Anna have a winning strategy?

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Anna does not have a winning strategy. We will provide a winning strategy for Bob. It is enough to describe his strategy for the deletions on the line y=2019y = 2019.

Bob starts by deleting (0,2019)(0, 2019) and (1,2019)(-1, 2019). Once Anna completes her turn, he deletes the next two available points on the left if Anna decreased her xx-coordinate, the next two available points on the right if Anna increased her xx-coordinate, and the next available point to the left and the next available point to the right if Anna did not change her xx-coordinate. The only exception to the above rule is on the very first time Anna decreases xx by exactly 1. In that turn, Bob deletes the next available point to the left and the next available point to the right.

Bob's strategy guarantees the following: If Anna makes a sequence of steps reaching (x,y)(-x, y) with x>0x > 0 and the exact opposite sequence of steps in the horizontal direction reaching (x,y)(x, y), then Bob deletes at least as many points to the left of (0,2019)(0, 2019) in the first sequence than points to the right of (0,2019)(0, 2019) in the second sequence.

So we may assume for contradiction that Anna wins by placing her token at (k,2019)(k, 2019) for some k>0k > 0.

Define Δ=3m(2x+y)\Delta = 3m - (2x + y), where mm is the total number of points deleted by Bob to the right of (0,2019)(0, 2019), and (x,y)(x, y) is the position of Anna's token.

For each sequence of steps performed first by Anna and then by Bob, Δ\Delta does not decrease. This can be seen by looking at the following table exhibiting the changes in 3m3m and 2x+y2x + y. We have excluded the cases where 2x+y<02x + y < 0.

| Turn | (0,3) | (1,2) | (-1,2) | (2,1) | (0,1) | (3,0) | (1,0) | (2,-1) | (1,-2) |
|-----------|-------|-------|--------|-------|-------|-------|-------|--------|--------|
| m | 1 | 2 | 0 (or 1) | 2 | 1 | 2 | 2 | 2 | 2 |
| 3m | 3 | 6 | 0 (or 3) | 6 | 3 | 6 | 6 | 6 | 6 |
| 2x + y | 3 | 4 | 0 | 5 | 1 | 6 | 2 | 3 | 0 |

The table also shows that, if in this sequence of turns Anna changes yy by +1 or -2, then Δ\Delta is increased by 1. Also, if Anna changes yy by +2 or -1, then the first time this happens Δ\Delta is increased by 2. (This also holds if her turn is (0, -1) or (-2, -1), which are not shown in the table.)

Since Anna wins by placing her token at (k,2019)(k, 2019) we must have mk1m \le k - 1 and k2018k \le 2018. So at that exact moment we have:
Δ=3m(2k+2019)=k20224. \Delta = 3m - (2k + 2019) = k - 2022 \le -4.
So in her last turn she must have decreased Δ\Delta by at least 4. So her last turn must have been (1, 2) or (2, 1), which give a decrease of 4 and 5 respectively. (It could not be (3, 0) because then she must have already won. Also she could not have done just one or two steps in her last turn since this is not enough for the required decrease in Δ\Delta.)

If her last turn was (1, 2), then just before doing it we had y=2017y = 2017 and Δ=0\Delta = 0. This means that in one of her turns the total change in yy was not 0mod30 \mod 3. However, in that case we have seen that Δ>0\Delta > 0, a contradiction.

If her last turn was (2, 1), then just before doing it we had y=2018y = 2018 and Δ=0\Delta = 0 or Δ=1\Delta = 1. So she must have made at least two turns with the change of yy being +1 or -2 or at least one step with the change of yy being +2 or -1. In both cases, consulting the table, we get an increase of at least 2 in Δ\Delta, a contradiction.

Note 1: If Anna is allowed to make at most three steps at each turn, then she actually has a winning strategy.

Note 2: If 2019 is replaced by N>1N > 1, then Bob has a winning strategy if and only if 3N3 \mid N. □

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.