Combinatorica`
Combinatorica`
NthPermutation
In Version 6.0, NthPermutation has been superseded by UnrankPermutation.
NthPermutation[n,l]
gives the lexicographic permutation of list .
Details and Options
- To use NthPermutation, you first need to load the Combinatorica Package using Needs["Combinatorica`"].