A353851
Number of integer compositions of n with all equal run-sums.
Original entry on oeis.org
1, 1, 2, 2, 5, 2, 8, 2, 12, 5, 8, 2, 34, 2, 8, 8, 43, 2, 52, 2, 70, 8, 8, 2, 282, 5, 8, 18, 214, 2, 386, 2, 520, 8, 8, 8, 1957, 2, 8, 8, 2010, 2, 2978, 2, 3094, 94, 8, 2, 16764, 5, 340, 8, 12310, 2, 26514, 8, 27642, 8, 8, 2, 132938, 2, 8, 238, 107411, 8, 236258
Offset: 0
The a(0) = 1 through a(8) = 12 compositions:
() (1) (2) (3) (4) (5) (6) (7) (8)
(11) (111) (22) (11111) (33) (1111111) (44)
(112) (222) (224)
(211) (1113) (422)
(1111) (2112) (2222)
(3111) (11114)
(11211) (41111)
(111111) (111122)
(112112)
(211211)
(221111)
(11111111)
For example:
(1,1,2,1,1) has run-sums (2,2,2) so is counted under a(6).
(4,1,1,1,1,2,2) has run-sums (4,4,4) so is counted under a(12).
(3,3,2,2,2) has run-sums (6,6) so is counted under a(12).
The version for parts or runs instead of run-sums is
A000005.
The version for multiplicities instead of run-sums is
A098504.
All parts are divisors of n, see
A100346.
The version for run-lengths instead of run-sums is
A329738, ptns
A047966.
These compositions are ranked by
A353848.
The distinct instead of equal version is
A353850.
A005811 counts runs in binary expansion.
A353847 represents the composition run-sum transformation.
Cf.
A000005,
A006881,
A238279,
A275870,
A333755,
A351014,
A351016,
A351017,
A353832,
A353834,
A353849,
A353853-
A353859 (run-sum trajectory),
A353860,
A353863,
A353864,
A353932.
-
Table[Length[Select[Join@@Permutations/@ IntegerPartitions[n],SameQ@@Total/@Split[#]&]],{n,0,15}]
-
a(n) = {if(n <=1, return(1)); my(d = divisors(n), res = 0); for(i = 1, #d, nd = numdiv(d[i]); res+=(nd*(nd-1)^(n/d[i]-1)) ); res } \\ David A. Corneth, Jun 02 2022
A362607
Number of integer partitions of n with more than one mode.
Original entry on oeis.org
0, 0, 0, 1, 1, 2, 4, 4, 6, 9, 13, 13, 23, 23, 33, 45, 56, 64, 90, 101, 137, 169, 208, 246, 320, 379, 469, 567, 702, 828, 1035, 1215, 1488, 1772, 2139, 2533, 3076, 3612, 4333, 5117, 6113, 7168, 8557, 10003, 11862, 13899, 16385, 19109, 22525, 26198, 30729, 35736
Offset: 0
The partition (3,2,2,1,1) has greatest multiplicity 2, and two parts of multiplicity 2 (namely 1 and 2), so is counted under a(9).
The a(3) = 1 through a(9) = 9 partitions:
(21) (31) (32) (42) (43) (53) (54)
(41) (51) (52) (62) (63)
(321) (61) (71) (72)
(2211) (421) (431) (81)
(521) (432)
(3311) (531)
(621)
(32211)
(222111)
For parts instead of multiplicities we have
A002865.
These partitions have ranks
A362605.
A359893 counts partitions by median.
-
b:= proc(n, i, m, t) option remember; `if`(n=0, `if`(t=2, 1, 0), `if`(i<1, 0,
add(b(n-i*j, i-1, max(j, m), `if`(j>m, 1, `if`(j=m, 2, t))), j=0..n/i)))
end:
a:= n-> b(n$2, 0$2):
seq(a(n), n=0..51); # Alois P. Heinz, May 05 2024
-
Table[Length[Select[IntegerPartitions[n],Length[Commonest[#]]>1&]],{n,0,30}]
-
G_x(N)={my(x='x+O('x^(N-1)), Ib(k,j) = if(k>j,1,0), A_x(u)=sum(i=1,N-u, sum(j=u+1, N-u, (x^(i*(u+j))*(1-x^u)*(1-x^j))/((1-x^(u*i))*(1-x^(j*i))) * prod(k=1,N-i*(u+j), (1-x^(k*(i+Ib(k,j))))/(1-x^k)))));
concat([0,0,0],Vec(sum(u=1,N, A_x(u))))}
G_x(51) \\ John Tyler Rascoe, Apr 05 2024
A317081
Number of integer partitions of n whose multiplicities cover an initial interval of positive integers.
Original entry on oeis.org
1, 1, 1, 2, 3, 5, 5, 9, 11, 16, 20, 30, 34, 50, 58, 79, 96, 129, 152, 203, 243, 307, 375, 474, 563, 707, 850, 1042, 1246, 1532, 1815, 2215, 2632, 3173, 3765, 4525, 5323, 6375, 7519, 8916, 10478, 12414, 14523, 17133, 20034, 23488, 27422, 32090, 37285, 43511, 50559
Offset: 0
The a(1) = 1 through a(9) = 16 partitions:
(1) (2) (3) (4) (5) (6) (7) (8) (9)
(21) (31) (32) (42) (43) (53) (54)
(211) (41) (51) (52) (62) (63)
(221) (321) (61) (71) (72)
(311) (411) (322) (332) (81)
(331) (422) (432)
(421) (431) (441)
(511) (521) (522)
(3211) (611) (531)
(3221) (621)
(4211) (711)
(3321)
(4221)
(4311)
(5211)
(32211)
The case with parts also covering an initial interval is
A317088.
These partitions are ranked by
A317090.
A047966 counts partitions with constant section-sums.
A048767 interchanges prime indices and prime multiplicities (Look-and-Say), see
A048768.
A055932 lists numbers whose prime indices cover an initial interval.
A116540 counts normal set multipartitions.
A381436 lists the section-sum partition of prime indices.
A381440 lists the Look-and-Say partition of prime indices.
-
normalQ[m_]:=Union[m]==Range[Max[m]];
Table[Length[Select[IntegerPartitions[n],normalQ[Length/@Split[#]]&]],{n,30}]
-
from sympy.utilities.iterables import partitions
def A317081(n):
if n == 0:
return 1
c = 0
for d in partitions(n):
s = set(d.values())
if len(s) == max(s):
c += 1
return c # Chai Wah Wu, Jun 22 2020
A353846
Triangle read by rows where T(n,k) is the number of integer partitions of n with partition run-sum trajectory of length k.
Original entry on oeis.org
1, 0, 1, 0, 1, 1, 0, 2, 1, 0, 0, 2, 2, 1, 0, 0, 3, 4, 0, 0, 0, 0, 4, 6, 1, 0, 0, 0, 0, 5, 9, 1, 0, 0, 0, 0, 0, 6, 11, 4, 1, 0, 0, 0, 0, 0, 8, 20, 2, 0, 0, 0, 0, 0, 0, 0, 10, 25, 7, 0, 0, 0, 0, 0, 0, 0, 0, 12, 37, 6, 1, 0, 0, 0, 0, 0, 0, 0
Offset: 0
Triangle begins:
1
0 1
0 1 1
0 2 1 0
0 2 2 1 0
0 3 4 0 0 0
0 4 6 1 0 0 0
0 5 9 1 0 0 0 0
0 6 11 4 1 0 0 0 0
0 8 20 2 0 0 0 0 0 0
0 10 25 7 0 0 0 0 0 0 0
0 12 37 6 1 0 0 0 0 0 0 0
0 15 47 13 2 0 0 0 0 0 0 0 0
0 18 67 15 1 0 0 0 0 0 0 0 0 0
0 22 85 25 3 0 0 0 0 0 0 0 0 0 0
0 27 122 26 1 0 0 0 0 0 0 0 0 0 0 0
For example, row n = 8 counts the following partitions (empty columns indicated by dots):
. (8) (44) (422) (4211) . . . .
(53) (332) (32111)
(62) (611) (41111)
(71) (2222) (221111)
(431) (3221)
(521) (3311)
(5111)
(22211)
(311111)
(2111111)
(11111111)
The version for run-lengths instead of run-sums is
A225485 or
A325280.
A005811 counts runs in binary expansion.
A353832 represents the operation of taking run-sums of a partition
A353836 counts partitions by number of distinct run-sums.
A353838 ranks partitions with all distinct run-sums, counted by
A353837.
A353845 counts partitions whose run-sum trajectory ends in a singleton.
-
rsn[y_]:=If[y=={},{},NestWhileList[Reverse[Sort[Total/@ Split[Sort[#]]]]&,y,!UnsameQ@@#&]];
Table[Length[Select[IntegerPartitions[n],Length[rsn[#]]==k&]],{n,0,15},{k,0,n}]
A353853
Trajectory of the composition run-sum transformation (or condensation) of n, using standard composition numbers.
Original entry on oeis.org
0, 1, 2, 3, 2, 4, 5, 6, 7, 4, 8, 9, 10, 8, 11, 10, 8, 12, 13, 14, 10, 8, 15, 8, 16, 17, 18, 19, 18, 20, 21, 17, 22, 23, 20, 24, 25, 26, 24, 27, 26, 24, 28, 20, 29, 21, 17, 30, 18, 31, 16, 32, 33, 34, 35, 34, 36, 32, 37, 38, 39, 36, 32, 40, 41, 42, 32
Offset: 0
Triangle begins:
0
1
2
3 2
4
5
6
7 4
8
9
10 8
11 10 8
12
13
14 10 8
For example, the trajectory of 29 is 29 -> 21 -> 17, corresponding to the compositions (1,1,2,1) -> (2,2,1) -> (4,1).
Counting rows by weight of final term gives
A353856.
A005811 counts runs in binary expansion.
A066099 lists compositions in standard order.
A318928 gives runs-resistance of binary expansion.
A329739 counts compositions with all distinct run-lengths.
A333627 ranks the run-lengths of standard compositions.
A351014 counts distinct runs in standard compositions, firsts
A351015.
A353932 lists run-sums of standard compositions.
Cf.
A237685,
A238279,
A304442,
A325277,
A333381,
A333755,
A353833,
A353848,
A353849,
A353850,
A353852,
A353860.
-
stc[n_]:=Differences[Prepend[Join@@ Position[Reverse[IntegerDigits[n,2]],1],0]]//Reverse;
stcinv[q_]:=Total[2^(Accumulate[Reverse[q]])]/2;
Table[NestWhileList[stcinv[Total/@Split[stc[#]]]&,n,MatchQ[stc[#],{_,x_,x_,_}]&],{n,0,50}]
A353840
Trajectory of the partition run-sum transformation of n, using Heinz numbers.
Original entry on oeis.org
1, 2, 3, 4, 3, 5, 6, 7, 8, 5, 9, 7, 10, 11, 12, 9, 7, 13, 14, 15, 16, 7, 17, 18, 14, 19, 20, 15, 21, 22, 23, 24, 15, 25, 13, 26, 27, 13, 28, 21, 29, 30, 31, 32, 11, 33, 34, 35, 36, 21, 37, 38, 39, 40, 25, 13, 41, 42, 43, 44, 33, 45, 35, 46, 47, 48, 21, 49, 19
Offset: 1
Triangle begins:
1
2
3
4 3
5
6
7
8 5
9 7
10
11
12 9 7
Row 87780 is the following trajectory (left column), with prime indices shown on the right:
87780: {1,1,2,3,4,5,8}
65835: {2,2,3,4,5,8}
51205: {3,4,4,5,8}
19855: {3,5,8,8}
2915: {3,5,16}
Counting rows by final omega gives
A353843.
A353838 ranks partitions with all distinct run-sums, counted by
A353837.
-
Table[NestWhileList[Times@@Prime/@Cases[FactorInteger[#],{p_,k_}:>PrimePi[p]*k]&,n,Not@*SquareFreeQ],{n,30}]
A353859
Triangle read by rows where T(n,k) is the number of integer compositions of n with composition run-sum trajectory of length k.
Original entry on oeis.org
1, 0, 1, 0, 1, 1, 0, 3, 1, 0, 0, 4, 2, 2, 0, 0, 7, 7, 2, 0, 0, 0, 14, 14, 4, 0, 0, 0, 0, 23, 29, 12, 0, 0, 0, 0, 0, 39, 56, 25, 8, 0, 0, 0, 0, 0, 71, 122, 53, 10, 0, 0, 0, 0, 0, 0, 124, 246, 126, 16, 0, 0, 0, 0, 0, 0, 0, 214, 498, 264, 48, 0, 0, 0, 0, 0, 0, 0
Offset: 0
Triangle begins:
1
0 1
0 1 1
0 3 1 0
0 4 2 2 0
0 7 7 2 0 0
0 14 14 4 0 0 0
0 23 29 12 0 0 0 0
0 39 56 25 8 0 0 0 0
0 71 122 53 10 0 0 0 0 0
0 124 246 126 16 0 0 0 0 0 0
0 214 498 264 48 0 0 0 0 0 0 0
For example, row n = 5 counts the following compositions:
(5) (113) (1121)
(14) (122) (1211)
(23) (221)
(32) (311)
(41) (1112)
(131) (2111)
(212) (11111)
This statistic (trajectory length) is ranked by
A353854, firsts
A072639.
Counting by length of last part instead of number of parts gives
A353856.
A333627 ranks the run-lengths of standard compositions.
A353932 lists run-sums of standard compositions.
Cf.
A237685,
A238279,
A304442,
A304465,
A318928,
A325277,
A333755,
A353848,
A353850,
A353852,
A353855,
A353858.
-
rsc[y_]:=If[y=={},{},NestWhileList[Total/@Split[#]&,y,MatchQ[#,{_,x_,x_,_}]&]];
Table[Length[Select[Join@@Permutations/@IntegerPartitions[n],Length[rsc[#]]==k&]],{n,0,10},{k,0,n}]
A362609
Number of integer partitions of n with more than one part of least multiplicity.
Original entry on oeis.org
0, 0, 0, 1, 1, 2, 4, 5, 9, 14, 19, 26, 42, 51, 74, 103, 136, 174, 246, 303, 411, 523, 674, 844, 1114, 1364, 1748, 2174, 2738, 3354, 4247, 5139, 6413, 7813, 9613, 11630, 14328, 17169, 20958, 25180, 30497, 36401, 44025, 52285, 62834, 74626, 89111, 105374, 125662
Offset: 0
The partition (4,2,2,1) has least multiplicity 1, and two parts of multiplicity 1 (namely 1 and 4), so is counted under a(9).
The a(3) = 1 through a(9) = 14 partitions:
(21) (31) (32) (42) (43) (53) (54)
(41) (51) (52) (62) (63)
(321) (61) (71) (72)
(2211) (421) (431) (81)
(3211) (521) (432)
(3221) (531)
(3311) (621)
(4211) (3321)
(32111) (4221)
(4311)
(5211)
(42111)
(222111)
(321111)
These partitions have ranks
A362606.
For mode complement instead of co-mode we have
A362608, ranks
A356862.
A275870 counts collapsible partitions.
A359893 counts partitions by median.
-
Table[Length[Select[IntegerPartitions[n],Count[Length/@Split[#],Min@@Length/@Split[#]]>1&]],{n,0,30}]
A354584
Irregular triangle read by rows where row k lists the run-sums of the multiset (weakly increasing sequence) of prime indices of n.
Original entry on oeis.org
1, 2, 2, 3, 1, 2, 4, 3, 4, 1, 3, 5, 2, 2, 6, 1, 4, 2, 3, 4, 7, 1, 4, 8, 2, 3, 2, 4, 1, 5, 9, 3, 2, 6, 1, 6, 6, 2, 4, 10, 1, 2, 3, 11, 5, 2, 5, 1, 7, 3, 4, 2, 4, 12, 1, 8, 2, 6, 3, 3, 13, 1, 2, 4, 14, 2, 5, 4, 3, 1, 9, 15, 4, 2, 8, 1, 6, 2, 7, 2, 6, 16
Offset: 1
Triangle begins:
.
1
2
2
3
1 2
4
3
4
1 3
5
2 2
6
1 4
2 3
For example, the prime indices of 630 are {1,2,2,3,4}, so row 630 is (1,4,3,4).
Positions of first appearances are
A308495 plus 1.
Classes:
Statistics:
- row ranks (as partitions):
A353832
A001222 counts prime factors with multiplicity.
A353861 counts distinct sums of partial runs of prime indices.
-
Table[Cases[If[n==1,{},FactorInteger[n]],{p_,k_}:>PrimePi[p]*k],{n,30}]
A382857
Number of ways to permute the prime indices of n so that the run-lengths are all equal.
Original entry on oeis.org
1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 0, 1, 2, 1, 1, 1, 6, 1, 1, 2, 2, 2, 4, 1, 2, 2, 0, 1, 6, 1, 1, 1, 2, 1, 0, 1, 1, 2, 1, 1, 0, 2, 0, 2, 2, 1, 6, 1, 2, 1, 1, 2, 6, 1, 1, 2, 6, 1, 1, 1, 2, 1, 1, 2, 6, 1, 0, 1, 2, 1, 6, 2, 2
Offset: 0
The prime indices of 216 are {1,1,1,2,2,2} and we have permutations:
(1,1,1,2,2,2)
(1,2,1,2,1,2)
(2,1,2,1,2,1)
(2,2,2,1,1,1)
so a(216) = 4.
The prime indices of 25920 are {1,1,1,1,1,1,2,2,2,2,3} and we have permutations:
(1,2,1,2,1,2,1,2,1,3,1)
(1,2,1,2,1,2,1,3,1,2,1)
(1,2,1,2,1,3,1,2,1,2,1)
(1,2,1,3,1,2,1,2,1,2,1)
(1,3,1,2,1,2,1,2,1,2,1)
so a(25920) = 5.
For distinct instead of equal run-lengths we have
A382771.
For run-sums instead of run-lengths we have
A382877, distinct
A382876.
Positions of first appearances are
A382878.
Positions of terms > 1 are
A383089.
A003963 gives product of prime indices.
A005811 counts runs in binary expansion.
A044813 lists numbers whose binary expansion has distinct run-lengths.
A164707 lists numbers whose binary expansion has all equal run-lengths, distinct
A328592.
A353744 ranks compositions with equal run-lengths, counted by
A329738.
Cf.
A000720,
A000961,
A001221,
A001222,
A003242,
A008480,
A047966,
A238130,
A238279,
A351201,
A351293,
A351295.
-
Table[Length[Select[Permutations[Join@@ConstantArray@@@FactorInteger[n]], SameQ@@Length/@Split[#]&]],{n,0,100}]
Comments