Maths Olympiad Prep

Library / /40 of 49

, 2022

Combinatorics Difficulty 6.7 National Olympiad Prove it Bulgaria

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 xyx \neq y.)

Solution

Answer. (n1)!(nm1)!\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:BmBnf: B_m \to B_n, that satisfy the condition of the problem equals (n1)(n2)(nm)(n-1)(n-2)\dots(n-m).

For m=1m=1 we have f(1)1f(1) \neq 1, i.e. there are n1n-1 possible values for f(1)f(1) and the base case is true. Assume the statement is true for m1m-1 and consider function f:BmBnf: B_m \to B_n satisfying the condition for arbitrary nonempty subset of Bm1B_{m-1}.

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

Case 2. Assume mf(Bm1)m \in f(B_{m-1}) and let a1=f1(m)Bm1a_1 = f^{-1}(m) \in B_{m-1}. By analogy if a1f(Bm1)a_1 \in f(B_{m-1}) then let a2=f1(a1)Bm1a_2 = f^{-1}(a_1) \in B_{m-1} and so on. Since mf(Bm1)m \in f(B_{m-1}) and mBm1m \notin B_{m-1} the two sets have the same cardinality and we arrive to a number akBm1a_k \in B_{m-1} such that f(ak)=ak1f(Bm1)f(a_k) = a_{k-1} \in f(B_{m-1}) but akf(Bm1)a_k \notin f(B_{m-1}). Then all forbidden values of f(m)f(m) are f(Bm1){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 nmn-m values are possible. Indeed, consider nonempty set ABmA \subseteq B_m. If mAm \notin A then f(A)Af(A) \neq A according to the induction hypothesis. If mAm \in A and f(A)=Af(A) = A then it follows from mf(A)m \in f(A) that a1Aa_1 \in A and AAA' \subseteq A. Thus akAa_k \in A and akf(Bm)f(A)a_k \notin f(B_m) \notin f(A), a contradiction. In both cases we have nmn-m possible values and the answer is (n1)(n2)(nm)(n-1)(n-2)\dots(n-m).

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 reproduced verbatim; metadata (topic, difficulty) added by this project.