Maths Olympiad Prep

Library / /60 of 62

Combinatorics Difficulty 7.5 National Olympiad, round 2 Prove it Ukraine

Number 20162016 is written on the board. Olesya and Andriy are playing game: they take turns (Olesya is the first to start) to reduce the number on the board to an integer, not exceeding the number of the move (on the first move Olesya must reduce the number to 11, Andriy, in his turn, to 11 or 22, then Olesya to 11, 22 or 33 etc.). The winner is the first one to be able to write number 00 on the board. Who wins with the right game of both opponents?

(Oleksiy Piskun)

Answer: the second player wins.

Solution

Let us define the position for this game with a pair of numbers (m,n)(m, n), where mm – the number written on the board, and nn – the number of a move. We assume a position being winning, if after having got into it, a player still has a winning strategy. A losing one – when having got into it, an opponent will have a winning strategy. Each player tries to reach the position (0,n)(0, n) after his turn (that is to write down 00), that is why these positions are winning. Let us show that the map of winning-losing positions looks like in fig. 25.
Figure 1
Fig. 25
Let us note, that from the cell (m,n)(m, n) one can get into the cell (m1,n+1)(m-1, n+1), (m2,n+1)(m-2, n+1), ..., (mn,n+1)(m-n, n+1) that is, one can move into the next right column, or one, two, ..., nn cells down.
Having considered the values n=1,n=2,n=3n=1, n=2, n=3, one can suggest that periods of winning and losing positions in the nn-th column are as follows:
winning:[k2+nk;k2+nk+k],losing:[k2+nk+k+1;k2+nk+2k+n],kZ+. \textit{winning:} [k^2 + nk; k^2 + nk + k], \textit{losing:} [k^2 + nk + k + 1; k^2 + nk + 2k + n], k \in \mathbb{Z}^{+}.
We can prove this. That is, show that from each defined as a winning position one can get only into defined as a losing one, and from each position, defined as a losing, there exists a way into a position, defined as a winning.
Let on the nn-th step, number mm is written on the board, and there exists kNk \in \mathbb{N}:
k2+nkmk2+nk+k (that is, the position is winning). k^2 + nk \le m \le k^2 + nk + k \text{ (that is, the position is winning).}
Then we can subtract number ll, which is 1ln1 \le l \le n. The next move after that will be the (n+1)(n+1)th. We have got:
mlmnk2+nkn=(k1)2+(n+1)(k1)+(k1)+1, m-l \ge m-n \ge k^2 + nk - n = (k-1)^2 + (n+1)(k-1) + (k-1) + 1,
mlm1k2+nk+k1=(k1)2+(n+1)(k1)+2(k1)+(n+1). m-l \le m-1 \ge k^2 + nk + k-1 = (k-1)^2 + (n+1)(k-1) + 2(k-1) + (n+1).
As these are the final points of one losing range, then any move out of the winning position leads into the losing range for (k1)(k-1).
Let on the nn-th step, number mm is written on the board and there exists kNk \in \mathbb{N}:
k2+nk+k+1mk2+nk+2k+n (that is, the position is losing). k^2 + nk + k + 1 \le m \le k^2 + nk + 2k + n \text{ (that is, the position is losing).}
Let us discover what happens if we subtract 11 or nn. The move after that will be the (n+1)(n+1)th. We have got:
k2+(n+1)k+2k+(n+1)k2+nk+n1m1k2+nk+k=k2+(n+1)k,k^2 + (n+1)k + 2k + (n+1) \ge k^2 + nk + n-1 \ge m-1 \ge k^2 + nk + k = k^2 + (n+1)k, that is, we will get into a losing range for kk, or into a winning position.
k2+(n+1)k+k=k2+nk+2kmnk2+nk+k+1nk^2 + (n+1)k + k = k^2 + nk + 2k \ge m-n \ge k^2 + nk + k + 1 - n \ge
(k1)2+(n+1)(k1)+(k1)+1,\ge (k-1)^2 + (n+1)(k-1) + (k-1) + 1,
that is, we will get into a losing range for (k1)(k-1), or into a winning position.
We can also get from number mm to any number from (mn)(m-n) to (m1)(m-1). As these numbers belong to various losing ranges, there exists a winning range between them.
Thus, the chosen ranges are really winning or losing positions.
Let us see, into which range the position (2016;1)(2016; 1) will get. Just as
[442+44=1980<2016<442+44+44=2024,[44^2 + 44 = 1980 < 2016 < 44^2 + 44 + 44 = 2024,
so this position is winning, hence the second player 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 reproduced verbatim; metadata (topic, difficulty) added by this project.