The Lehmer code

Please enter a permutation! There is some help available how to input a permutation.

For starting computation of the Lehmer code of pi, press the button .

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.

For starting computation, press the button .