Find the total number of all permutations of -tuple satisfying for all .
Turkey — Team Selection Test
Solution
Let be the total number of all permutations of -tuple satisfying for all . Readily .
If for some permutation , then is the only possibility.
If for some permutation for some , then and . Similarly we get for . Therefore, should be a permutation of satisfying conditions. Now note that the concatenation of and also satisfies conditions.
Thus, and consequently . Thus, and the answer is .
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.