Skip to main content
OlympiadHQ

Browse · MathNet

Print

Japan Mathematical Olympiad

Japan counting and probability

Problem

How many permutations of satisfy the equation
Solution
Let and let be a positive integer such that . The given condition gives thus satisfies . Since we have for any integer , if and only if there exists an integer with such that and for every integer which is different from and . Since , , and are all positive, is neither , , nor .

When , we have with . Since , we have . Let be a pair of sets satisfying , for some integer with . We fix such a pair , and consider all permutations that satisfy the following conditions: The number of such permutations is to be determined. Note that are arranged in increasing order of elements in . The numbers are arranged in decreasing order of the elements in that are greater than , and the numbers are arranged in decreasing order of the elements in that are less than . Therefore, are arranged in decreasing order of elements in . Conversely, this permutation satisfies all the conditions, hence we conclude that there is exactly one such permutation. Since there are choices for , and choices for , there are permutations satisfying the conditions when .

By the same reasoning, the number of permutations satisfying the conditions when is also . Thus, the answer is .
Final answer
2021 * 2^2021

Techniques

Recursion, bijectionInvariants / monovariants