Maths Olympiad Prep

Library / /8 of 9

, 2025

Combinatorics Difficulty 8.9 Shortlist Prove it China

For a finite non-empty set AA of real numbers, let max(A)\max(A) denote its maximum element, and define:
P(A)=BAB oddm(B),Q(A)=BAB evenm(B), P(A) = \sum_{\substack{B \subseteq A \\ |B| \text{ odd}}} m(B), \quad Q(A) = \sum_{\substack{\emptyset \neq B \subseteq A \\ |B| \text{ even}}} m(B),
where m(B)m(B) is the median of finite non-empty set BB: if B={b1,b2,,bn}B = \{b_1, b_2, \dots, b_n\} (b1<b2<<bnb_1 < b_2 < \dots < b_n), then m(B)=12(bn+12+bn+12)m(B) = \frac{1}{2}(b_{\lfloor \frac{n+1}{2} \rfloor} + b_{\lceil \frac{n+1}{2} \rceil}).
Find the smallest real number cc such that for any set AA of 2025 distinct positive real numbers,
P(A)Q(A)cmax(A). P(A) - Q(A) \leq c \cdot \max(A).

Solution

Without loss of generality, let the elements of AA in increasing order be x0,x1,,x2024x_0, x_1, \dots, x_{2024}. We first compute P(A)P(A). For each xmx_m, we count how many odd-sized subsets have xmx_m as their median. A subset BB of odd size has xmx_m as its median if and only if
B{x0,,xm1}=B{xm+1,,x2024}. |B \cap \{x_0, \dots, x_{m-1}\}| = |B \cap \{x_{m+1}, \dots, x_{2024}\}|.
If this common value is dd, the number of such subsets BB is (md)(2024md)\binom{m}{d}\binom{2024-m}{d}. Thus, the total number of such BB is
d(md)(2024md)=d(mmd)(2024md)=(2024m), \sum_d \binom{m}{d} \binom{2024-m}{d} = \sum_d \binom{m}{m-d} \binom{2024-m}{d} = \binom{2024}{m},
where the last equality follows from Vandermonde's identity. Therefore,
P=m=02024(2024m)xm. P = \sum_{m=0}^{2024} \binom{2024}{m} x_m.
Next, we compute Q(A)Q(A). For each xmx_m, we count how many even-sized subsets have xmx_m as one of their two middle elements. The number of such subsets is
d((md+1)(2024md)+(md)(2024md+1))=d(mmd1)(2024md)+d(mmd)(2024md+1)=(2024m1)+(2024m+1). \begin{aligned} & \sum_d \left( \binom{m}{d+1} \binom{2024-m}{d} + \binom{m}{d} \binom{2024-m}{d+1} \right) \\ &= \sum_d \binom{m}{m-d-1} \binom{2024-m}{d} + \sum_d \binom{m}{m-d} \binom{2024-m}{d+1} \\ &= \binom{2024}{m-1} + \binom{2024}{m+1}. \end{aligned}
Thus,
Q=m=0202412((2024m1)+(2024m+1))xm. Q = \sum_{m=0}^{2024} \frac{1}{2} \left( \binom{2024}{m-1} + \binom{2024}{m+1} \right) x_m.

---

Since multiplying all elements of AA by a positive constant does not change the problem, we may assume x2024=1x_{2024} = 1. Let yi=xixi1y_i = x_i - x_{i-1} for i=0,1,,2024i = 0, 1, \dots, 2024 (with x1=0x_{-1} = 0). Then PQP-Q can be expressed as a linear form in y0,y1,,y2024y_0, y_1, \dots, y_{2024}, where the yiy_i are positive and sum to 1. The minimal cc is therefore equal to the maximum coefficient of the yiy_i.
The coefficient of xmx_m in PQP-Q is (2024m)12((2024m1)+(2024m+1))\binom{2024}{m} - \frac{1}{2}(\binom{2024}{m-1} + \binom{2024}{m+1}). Thus, the coefficient of yiy_i is
m=i2024((2024m)12((2024m1)+(2024m+1)))=m=i2024(2024m)12(m=i12024(2024m)+m=i+12024(2024m)1)=(2024i)(2024i1)+12. \begin{aligned} & \sum_{m=i}^{2024} \left( \binom{2024}{m} - \frac{1}{2} \left( \binom{2024}{m-1} + \binom{2024}{m+1} \right) \right) \\ &= \sum_{m=i}^{2024} \binom{2024}{m} - \frac{1}{2} \left( \sum_{m=i-1}^{2024} \binom{2024}{m} + \sum_{m=i+1}^{2024} \binom{2024}{m} - 1 \right) \\ &= \frac{\binom{2024}{i} - \binom{2024}{i-1} + 1}{2}. \end{aligned}
We now find the maximum of (2024i)(2024i1)\binom{2024}{i} - \binom{2024}{i-1}. For i1013i \ge 1013, (2024i)(2024i1)0\binom{2024}{i} - \binom{2024}{i-1} \le 0, so the maximum must occur for 0i10120 \le i \le 1012. Let di=(2024i)(2024i1)d_i = \binom{2024}{i} - \binom{2024}{i-1}. Then
di+1di=(2024i+1)+(2024i1)2(2024i)=(2024i)(2025ii+1+i2025i2)=(2024i)(2025×2026(i+1)(2025i)4). \begin{aligned} d_{i+1} - d_i &= \binom{2024}{i+1} + \binom{2024}{i-1} - 2\binom{2024}{i} \\ &= \binom{2024}{i} \left( \frac{2025-i}{i+1} + \frac{i}{2025-i} - 2 \right) \\ &= \binom{2024}{i} \left( \frac{2025 \times 2026}{(i+1)(2025-i)} - 4 \right). \end{aligned}
For 0i10100 \le i \le 1010, (i+1)(2025i)(i+1)(2025-i) increases with ii. Since 2025×2026991×1035<4<2025×2026990×1036\frac{2025 \times 2026}{991 \times 1035} < 4 < \frac{2025 \times 2026}{990 \times 1036}, we have di+1>did_{i+1} > d_i when i989i \le 989 and di+1<did_{i+1} < d_i when i990i \ge 990. Thus, the maximum of did_i is achieved at i=990i = 990. Therefore, the minimal cc is
c=(2024990)(2024989)+12. c = \frac{\binom{2024}{990} - \binom{2024}{989} + 1}{2}.

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.