Combinatorica`
Combinatorica`

PermutationWithCycle

PermutationWithCycle[n,{i,j,}]

gives a size n permutation in which {i,j,...} is a cycle and all other elements are fixed points.

Details and Options