Maths Olympiad Prep

Track / Stage 6 / 300 of 400 #1940 of 2604

Problem 1940

National Olympiad, first round
Combinatorics Difficulty 6.7 Prove it Bulgaria competition problems · Bulgaria · 2022

Let mm and nn be positive integers and m<nm < n. Find the number of all injective functions f:{1,2,…,m}→{1,2,…,n}f: \{1, 2, \dots, m\} \to \{1, 2, \dots, n\} such that for any nonempty subset A⊆{1,2,…,m}A \subseteq \{1, 2, \dots, m\}, the set of values f(A)f(A) is distinct from AA, i.e. f(A)≠Af(A) \neq A. (A function ff is injective if f(x)≠f(y)f(x) \neq f(y) when x≠yx \neq y.)

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

Answer. (n−1)!(n−m−1)!\frac{(n-1)!}{(n-m-1)!}. Set Bi={1,2,…,i}B_i = \{1, 2, \dots, i\}. By induction on mm we prove that for any n>mn > m the number of injective functions f:Bm→Bnf: B_m \to B_n, that satisfy the condition of the problem equals (n−1)(n−2)…(n−m)(n-1)(n-2)\dots(n-m).

For m=1m=1 we have f(1)≠1f(1) \neq 1, i.e. there are n−1n-1 possible values for f(1)f(1) and the base case is true. Assume the statement is true for m−1m-1 and consider function f:Bm→Bnf: B_m \to B_n satisfying the condition for arbitrary nonempty subset of Bm−1B_{m-1}.

Case 1. Assume m∉f(Bm−1)m \notin f(B_{m-1}). There are mm "forbidden" values for f(m):f(Bm−1)∪{m}f(m): f(B_{m-1}) \cup \{m\}. The first m−1m-1 because the function is injective and the last one because ={m}= \{m\} does not satisfy the condition. Therefore there are n−mn-m values.

Case 2. Assume m∈f(Bm−1)m \in f(B_{m-1}) and let a1=f−1(m)∈Bm−1a_1 = f^{-1}(m) \in B_{m-1}. By analogy if a1∈f(Bm−1)a_1 \in f(B_{m-1}) then let a2=f−1(a1)∈Bm−1a_2 = f^{-1}(a_1) \in B_{m-1} and so on. Since m∈f(Bm−1)m \in f(B_{m-1}) and m∉Bm−1m \notin B_{m-1} the two sets have the same cardinality and we arrive to a number ak∈Bm−1a_k \in B_{m-1} such that f(ak)=ak−1∈f(Bm−1)f(a_k) = a_{k-1} \in f(B_{m-1}) but ak∉f(Bm−1)a_k \notin f(B_{m-1}). Then all forbidden values of f(m)f(m) are f(Bm−1)∪{ak}f(B_{m-1}) \cup \{a_k\} (due to the injectivity or because of the set A′={a1,a2,…,ak,m}A' = \{a_1, a_2, \dots, a_k, m\}). All remaining n−mn-m values are possible. Indeed, consider nonempty set A⊆BmA \subseteq B_m. If m∉Am \notin A then f(A)≠Af(A) \neq A according to the induction hypothesis. If m∈Am \in A and f(A)=Af(A) = A then it follows from m∈f(A)m \in f(A) that a1∈Aa_1 \in A and A′⊆AA' \subseteq A. Thus ak∈Aa_k \in A and ak∉f(Bm)∉f(A)a_k \notin f(B_m) \notin f(A), a contradiction. In both cases we have n−mn-m possible values and the answer is (n−1)(n−2)…(n−m)(n-1)(n-2)\dots(n-m).

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