Let and be positive integers and . Find the number of all injective functions such that for any nonempty subset , the set of values is distinct from , i.e. . (A function is injective if when .)
, 2022
Solution
Answer. . Set . By induction on we prove that for any the number of injective functions , that satisfy the condition of the problem equals .
For we have , i.e. there are possible values for and the base case is true. Assume the statement is true for and consider function satisfying the condition for arbitrary nonempty subset of .
Case 1. Assume . There are "forbidden" values for . The first because the function is injective and the last one because does not satisfy the condition. Therefore there are values.
Case 2. Assume and let . By analogy if then let and so on. Since and the two sets have the same cardinality and we arrive to a number such that but . Then all forbidden values of are (due to the injectivity or because of the set ). All remaining values are possible. Indeed, consider nonempty set . If then according to the induction hypothesis. If and then it follows from that and . Thus and , a contradiction. In both cases we have possible values and the answer is .