Maths Olympiad Prep

Library / /1 of 8

, 2022

Combinatorics Difficulty 7.2 National olympiad, round 2 Prove it China

Let mm and nn be two positive integers with mn2022m \ge n \ge 2022. Let a1,a2,,an,b1,b2,,bna_1, a_2, \dots, a_n, b_1, b_2, \dots, b_n be 2n2n real numbers. Prove that the numbers of ordered pairs (i,j)(i, j) (1i,jn1 \le i, j \le n) such that
ai+bjijm |a_i + b_j - ij| \le m
is less than or equal to 3nmlogn3n\sqrt{m \log n}.

Solution

Proof: Mark red all points (i,j)(i, j) for which ai+bjijm|a_i + b_j - ij| \le m.

Lemma: If (i1,j1)(i_1, j_1), (i1,j2)(i_1, j_2), (i2,j1)(i_2, j_1), (i2,j2)(i_2, j_2) are all red, then (i2i1)(j2j1)4m|(i_2 - i_1)(j_2 - j_1)| \le 4m.

Proof of the lemma: By the definition of red points, we know
ai1+bj1i1j1m,ai1+bj2i1j2m,ai2+bj1i2j1m,ai2+bj2i2j2m. |a_{i_1} + b_{j_1} - i_1 j_1| \le m, \quad |a_{i_1} + b_{j_2} - i_1 j_2| \le m, \quad |a_{i_2} + b_{j_1} - i_2 j_1| \le m, \quad |a_{i_2} + b_{j_2} - i_2 j_2| \le m.
Taking the differences of these expressions to eliminate ai1a_{i_1}, ai2a_{i_2}, bj1b_{j_1}, and bj2b_{j_2}, we get i1j1i1j2i2j1+i2j24m|i_1j_1 - i_1j_2 - i_2j_1 + i_2j_2| \le 4m. This proves the lemma.

We first calculate, for a given pair 1i1<i2n1 \le i_1 < i_2 \le n, the number of jj's such that (i1,j)(i_1, j) and (i2,j)(i_2, j) are all red points. Put d=i2i1d = i_2 - i_1. Since the difference of any two such jj's is at most 4md\frac{4m}{d}, we can have at most 4md+1\frac{4m}{d} + 1 such jj's.

Moreover, when the difference dd is given, there are ndn-d ways to choose i1i_1 and i2i_2, so the total number of 1i1<i2n1 \le i_1 < i_2 \le n and 1jn1 \le j \le n for which (i1,j)(i_1, j) and (i2,j)(i_2, j) are all red points cannot be larger than
d=1n1(nd)(4md+1)=d=1n1(nd)4mn+4md=1n1nd<n(n1)2+4mnlnn. \sum_{d=1}^{n-1} (n-d)\left(\frac{4m}{d} + 1\right) = \sum_{d=1}^{n-1} (n-d) - 4mn + 4m \sum_{d=1}^{n-1} \frac{n}{d} < \frac{n(n-1)}{2} + 4mn \ln n.

On the other hand, for 1jn1 \le j \le n, assume that there are xjx_j red points in (1,j)(1, j), (2,j)(2, j), ..., (n,j)(n, j). Then
j=1nCxj2<n(n1)2+4mnlnn. \sum_{j=1}^n C_{x_j}^2 < \frac{n(n-1)}{2} + 4mn \ln n.
So
j=1n(xj12)2<n214n+8mnlnn. \sum_{j=1}^n \left(x_j - \frac{1}{2}\right)^2 < n^2 - \frac{1}{4}n + 8mn \ln n.
By Cauchy's inequality, we know
j=1n(xj12)n(n214n+8mnlnn), \sum_{j=1}^n \left(x_j - \frac{1}{2}\right) \le \sqrt{n\left(n^2 - \frac{1}{4}n + 8mn \ln n\right)},
i.e.
j=1nxjn2+nn14+8mlnn. \sum_{j=1}^n x_j \le \frac{n}{2} + n\sqrt{n - \frac{1}{4} + 8m \ln n}.
When mn2022m \ge n \ge 2022, some elementary estimate shows that 3nmlnn\le 3n\sqrt{m \ln n}.

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.