A383458 Maximum number of cycles in any permutation in S_n of the highest order (A000793(n)).
1, 1, 1, 1, 2, 3, 2, 2, 2, 3, 4, 3, 4, 3, 3, 3, 4, 5, 4, 5, 6, 7, 4, 5, 4
Offset: 1
Examples
There are two different cycle types of permutations in S_6 of the maximum order g(6) = 6, for example (123456) and (12)(345)(6). The minimum number of cycles is A383459(6) = 1 and maximum number is a(6) = 3.
Programs
-
Julia
using Combinatorics arrs = [] for n in 1:25 ps = integer_partitions(n) lcms = lcm.(ps) the_max, imax, = findmax(lcms) max_order_cyc_idxs = [] for (i, l) in enumerate(lcms) if the_max == l push!(max_order_cyc_idxs, i) end end push!(arrs, ps[max_order_cyc_idxs]) end map(x->maximum(length.(x)), arrs)
Comments