Post #2735408
2026-05-10 23:33 UTC
@byorgey@mathstodon.xyz oh, those succesive differences are the number of copies of 1, 2, 3,... in the conjugate. In your example there are 0 ones, 2 twos, 1 three, 3 fours. So something like (untested so probably slightly wrong):
conjugate p = reverse . concat $ zipWith replicate (zipWithExt (-) 0 p (tail p)) [1..length p]
Replies (1)
-
@byorgey@mathstodon.xyz 2026-05-11 00:37
@oantolin@mathstodon.xyz Yep! This is essentially the solution that @das_g@chaos.social posted: https://chaos.social/@das_g/116547298268126736