Find the Index of Permutation
Count the smaller unused values at each position and weight each count by the factorial of the positions still to come.
Count the smaller unused values at each position and weight each count by the factorial of the positions still to come.