UnrankPermutation

UnrankPermutation[r,l]
gives the r^(th) permutation in the lexicographic list of permutations of list l.

UnrankPermutation[r,n]
gives the r^(th) permutation in the lexicographic list of permutations of {1,2,...,n}.

DetailsDetails