Maths Olympiad Prep

Track / Stage 8 / 168 of 180 #2508 of 2604

Problem 2508

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.9 Prove it 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+y≤nx+y \le n, then x+y∈Sx+y \in S.
For a positive integer nn, define rnr_n as the smallest real number such that for any positive integer m≤nm \le n, there exists an nn-good set with mm elements, whose sum of all elements does not exceed m⋅rnm \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.

Next problem →

Official solution

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

First, we prove that rn≥αn−4r_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=n−md = 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 1≤i≤d1 \le i \le d, we claim that ai≤2i−1a_i \le 2i - 1. In fact, if ai≥2ia_i \ge 2i, then among the pairs (1,ai−1)(1, a_i - 1), (2,ai−2)(2, a_i - 2), …,\dots, (i,ai−i)(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,
∑x∈Sx=n(n+1)2−∑x∈Scx≥n(n+1)2−(1+3+⋯+(2d−1))=n(n+1)2−d2. \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,
rn≥n(n+1)2−d2n−d=(n+d)−n(n−1)2(n−d)=2n−m−n(n−1)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)>2n−2n−1=αn−1,(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 m≤n−1m \le \sqrt{n} - 1, let k=⌊n+1m+1⌋k = \lfloor \frac{n+1}{m+1} \rfloor, then (m+1)k≥n+1>n(m+1)k \ge n+1 > n, while
mk≤m⋅m+n+1m+1=mn+m2+mm+1≤mn+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+12⋅k≤m+12⋅m+n+1m+1=n+m+12≤n+n2≤11n20<α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 n−1<m≤n−1\sqrt{n} - 1 < m \le n - 1, let ⌊nk⌋≤m<⌊nk−1⌋\lfloor \frac{n}{k} \rfloor \le m < \lfloor \frac{n}{k-1} \rfloor, where k≥2k \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 m−⌊nk⌋m - \lfloor \frac{n}{k} \rfloor elements that have the same remainder rr modulo kk (where r∈{1,2,…,k−1}r \in \{1, 2, \dots, k-1\} and r≡n+1(modk)r \equiv n+1 \pmod{k}) or r≡n+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 k≥3k \ge 3, m≤⌊nk⌋+⌊n2k⌋m \le \lfloor \frac{n}{k} \rfloor + \lfloor \frac{n}{2k} \rfloor. This is because
For k≥4,⌊nk⌋+⌊n2k⌋>3n2k−2=nk−1+(k−3)n2k(k−1)−2≥nk−1+n24−2>nk−1, \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 k≥3,⌊nk⌋+⌊n2k⌋>n2−2. \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 n−⌊n2k⌋⋅k≥n2n - \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=⌊nk⌋a = \lfloor \frac{n}{k} \rfloor, then the numbers with the same remainder rr modulo kk have m−am - a elements, and their mean does not exceed
1m(ka(a+1)2+(m−a)(n+2)−k(m−a)(m−a+1)2)=n+2+(a−12)k−(km2+(n+k+2)am)≤n+2+(a−12)k−2ak(n+k+2)<2n+2−2(n−k+1)(n+k−1)=2n+2−2(n2−(k−1)2)≤2n+2−2(n2−n)<α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, α=2−2\alpha = 2 - \sqrt{2} satisfies the requirement, and the proof is complete. □\square

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty, ordering) added by this project.