Olympiad Maths Prep

Track / Stage 8 / 72 of 180 #1772 of 2000

Problem 1772

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.3 Prove it 2025 International Mathematical Olympiad China National Team Selection Test · China · 2025

Given an odd positive integer nn, let m=n+12m = \frac{n+1}{2}. Let positive integers a1,a2,,ama_1, a_2, \dots, a_m be pairwise incongruent modulo nn, and positive integers b1,b2,,bmb_1, b_2, \dots, b_m be pairwise incongruent modulo nn. Prove that the set
C={ai+bj (least nonnegative residue modulo n)i,j{1,2,,m},ij} C = \{a_i + b_j \text{ (least nonnegative residue modulo } n) \mid i, j \in \{1, 2, \dots, m\}, i \neq j\}
has more than nn12n - \sqrt{n} - \frac{1}{2} elements.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Let X={0,,n1}X = \{0, \dots, n-1\}, A={a1,,am}A = \{a_1, \dots, a_m\}, B={b1,,bm}B = \{b_1, \dots, b_m\}, and S=XCS = X \setminus C. We need to show that S<n+12|S| < \sqrt{n} + \frac{1}{2}.

Consider the bipartite graph G:=(XX,E)G := (X \sqcup X, E), where the edge set E:={(x,y):x+yS}E := \{(x, y) : x + y \in S\}. In particular, the restriction of GG to ABA \sqcup B consists of several edges with no common vertices, meaning no vertex has degree at least 2. If this were not the case, suppose aiAa_i \in A is connected to both bj1b_{j_1} and bj2b_{j_2}, where j1j2j_1 \neq j_2. Since ai+bj1,ai+bj2Sa_i + b_{j_1}, a_i + b_{j_2} \in S do not belong to CC, it follows that E(A×B){(ai,bi):1im}E \cap (A \times B) \subseteq \{(a_i, b_i) : 1 \le i \le m\}. Hence, i=j1i = j_1 and i=j2i = j_2, contradicting j1j2j_1 \neq j_2. Therefore, every vertex in GG restricted to ABA \sqcup B has degree at most 1.

If GG contains a cycle C4C_4 of length 4, since GG is bipartite, C4C_4 must take the form c1,c2c_1, c_2 in the first copy of XX and d1,d2d_1, d_2 in the second copy, with edges c1d1,c1d2,c2d1,c2d2Ec_1d_1, c_1d_2, c_2d_1, c_2d_2 \in E. By the definition of GG, for any uXu \in X, the quadruple (c1+u,c2+u;d1u,d2u)(c_1 + u, c_2 + u; d_1 - u, d_2 - u) also forms a C4C_4 in GG. Letting uu range over all elements of XX, since A+B=n+1>n|A| + |B| = n + 1 > n, an averaging or pigeonhole argument shows that there exists a uu such that at least three of these four points lie in ABA \sqcup B. This would force a vertex in GG restricted to ABA \sqcup B to have degree at least 2, a contradiction.

Consequently, SS cannot contain two distinct pairs (s1,s2)(s_1, s_2) and (s1,s2)(s'_1, s'_2) satisfying s1s2=s1s2s_1 - s_2 = s'_1 - s'_2. Otherwise, (0,s1+s1;s1,s2)(0, -s_1 + s'_1; s_1, s_2) would form a C4C_4 in GG, again a contradiction. Thus, XX must contain at least S2S+1|S|^2 - |S| + 1 elements, implying S<n+12|S| < \sqrt{n} + \frac{1}{2}. \square

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