Combinatorica`
Combinatorica`

CycleStructure

CycleStructure[p,x]

returns the monomial in x[1],x[2],,x[Length[p]] that is the cycle structure of the permutation p.

Details and Options