Maths Olympiad Prep

Library / IMO 1J, Mock Exam 1 /3 of 3

IMO 1J, Mock Exam 1

Combinatorics Difficulty 9.1 IMO level Prove it Taiwan

Frieren and a mimic use 113113 treasure chests to play a game. At the beginning, all chests are empty and unlocked. In each year, Frieren adds a gem in an unlocked chest, then the mimic acts according to the following rules:
- If there is only one unlocked chest, unlock all chests;
- If there are more than one unlocked chests, the mimic chooses to lock one of the unlocked chests.
Prove that there exists a constant C>0C > 0 such that, no matter how the mimic acts, Frieren can always guarantee that, at the end of any year, the difference between the number of gems in any two chests never exceeds CC. (Remark. The mimics are not allowed to eat Frieren.)

Solution

In general, for nn chests, we may take C=n−1C = n - 1. Frieren's strategy is simple: in each year, among the unlocked chests, choose one with the fewest gems and add a gem to it. (Remark. This is not the only feasible strategy.)

To prove that this strategy works, let x1t≤x2t≤⋯≤xntx_1^t \le x_2^t \le \cdots \le x_n^t be the number of gems in the chests at the end of year tt, and let x10=x20=⋯=xn0=0x_1^0 = x_2^0 = \cdots = x_n^0 = 0. We have the following observations:

(a) For any tt, there exists a unique m=m(t)m = m(t) such that xmt+1=xmt+1x_m^{t+1} = x_m^t + 1;

(b) For any j>mj > m, xmt<xmt+1≤xjt+1=xjtx_m^t < x_m^{t+1} \le x_j^{t+1} = x_j^t;

(c) Since the number of locked chests at the end of year tt equals the remainder rr of tt divided by nn, if j>rj > r, there must exist an unlocked chest with a number of gems not exceeding xjtx_j^t, so xjt≥xmtx_j^t \ge x_m^t.

Our goal is to prove that xnt−x1t≤C=n−1x_n^t - x_1^t \le C = n - 1 holds for all tt. To do this, we will construct an increasing sequence ynty_n^t satisfying ynt−y1t≤Cy_n^t - y_1^t \le C, together with
y1t+⋯+ykt≤x1t+⋯+xktfor all 1≤k≤n,(1) y_1^t + \cdots + y_k^t \le x_1^t + \cdots + x_k^t \quad \text{for all}~1 \le k \le n, \quad (1)
y1t+⋯+ynt=x1t+⋯+xnt.(2) y_1^t + \cdots + y_n^t = x_1^t + \cdots + x_n^t. \quad (2)
If this holds, then by (1) we have x1t≥y1tx_1^t \ge y_1^t and by (2) we have xnt≤yntx_n^t \le y_n^t, so xnt−x1t≤ynt−y1t≤Cx_n^t - x_1^t \le y_n^t - y_1^t \le C, which completes the proof.

To this end, let us construct yity_i^t. Let yi0=i−n+12y_i^0 = i - \frac{n+1}{2}, then it is easy to see that yi0y_i^0 is increasing and ∑yi0=0\sum y_i^0 = 0. We then define
yit+1={yit+1if t+1≡i(modn),yitotherwise. y_i^{t+1} = \begin{cases} y_i^t + 1 & \text{if } t+1 \equiv i \pmod{n}, \\ y_i^t & \text{otherwise.} \end{cases}
Then it is easy to see that ∑iyit=t\sum_i y_i^t = t, and
yit≤yi+1t, with equality possible only when t≡i(modn).(3) y_i^t \le y_{i+1}^t, \text{ with equality possible only when } t \equiv i \pmod{n}. \quad (3)
Now, (2) clearly holds, so we only need to prove that (1) holds. We proceed by induction on tt. Suppose the original statement holds for tt, and suppose we have
y1t+⋯+ykt≤x1t+⋯+xkt but y1t+1+⋯+ykt+1>x1t+1+⋯+xkt+1.(4) y_1^t + \cdots + y_k^t \le x_1^t + \cdots + x_k^t \text{ but } y_1^{t+1} + \cdots + y_k^{t+1} > x_1^{t+1} + \cdots + x_k^{t+1}. \quad (4)
Note that from tt to t+1t+1, both sides of the inequality increase by at most 11, so (4) implies that the following three things must occur simultaneously:

(d) There must exist 1≤j≤k1 \le j \le k such that yjt+1=yjt+1y_j^{t+1} = y_j^t + 1, that is, t+1≡j(modn)t+1 \equiv j \pmod{n};

(e) For all 1≤j≤k1 \le j \le k, xjt+1=xjtx_j^{t+1} = x_j^t, that is, m(t)>km(t) > k;

(f) y1t+⋯+ykt=x1t+⋯+xkty_1^t + \cdots + y_k^t = x_1^t + \cdots + x_k^t.

However:
- By the induction hypothesis and (f), ykt≥xkty_k^t \ge x_k^t;
- By (d), the remainder of tt modulo nn is at most k−1k-1, so by the previous point and (3), yk+1t>ykt≥xkty_{k+1}^t > y_k^t \ge x_k^t;
- By (d), the remainder of tt modulo nn is at most k−1k-1, so by (c), xkt≥xmtx_k^t \ge x_m^t;
- But by (e), m>km > k, together with the non-decreasing property, gives xkt≤xmtx_k^t \le x_m^t; combined with the previous point, we get xkt=xk+1t=⋯=xmtx_k^t = x_{k+1}^t = \cdots = x_m^t.

Combining the above, we have yk+1t>ykt≥xkt=xk+1ty_{k+1}^t > y_k^t \ge x_k^t = x_{k+1}^t, so by (f)
y1t+⋯+yk+1t=(y1t+⋯+ykt)+yk+1t>(x1t+⋯+xkt)+xk+1t, y_1^t + \cdots + y_{k+1}^t = (y_1^t + \cdots + y_k^t) + y_{k+1}^t > (x_1^t + \cdots + x_k^t) + x_{k+1}^t,
which contradicts the induction hypothesis. Therefore (1) holds. This completes the proof.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge 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.