Combinatorica`
Combinatorica`

ToInversionVector

ToInversionVector[p]

gives the inversion vector associated with permutation p.

更多信息和选项