I have a problem regarding permutations. When the rank of an unknown $S_7$ permutation is given, I want to find this permutation, but I can not.
For example, I have the following questions:
Find the $S_7$ permutation which has I) rank(1000) II) rank(2000).
Apart from the answers to these examples, I am asking for the methodology to find next time this permutation.
I am looking forward to read your answers.
Thank you for your help in advance!
Note: Writing rank I mean the position where the permutation is, ordering all the permutations in ascending order. For example I have the $S_3$ permutation (213). Its rank is 3, because all the $S_3$ permutations in ascending order are as follows: {123,132,213,231,312,321}. So, we write rank(213) = 3.