Maths Olympiad Prep

Track / Stage 8 / 164 of 180 #1864 of 1964

Problem 1864

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.9 Prove it The 65th IMO China National Team Selection Test · China

For a positive integer nn, a subset SS of {1,2,,n}\{1,2,\dots,n\} is called an nn-good set if for any elements x,yx,y in SS (they can be the same), if x+ynx+y \le n, then x+ySx+y \in S.
For a positive integer nn, define rnr_n as the smallest real number such that for any positive integer mnm \le n, there exists an nn-good set with mm elements, whose sum of all elements does not exceed mrnm \cdot r_n.
Prove that there exists a real number α\alpha such that for any positive integer nn, we have rnαn<2024|r_n - \alpha n| < 2024.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

Proof. We will show that α=22\alpha = 2 - \sqrt{2} satisfies the requirement. We will prove this in two steps.

First, we prove that rnαn4r_n \ge \alpha n - 4. For this, we only need to consider the case where n>4n > 4. Let m=n2<nm = \lfloor \frac{n}{\sqrt{2}} \rfloor < n, and let d=nmd = n - m. Consider an nn-good set SS with mm elements, and let the complement of SS be Sc={1,2,,n}S={a1,a2,,ad}S^c = \{1, 2, \dots, n\} \setminus S = \{a_1, a_2, \dots, a_d\}, where a1<a2<<ada_1 < a_2 < \dots < a_d. For any 1id1 \le i \le d, we claim that ai2i1a_i \le 2i - 1. In fact, if ai2ia_i \ge 2i, then among the pairs (1,ai1)(1, a_i - 1), (2,ai2)(2, a_i - 2), \dots, (i,aii)(i, a_i - i), at least one pair would have both numbers in SS, which contradicts the condition for SS being an nn-good set. (If ai=2ia_i = 2i, the last pair has equal numbers, but this does not affect the proof.) Therefore,
xSx=n(n+1)2xScxn(n+1)2(1+3++(2d1))=n(n+1)2d2. \sum_{x \in S} x = \frac{n(n+1)}{2} - \sum_{x \in S^c} x \ge \frac{n(n+1)}{2} - (1 + 3 + \dots + (2d - 1)) = \frac{n(n+1)}{2} - d^2.
Thus,
rnn(n+1)2d2nd=(n+d)n(n1)2(nd)=2nmn(n1)2m(3) r_n \ge \frac{\frac{n(n+1)}{2} - d^2}{n-d} = (n+d) - \frac{n(n-1)}{2(n-d)} = 2n - m - \frac{n(n-1)}{2m} \quad (3)
>2n(m+n22m)>2n2n1=αn1,(4) > 2n - \left(m + \frac{n^2}{2m}\right) > 2n - \sqrt{2n} - 1 = \alpha n - 1, \quad (4)
where the last inequality holds because m+n22mm + \frac{n^2}{2m} is minimized at m=n2m = \frac{n}{\sqrt{2}}, with rounding causing at most an error of 1.

Next, we prove that rnαn+100r_n \le \alpha n + 100. For this, we only need to consider the case where n>100n > 100. We discuss several cases.

Case 1: If m=nm = n, {1,2,,n}\{1, 2, \dots, n\} is an nn-good set, with an arithmetic mean of n+12<αn+4\frac{n+1}{2} < \alpha n + 4.

Case 2: If mn1m \le \sqrt{n} - 1, let k=n+1m+1k = \lfloor \frac{n+1}{m+1} \rfloor, then (m+1)kn+1>n(m+1)k \ge n+1 > n, while
mkmm+n+1m+1=mn+m2+mm+1mn+nm+1=n. mk \le m \cdot \frac{m+n+1}{m+1} = \frac{mn+m^2+m}{m+1} \le \frac{mn+n}{m+1} = n.
Thus, {k,2k,,mk}\{k, 2k, \dots, mk\} is an nn-good set with mm elements, and its arithmetic mean is
m+12km+12m+n+1m+1=n+m+12n+n211n20<αn. \frac{m+1}{2} \cdot k \le \frac{m+1}{2} \cdot \frac{m+n+1}{m+1} = \frac{n+m+1}{2} \le \frac{n+\sqrt{n}}{2} \le \frac{11n}{20} < \alpha n.

