Skip to main content
OlympiadHQ

Browse · MathNet

Print

74th Romanian Mathematical Olympiad

Romania counting and probability

Problem

Let be a natural number, and be the set of functions such that , for every .

a) Determine the cardinality of the set .

b) Determine the total number of fixed points of the functions in .

(A fixed point of the function is a number such that .)
Solution
a) We count the functions in with , . We associate to each the number , with the restriction that there can be at most occurrences of . This association is bijective, and the number of possibilities of choosing the numbers and as described above is (these are the possibilities of placing of ). Therefore:

b) We count how many times the fixed point appears in the functions from , (the same fixed point may appear in multiple functions). We associate to each function for which the numbers . Since these numbers can be chosen without restrictions, there are possibilities. Thus, each fixed point appears in functions, and .

---

Alternative solution.

Let be the set from the problem statement, and . Also, let . For we have and .

a) We notice that if and , then the restriction of to is a function from . Conversely, any function from can be extended to one in in two ways, since . For the case we have , and then, going through the values , we observe that at each step can be or , so we can construct in ways. Therefore, we have the recurrence , and since , we obtain .

b) Let be the number of functions for which . Then we have . Let be a function for which , for . Then, using the hypothesis relation, we have: Therefore, the restriction of to is a function from , i.e., is obtained from a function from , to which the value is added. But, since , the value of can be chosen in two ways, which implies , for any . To determine , we observe that , and going through the values , we observe that at each step is or , i.e., can be constructed in ways. Therefore, . From here we have the recurrence , and since , we obtain

---

Alternative solution.

We observe that if , then there are no fixed points of the function smaller than . Similarly, if , then there are no fixed points of greater than . From here we deduce that the fixed points of a function form a set of consecutive numbers .

We characterize the functions in that have fixed points. For , we have and . Now for we have ways to construct the function , and for we have ways to construct , so in total we have ways to construct in this case. For or , we have fixed only one more point besides the fixed points, so can be constructed in ways. Therefore, in total we have functions in having fixed points. For fixed points, we have only two such functions in , and for fixed points, we have only one function in .

a) From the above, we deduce:

b) Similarly, we deduce:
Final answer
a) (n+1) 2^{n-2}; b) n 2^{n-1}

Techniques

Recursion, bijectionCounting two waysAlgebraic properties of binomial coefficients