RankPermutation

RankPermutation[p]

gives the rank of permutation p in lexicographic order.

Details

See Also

LexicographicPermutations  UnrankPermutation

Tutorials