Maths Olympiad Prep

Library / /337 of 397

, 2023

Combinatorics Difficulty 6.8 National Olympiad Prove it Taiwan

Let m,n2m, 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
xXkf(x)>xXif(x) for all ik. \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 YXY \subset X and any function ff with domain XX, let us define f(Y)=xYf(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 gGg \in \mathcal{G}, take any index \ell maximizing g(X)g(X_\ell), and define
fg(x):={g(x)+1,xX,g(x),xX. 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)+XiXf_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 ii \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>XiX|X_\ell| > |X_i \cap X_\ell|, so
fg(X)=g(X)+Xg(Xi)+X>g(Xi)+XiX=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,xX,fg(x),xX. 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,000 problems in a working order, from AMC 10 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.