Maths Olympiad Prep

Library / China National Team Selection Test /46 of 46

China National Team Selection Test

Combinatorics Difficulty 9.1 IMO level Prove it China

Let mm be an integer greater than 11, and let nn be an odd number with 3≤n<2m3 \le n < 2m. Numbers ai,ja_{i,j} (i,j∈Ni, j \in \mathbb{N}, 1≤i≤m1 \le i \le m, 1≤j≤n1 \le j \le n) satisfy:
(1) For every 1≤j≤n1 \le j \le n, a1,ja_{1,j}, a2,ja_{2,j}, ..., am,ja_{m,j} is a permutation of 1,2,...,m1, 2, ..., m;
(2) ∣ai,j−ai,j+1∣≤1|a_{i,j} - a_{i,j+1}| \le 1 for every 1≤i≤m1 \le i \le m, 1≤j≤n−11 \le j \le n-1.
Find the minimal possible value of M=max⁡1≤i≤m∑j=1nai,jM = \max_{1 \le i \le m} \sum_{j=1}^{n} a_{i,j}.

Solution

Let n=2l+1n = 2l + 1. Since 3≤n<2m3 \le n < 2m, we have 1≤l≤m−11 \le l \le m - 1. We first estimate the lower bound of MM.
By the condition (1), there exists a unique 1≤i0≤m1 \le i_0 \le m, such that ai0,l+1=ma_{i_0, l+1} = m. Consider ai0,la_{i_0, l} and ai0,l+2a_{i_0, l+2}.

Case 1: At least one of ai0,la_{i_0, l} and ai0,l+2a_{i_0, l+2} is mm, and we may assume without loss of generality that ai0,l=ma_{i_0, l}=m. It follows from the condition (2) that
ai0,l−1≥m−1,ai0,l−2≥m−2,…,ai0,1≥m−l+1,ai0,l+2≥m−1,ai0,l+3≥m−2,…,ai0,2l+1≥m−l. \begin{aligned} a_{i_0, l-1} &\ge m-1,\quad a_{i_0, l-2} \ge m-2,\quad \dots,\quad a_{i_0, 1} \ge m-l+1, \\ a_{i_0, l+2} &\ge m-1,\quad a_{i_0, l+3} \ge m-2,\quad \dots,\quad a_{i_0, 2l+1} \ge m-l. \end{aligned}
Thus,
M≥∑j=1nai0,j≥(m−l)+2((m−l+1)+(m−l+2)+⋯+m)=(2l+1)m−l2. \begin{aligned} M &\ge \sum_{j=1}^{n} a_{i_0, j} \\ &\ge (m-l) + 2((m-l+1) + (m-l+2) + \dots + m) \\ &= (2l+1)m - l^2. \end{aligned}

Case 2: None of ai0,la_{i_0, l} and ai0,l+2a_{i_0, l+2} is mm, and by the condition (1) there exists 1≤i1≤m1 \le i_1 \le m, i1≠i0i_1 \ne i_0, such that ai1,l=ma_{i_1, l} = m. It easily follows from the conditions (1) and (2) that ai1,l+1=m−1a_{i_1, l+1} = m-1, ai1,l+2=ma_{i_1, l+2} = m. It follows again from the condition (2) that
ai1,l≥m−1,ai1,l−1≥m−2,…,ai1,l−(l−1)≥m−l+1,ai1,l+2≥m−1,ai1,l+3≥m−2,…,ai1,l+1≥m−l+1. \begin{aligned} a_{i_1, l} &\ge m-1,\quad a_{i_1, l-1} \ge m-2,\quad \dots,\quad a_{i_1, l-(l-1)} \ge m-l+1, \\ a_{i_1, l+2} &\ge m-1,\quad a_{i_1, l+3} \ge m-2,\quad \dots,\quad a_{i_1, l+1} \ge m-l+1. \end{aligned}
Thus,
M≥∑j=1nai1,j≥2((m−l+1)+(m−l+2)+⋯+(m−1))=(2l+1)m−(l2−l+1). \begin{aligned} M &\ge \sum_{j=1}^{n} a_{i_1, j} \ge 2((m-l+1)+(m-l+2)+\dots+(m-1)) \\ &= (2l+1)m - (l^2-l+1). \end{aligned}
Combining the above two cases, we have M≥(2l+1)m−l2M \ge (2l+1)m - l^2.

