Maths Olympiad Prep

Library / /4 of 7

, 2020

Combinatorics Difficulty 8.6 Shortlist Prove it Taiwan

There are NN empty boxes in a row on a table and an unlimited supply of pebbles. Given a positive integer nn, Alice and Bob play the following game.
In the first round, Alice takes nn pebbles and distributes them into the NN boxes as she wishes. Each subsequent round consists of two steps:
(i) Bob chooses an integer kk with 1k<N1 \le k < N and splits the boxes into the two groups B1,,BkB_1, \dots, B_k and Bk+1,,BNB_{k+1}, \dots, B_N.
(ii) Alice picks one of these two groups, adds one pebble to each box in that group, and removes one pebble from each box in the other group.
Bob wins if, at the end of any round, some box contains no pebbles. Let M=N2+121M = \lfloor \frac{N}{2} + 1 \rfloor^2 - 1 where x\lfloor x \rfloor denotes the largest integer not exceeding xx.
(a) Prove that, for any nMn \ge M, Alice has a strategy so that Bob can never win.
(b) Prove that, for any n<Mn < M, Bob has a strategy to guarantee a win.

Solution

For convenience, we call choosing B1,,BkB_1, \cdots, B_k choosing the left, and otherwise choosing the right.

a.
Partial solution: Let V=(v1,,vN)V = (v_1, \cdots, v_N) denote the situation where box ii contains viv_i pebbles. We say V>WV > W if and only if viwiv_i \ge w_i holds for all 1iN1 \le i \le N. Moreover, for any 1iN1 \le i \le N, let ViV_i denote the situation where box jj contains 1+ji1 + |j - i| pebbles; note that ViV_i has no empty box.

Now, suppose n=Mn = M, and Alice initially distributes the pebbles into the situation V[N/2]V_{[N/2]} (in this case the total number of pebbles is MM). In each subsequent round, suppose the starting state is WW with W>ViW > V_i.

– If Bob chooses kik \ge i, then Alice chooses the left, and the state at the end of the round will be >Vi+1> V_{i+1}.

– If Bob chooses k<ik < i, then Alice chooses the right, and the state at the end of the round will be >Vi1> V_{i-1}.

Therefore, at the end of any round, Alice can guarantee that her state is greater than some ViV_i, so there can never be an empty box. Part (a) is thus proved.

b.
Partial solution: We first prove two lemmas.

Lemma 1: Consider two consecutive rounds. Suppose that in the first round Bob chooses kk, and Alice chooses the left. If in the next round Bob chooses l>kl > k, then we only need to consider the possibility that Alice chooses the left.

Proof. Suppose the state at the start is W=(w1,,wN)W = (w_1, \cdots, w_N). If Alice chooses the right the second time, then the new state she ends up with is W=(w1,w2,,wk,wk+11,,wl1,wl,,wN)W' = (w_1, w_2, \cdots, w_k, w_{k+1} - 1, \cdots, w_l - 1, w_l, \cdots, w_N), so W<WW' < W. In doing so Alice has only made her situation strictly worse than before, so we only need to consider the case where she chooses the left both times. □

Lemma 2: If there exist at least 2k2k boxes, each containing at most kk pebbles, then Bob has a winning strategy.

Proof. Ignore the boxes other than these 2k2k boxes. First, Bob splits the 2k2k boxes evenly in half, and without loss of generality assume Alice chooses the left. Bob then successively chooses k+1,k+2,,2k1k+1, k+2, \cdots, 2k-1; by Lemma 1, we may always assume Alice chooses the left. But then, after all of the above kk moves have been completed, the rightmost box will be empty, and Bob wins. □

Now, if initially there is no empty box, and for any positive integer kk the situation of Lemma 2 does not occur, this means that every box has at least 1 pebble, and for all 1k[N/2]1 \le k \le [N/2], at least N(2k1)=N+12kN - (2k-1) = N + 1 - 2k boxes have at least k+1k+1 pebbles. Summing all of these up, we get that the total number of pebbles is at least MM. Hence if the initial number of pebbles is <M< M, Bob is guaranteed to win.

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 translated into English from zh; metadata (topic, difficulty) added by this project.