Maths Olympiad Prep

Library / Taiwan IMO Selection Camp /306 of 359

Taiwan IMO Selection Camp, 2023

Combinatorics Difficulty 6.8 National Olympiad Prove it Taiwan

Let m,n≥2m, n \ge 2 be integers, X={1,2,…,n}X = \{1, 2, \dots, n\}, and X1,X2,…,XmX_1, X_2, \dots, X_m be mm different non-empty subsets of XX (not necessarily disjoint from one another). A function f:X→{1,2,…,n+1}f : X \to \{1, 2, \dots, n+1\} is called nice if and only if there exists an index kk such that
∑x∈Xkf(x)>∑x∈Xif(x) for all i≠k. \sum_{x \in X_k} f(x) > \sum_{x \in X_i} f(x) \text{ for all } i \neq k.

Prove that the number of nice functions is at least nnn^n.

Solution

For Y⊂XY \subset X and any function ff with domain XX, let us define f(Y)=∑x∈Yf(x)f(Y) = \sum_{x \in Y} f(x); then ff is nice is equivalent to saying that f(Xi)f(X_i) attains its maximum at a unique index i∈{1,2,…,m}i \in \{1, 2, \dots, m\}.
Let G\mathcal{G} be the set of all functions g:X→{1,2,…,n}g : X \to \{1, 2, \dots, n\}; note that ∣G∣=nn|\mathcal{G}| = n^n. Now, for each g∈Gg \in \mathcal{G}, take any index ℓ\ell maximizing g(Xℓ)g(X_\ell), and define
fg(x):={g(x)+1,x∈Xℓ,g(x),x∉Xℓ. f_g(x) := \begin{cases} g(x) + 1, & x \in X_\ell, \\ g(x), & x \notin X_\ell. \end{cases}
If we can show that (1) fgf_g is nice and (2) the fgf_g are all distinct, then this proves that there are at least nnn^n nice functions.

(1) **fgf_g is nice** Note that fg(Xi)=g(Xi)+∣Xi∩Xℓ∣f_g(X_i) = g(X_i) + |X_i \cap X_\ell| holds for all ii. Let us show that fg(Xi)f_g(X_i) attains its maximum at the unique index ℓ\ell: take any i≠ℓi \neq \ell. Note that we must have Xℓ⊄XiX_\ell \not\subset X_i (otherwise g(Xℓ)<g(Xi)g(X_\ell) < g(X_i), contradicting the maximality of g(Xℓ)g(X_\ell)), and this implies ∣Xℓ∣>∣Xi∩Xℓ∣|X_\ell| > |X_i \cap X_\ell|, so
fg(Xℓ)=g(Xℓ)+∣Xℓ∣≥g(Xi)+∣Xℓ∣>g(Xi)+∣Xi∩Xℓ∣=fg(Xi). f_g(X_\ell) = g(X_\ell) + |X_\ell| \ge g(X_i) + |X_\ell| > g(X_i) + |X_i \cap X_\ell| = f_g(X_i).
Thus fg(Xi)f_g(X_i) attains its maximum at the unique index ℓ\ell, that is, fgf_g is nice.

(2) **The fgf_g are all distinct** Note that the previous part shows that fg(Xℓ)f_g(X_\ell) is the unique maximum, so we have
g(x):={fg(x)−1,x∈Xℓ,fg(x),x∉Xℓ. g(x) := \begin{cases} f_g(x) - 1, & x \in X_\ell, \\ f_g(x), & x \notin X_\ell. \end{cases}
This shows that fgf_g and gg are in one-to-one correspondence, hence the fgf_g are all distinct.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement translated into English from zh; metadata (topic, difficulty) added by this project.