The Lehmer code
Please enter a permutation!
There is some help available how to input a
permutation.
Now in a second step please enter a vector of nonnegative integers.
We will compute this permutation, whose Lehmer code was the input vector.
In order to enter a vector, first enter '[', then enter the entries
separated by commas, finally input ']'. For instance [2,0,3,1,4] is a correct
input.