The collection of cycles returned by
PermutationCycles corresponds to the permutation that generates the list from sorted order:
The built-in version is faster:
Number of permutations of the symmetric group with 6 to 1 cycles, including 1-cycles:
Construct an associated polynomial:
Compute the factorization:
Its coefficients are Stirling numbers of the first kind: