Combinatorica`
Combinatorica`

PermutationType

PermutationType[p]

returns the type of permutation p.

Details