Case 3: If n1<mn1\sqrt{n} - 1 < m \le n - 1, let nkm<nk1\lfloor \frac{n}{k} \rfloor \le m < \lfloor \frac{n}{k-1} \rfloor, where k2k \ge 2. We first choose all multiples of kk from {1,2,,n}\{1, 2, \dots, n\} (a total of nk\lfloor \frac{n}{k} \rfloor elements), then choose the remaining mnkm - \lfloor \frac{n}{k} \rfloor elements that have the same remainder rr modulo kk (where r{1,2,,k1}r \in \{1, 2, \dots, k-1\} and rn+1(modk)r \equiv n+1 \pmod{k}) or rn+2(modk)r \equiv n+2 \pmod{k}). When k=2k=2, the unchosen numbers are just a few starting odd numbers, and from the inequality (4), it is easy to see that the chosen numbers form an nn-good set.

When k3k \ge 3, mnk+n2km \le \lfloor \frac{n}{k} \rfloor + \lfloor \frac{n}{2k} \rfloor. This is because
For k4,nk+n2k>3n2k2=nk1+(k3)n2k(k1)2nk1+n242>nk1, \text{For } k \ge 4, \left\lfloor \frac{n}{k} \right\rfloor + \left\lfloor \frac{n}{2k} \right\rfloor > \frac{3n}{2k} - 2 = \frac{n}{k-1} + \frac{(k-3)n}{2k(k-1)} - 2 \ge \frac{n}{k-1} + \frac{n}{24} - 2 > \frac{n}{k-1},
For k3,nk+n2k>n22. \text{For } k \ge 3, \left\lfloor \frac{n}{k} \right\rfloor + \left\lfloor \frac{n}{2k} \right\rfloor > \frac{n}{2} - 2.
Therefore, the chosen numbers modulo kk are greater than nn2kkn2n - \lfloor \frac{n}{2k} \rfloor \cdot k \ge \frac{n}{2}, so any two chosen numbers sum to more than nn, indicating that the chosen numbers form an nn-good set. Let the multiples of kk be a=nka = \lfloor \frac{n}{k} \rfloor, then the numbers with the same remainder rr modulo kk have mam - a elements, and their mean does not exceed
1m(ka(a+1)2+(ma)(n+2)k(ma)(ma+1)2)=n+2+(a12)k(km2+(n+k+2)am)n+2+(a12)k2ak(n+k+2)<2n+22(nk+1)(n+k1)=2n+22(n2(k1)2)2n+22(n2n)<αn+4. \begin{aligned} & \frac{1}{m} \left( \frac{ka(a+1)}{2} + (m-a)(n+2) - \frac{k(m-a)(m-a+1)}{2} \right) \\ &= n + 2 + \left(a - \frac{1}{2}\right)k - \left(\frac{km}{2} + \frac{(n+k+2)a}{m}\right) \\ &\le n + 2 + \left(a - \frac{1}{2}\right)k - \sqrt{2ak(n+k+2)} \\ &< 2n + 2 - \sqrt{2(n-k+1)(n+k-1)} \\ &= 2n + 2 - \sqrt{2(n^2 - (k-1)^2)} \\ &\le 2n + 2 - \sqrt{2(n^2 - n)} < \alpha n + 4. \end{aligned}
Therefore, the arithmetic mean of the elements in the above nn-good set does not exceed αn+4\alpha n + 4.

In conclusion, α=22\alpha = 2 - \sqrt{2} satisfies the requirement, and the proof is complete. \square

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