We will refer to a permutation of the numbers from 1 to 10 as bad, if there exist three indices , such that , but , and as good, otherwise. Determine the number of the good permutations.
Bulgaria competition problems, 2022
Solution
We will derive a closed formula for the good permutations of the numbers from 1 to . Consider a good permutation , where is an arbitrary index inbetween 1 and . Then, the first positions of contain the numbers , forming a good permutation of elements, while the last positions of contain the numbers , forming a good permutation of elements. It is an easy exercise to check that the above condition is not only necessary but also sufficient for the construction of an arbitrary good permutation of elements. Hence, denoting by the corresponding number of good permutations, we derive that satisfies and , . Therefore, is the -th Catalan number. In particular,
Want a route through all this instead of an archive? The track
puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.