On the other hand, consider
ai,j=f(2i+j)={2i+j,2i+j≤m,(2m+1)−(2i+j),m+1≤2i+j≤2m,(2i+j)−2m,2m+1≤2i+j≤3m,(4m+1)−(2i+j),3m+1≤2i+j≤4m. a_{i,j} = f(2i+j) = \begin{cases} 2i+j, & 2i+j \le m, \\ (2m+1)-(2i+j), & m+1 \le 2i+j \le 2m, \\ (2i+j)-2m, & 2m+1 \le 2i+j \le 3m, \\ (4m+1)-(2i+j), & 3m+1 \le 2i+j \le 4m. \end{cases}
We shall show that this table of numbers satisfies the required conditions in the problem.
For any 1≤i≤m1 \le i \le m, 1≤j≤n−11 \le j \le n-1, if m≠2i+jm \ne 2i+j, then
∣ai,j−ai,j+1∣=∣f(2i+j)−f(2i+j+1)∣=1; |a_{i,j} - a_{i,j+1}| = |f(2i+j) - f(2i+j+1)| = 1;
if m=2i+jm = 2i+j, then
∣ai,j−ai,j+1∣=∣f(2i+j)−f(2i+j+1)∣=0. |a_{i,j} - a_{i,j+1}| = |f(2i+j) - f(2i+j+1)| = 0.
The condition (2) is verified.

We next show that the condition (1) is also fulfilled. In fact, it suffices to show that for any integers 1≤j≤n1 \le j \le n and 1≤k≤m1 \le k \le m, there exists an integer 1≤i≤m1 \le i \le m such that ai,j=ka_{i,j} = k.
If j≡k(mod2)j \equiv k \pmod 2, since 1≤j≤n1 \le j \le n, 1≤k≤m1 \le k \le m and n<2mn < 2m,
we have −2m<k−j<m-2m < k-j < m, and therefore −m<k−j2<m-m < \frac{k-j}{2} < m, and note that k−j2\frac{k-j}{2} is an integer. Thus, at least one of k−j2\frac{k-j}{2} and k−j2+m\frac{k-j}{2} + m is in the set {1,2,…,m}\{1, 2, \dots, m\}; taking this number to be ii will do the job.
If j≢k(mod2)j \not\equiv k \pmod 2, again since 1≤j≤n1 \le j \le n, 1≤k≤m1 \le k \le m and n<2mn < 2m, we have
−2m<(2m+1)−(j+k)<2m, -2m < (2m+1) - (j+k) < 2m,
and therefore
−m<(2m+1)−(j+k)2<m, -m < \frac{(2m+1) - (j+k)}{2} < m,
and (2m+1)−(j+k)2\frac{(2m+1)-(j+k)}{2} is an integer. Thus, at least one of (2m+1)−(j+k)2\frac{(2m+1)-(j+k)}{2} and (2m+1)−(j+k)2+m\frac{(2m+1)-(j+k)}{2} + m is in the set {1,2,…,m}\{1, 2, \dots, m\}; taking this number to be ii will do the job.

We now estimate MM in this case. Since the condition (1) holds, for any 1≤i1<i2≤m1 \le i_1 < i_2 \le m, 1≤j≤n−11 \le j \le n-1, we have f(2i1+j)≢f(2i2+j)f(2i_1 + j) \not\equiv f(2i_2 + j), i.e. for any integers x,yx, y with the same parity such that 3≤x<y≤2m+n3 \le x < y \le 2m+n and y−x<2my-x < 2m, we have f(x)≠f(y)f(x) \ne f(y). Thus, for a given ii, ai,1,ai,2,…,ai,2l+1a_{i,1}, a_{i,2}, \dots, a_{i,2l+1} are pairwise distinct, and so are numbers ai,2,ai,3,…,ai,2la_{i,2}, a_{i,3}, \dots, a_{i,2l}. As a result,
∑j=1nai,j≤(m−l)+2((m−l+1)+(m−l+2)+⋯+m)=(2l+1)m−l2. \begin{aligned} \sum_{j=1}^{n} a_{i,j} &\le (m-l) + 2((m-l+1) + (m-l+2) + \dots + m) \\ &= (2l+1)m - l^2. \end{aligned}
Thus, M=max⁡∑1≤i≤mai,j≤(2l+1)m−l2M = \max \sum_{1 \le i \le m} a_{i,j} \le (2l+1)m - l^2.

Therefore, the minimal possible value of MM is (2l+1)m−l2(2l+1)m - l^2 where n=2l+1n = 2l+1.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.