Maths Olympiad Prep

Library / /28 of 28

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 3n<2m3 \le n < 2m. Numbers ai,ja_{i,j} (i,jNi, j \in \mathbb{N}, 1im1 \le i \le m, 1jn1 \le j \le n) satisfy:
(1) For every 1jn1 \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,jai,j+11|a_{i,j} - a_{i,j+1}| \le 1 for every 1im1 \le i \le m, 1jn11 \le j \le n-1.
Find the minimal possible value of M=max1imj=1nai,jM = \max_{1 \le i \le m} \sum_{j=1}^{n} a_{i,j}.

Solution

Let n=2l+1n = 2l + 1. Since 3n<2m3 \le n < 2m, we have 1lm11 \le l \le m - 1. We first estimate the lower bound of MM.
By the condition (1), there exists a unique 1i0m1 \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,l1m1,ai0,l2m2,,ai0,1ml+1,ai0,l+2m1,ai0,l+3m2,,ai0,2l+1ml. \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,
Mj=1nai0,j(ml)+2((ml+1)+(ml+2)++m)=(2l+1)ml2. \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 1i1m1 \le i_1 \le m, i1i0i_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=m1a_{i_1, l+1} = m-1, ai1,l+2=ma_{i_1, l+2} = m. It follows again from the condition (2) that
ai1,lm1,ai1,l1m2,,ai1,l(l1)ml+1,ai1,l+2m1,ai1,l+3m2,,ai1,l+1ml+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,
Mj=1nai1,j2((ml+1)+(ml+2)++(m1))=(2l+1)m(l2l+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)ml2M \ge (2l+1)m - l^2.

On the other hand, consider
ai,j=f(2i+j)={2i+j,2i+jm,(2m+1)(2i+j),m+12i+j2m,(2i+j)2m,2m+12i+j3m,(4m+1)(2i+j),3m+12i+j4m. 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 1im1 \le i \le m, 1jn11 \le j \le n-1, if m2i+jm \ne 2i+j, then
ai,jai,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,jai,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 1jn1 \le j \le n and 1km1 \le k \le m, there exists an integer 1im1 \le i \le m such that ai,j=ka_{i,j} = k.
If jk(mod2)j \equiv k \pmod 2, since 1jn1 \le j \le n, 1km1 \le k \le m and n<2mn < 2m,
we have 2m<kj<m-2m < k-j < m, and therefore m<kj2<m-m < \frac{k-j}{2} < m, and note that kj2\frac{k-j}{2} is an integer. Thus, at least one of kj2\frac{k-j}{2} and kj2+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 1jn1 \le j \le n, 1km1 \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 1i1<i2m1 \le i_1 < i_2 \le m, 1jn11 \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 3x<y2m+n3 \le x < y \le 2m+n and yx<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(ml)+2((ml+1)+(ml+2)++m)=(2l+1)ml2. \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=max1imai,j(2l+1)ml2M = \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)ml2(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,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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