Skip to main content
OlympiadHQ

Browse · MathNet

Print

49th International Mathematical Olympiad Spain

counting and probability

Problem

For every positive integer determine the number of permutations of the set with the following property:
Solution
For each let be the number of permutations of with the required property; call them nice. For every permutation is nice, so , , .

Take an and consider any nice permutation of . Then must be a divisor of the number So must be divisible by , hence equal to or or . This means that Suppose that . Since the permutation is nice, taking we get that has to be a divisor of So should be divisible by , hence equal to or or . Obviously and are excluded because is odd. The remaining possibility () leads to , which also cannot hold. This eliminates as a possible value of . Consequently or .

If then is a nice permutation of . There are such permutations. Attaching to any one of them at the end creates a nice permutation of .

If then is a permutation of . It is also nice because the number is divisible by , for any . And again, any one of the nice permutations of gives rise to a nice permutation of whose last term is , namely .

The bijective correspondences established in both cases show that there are nice permutations of with the last term and also nice permutations of with the last term . Hence follows the recurrence . With the base value this gives the outcome formula for .
Final answer
F_1 = 1, F_2 = 2, and for n ≥ 3, F_n = 3 · 2^(n−2)

Techniques

Recursion, bijectionDivisibility / Factorization