Combinatorica`
Combinatorica`

RankPermutation

RankPermutation[p]

gives the rank of permutation p in lexicographic order.

更多信息和选项