A351204 Number of integer partitions of n such that every permutation has all distinct runs.
1, 1, 2, 3, 4, 5, 8, 9, 11, 14, 18, 20, 25, 28, 34, 41, 47, 53, 64, 72, 84, 98, 113, 128, 148, 169, 194, 223, 255, 289, 333, 377, 428, 488, 554, 629, 715, 807, 913, 1033, 1166, 1313, 1483, 1667, 1875, 2111, 2369, 2655, 2977, 3332, 3729, 4170, 4657, 5195, 5797, 6459
Offset: 0
Keywords
Examples
The a(1) = 1 through a(8) = 11 partitions: (1) (2) (3) (4) (5) (6) (7) (8) (11) (21) (22) (32) (33) (43) (44) (111) (31) (41) (42) (52) (53) (1111) (2111) (51) (61) (62) (11111) (222) (421) (71) (321) (2221) (431) (3111) (4111) (521) (111111) (211111) (2222) (1111111) (5111) (311111) (11111111)
Links
- Andrew Howroyd, Table of n, a(n) for n = 0..1000
- Mathematics Stack Exchange, What is a sequence run? (answered 2011-12-01)
Crossrefs
The version for run-lengths instead of runs is A000005.
The version for normal multisets is 2^(n-1) - A283353(n-3).
A005811 counts runs in binary expansion.
A044813 lists numbers whose binary expansion has distinct run-lengths.
A297770 counts distinct runs in binary expansion.
A003242 counts anti-run compositions.
Counting words with all distinct runs:
- A351202 = permutations of prime factors.
Programs
-
Mathematica
Table[Length[Select[IntegerPartitions[n],Select[Permutations[#],!UnsameQ@@Split[#]&]=={}&]],{n,0,15}]
-
PARI
\\ here Q(n) is A000009. Q(n)={polcoef(prod(k=1, n, 1 + x^k + O(x*x^n)), n)} a(n)={Q(n) + if(n, numdiv(n) - 1) + sum(k=1, (n-1)\3, sum(j=3, (n-1)\k, j%2==1 && n-k*j<>k))} \\ Andrew Howroyd, Feb 15 2022
Extensions
Terms a(26) and beyond from Andrew Howroyd, Feb 15 2022
Comments