A075900
Expansion of g.f.: Product_{n>0} 1/(1 - 2^(n-1)*x^n).
Original entry on oeis.org
1, 1, 3, 7, 19, 43, 115, 259, 659, 1523, 3731, 8531, 20883, 47379, 113043, 259219, 609683, 1385363, 3245459, 7344531, 17028499, 38579603, 88585619, 199845267, 457864595, 1028904339, 2339763603, 5256820115, 11896157587, 26626389395
Offset: 0
From _Gus Wiseman_, Jul 13 2020: (Start)
The a(0) = 1 through a(4) = 19 splittings:
() (1) (2) (3) (4)
(1,1) (1,2) (1,3)
(1),(1) (2,1) (2,2)
(1,1,1) (3,1)
(2),(1) (1,1,2)
(1,1),(1) (1,2,1)
(1),(1),(1) (2,1,1)
(2),(2)
(3),(1)
(1,1,1,1)
(1,1),(2)
(1,2),(1)
(2),(1,1)
(2,1),(1)
(1,1),(1,1)
(1,1,1),(1)
(2),(1),(1)
(1,1),(1),(1)
(1),(1),(1),(1)
(End)
Partitions of partitions are
A001970.
Splittings with equal sums are
A074854.
Splittings of compositions are
A133494.
Splittings of partitions are
A323583.
Splittings with distinct sums are
A336127.
Starting with a reversed partition gives
A316245.
Starting with a partition instead of composition gives
A336136.
-
m:=80;
R:=PowerSeriesRing(Integers(), m);
Coefficients(R!( 1/(&*[1-2^(j-1)*x^j: j in [1..m+2]]) )); // G. C. Greubel, Jan 25 2024
-
oo := 101; t1 := mul(1/(1-x^n/2),n=1..oo): t2 := series(t1,x,oo-1): t3 := seriestolist(t2): A075900 := n->2^n*t3[n+1];
with(combinat); A075900 := proc(n) local i,t1,t2,t3; t1 := partition(n); t2 := 0; for i from 1 to nops(t1) do t3 := t1[i]; t2 := t2+2^(n-nops(t3)); od: t2; end;
-
b[n_]:= b[n]= Sum[d*2^(n - n/d), {d, Divisors[n]}];
a[0]= 1; a[n_]:= a[n]= 1/n*Sum[b[k]*a[n-k], {k,n}];
Table[a[n], {n,0,30}] (* Jean-François Alcover, Mar 20 2014, after Vladeta Jovovic, fixed by Vaclav Kotesovec, Mar 08 2018 *)
-
s(m,n):=if nVladimir Kruchinin, Sep 06 2014 */
-
{a(n)=polcoeff(prod(k=1,n,1/(1-2^(k-1)*x^k+x*O(x^n))),n)} \\ Paul D. Hanna, Jan 13 2013
-
{a(n)=polcoeff(exp(sum(k=1,n+1,x^k/(k*(1-2^k*x^k)+x*O(x^n)))),n)} \\ Paul D. Hanna, Jan 13 2013
-
m=80;
def A075900_list(prec):
P. = PowerSeriesRing(QQ, prec)
return P( 1/product(1-2^(j-1)*x^j for j in range(1,m+1)) ).list()
A075900_list(m) # G. C. Greubel, Jan 25 2024
A304961
Expansion of Product_{k>=1} (1 + 2^(k-1)*x^k).
Original entry on oeis.org
1, 1, 2, 6, 12, 32, 72, 176, 384, 960, 2112, 4992, 11264, 26112, 58368, 136192, 301056, 688128, 1548288, 3489792, 7766016, 17596416, 38993920, 87293952, 194248704, 432537600, 957349888, 2132803584, 4699717632, 10406068224, 23001563136, 50683969536, 111434268672, 245819768832
Offset: 0
From _Gus Wiseman_, Jul 13 2020: (Start)
The a(0) = 1 through a(4) = 12 splittings:
() (1) (2) (3) (4)
(1,1) (1,2) (1,3)
(2,1) (2,2)
(1,1,1) (3,1)
(2),(1) (1,1,2)
(1,1),(1) (1,2,1)
(2,1,1)
(3),(1)
(1,1,1,1)
(1,2),(1)
(2,1),(1)
(1,1,1),(1)
(End)
Starting with a reversed partition gives
A323583.
Starting with a partition gives
A336134.
Partitions of partitions are
A001970.
Splittings with equal sums are
A074854.
Splittings of compositions are
A133494.
Splittings with distinct sums are
A336127.
-
nmax = 33; CoefficientList[Series[Product[(1 + 2^(k - 1) x^k), {k, 1, nmax}], {x, 0, nmax}], x]
-
N=40; x='x+O('x^N); Vec(prod(k=1, N, 1+2^(k-1)*x^k)) \\ Seiichi Manyama, Aug 22 2020
A316245
Number of ways to split an integer partition of n into consecutive subsequences with weakly decreasing sums.
Original entry on oeis.org
1, 1, 3, 6, 14, 25, 52, 89, 167, 279, 486, 786, 1322, 2069, 3326, 5128, 8004, 12055, 18384, 27203, 40588, 59186, 86645, 124583, 179784, 255111, 362767, 509319, 715422, 993681, 1380793, 1899630, 2613064, 3564177, 4857631, 6572314, 8884973, 11930363, 16002853
Offset: 0
The a(4) = 14 split partitions:
(4)
(31)
(22)
(211)
(3)(1)
(2)(2)
(1111)
(21)(1)
(2)(11)
(111)(1)
(11)(11)
(2)(1)(1)
(11)(1)(1)
(1)(1)(1)(1)
-
comps[q_]:=Table[Table[Take[q,{Total[Take[c,i-1]]+1,Total[Take[c,i]]}],{i,Length[c]}],{c,Join@@Permutations/@IntegerPartitions[Length[q]]}];
Table[Sum[Length[Select[comps[y],OrderedQ[Total/@#,GreaterEqual]&]],{y,IntegerPartitions[n]}],{n,10}]
-
a(n)={my(recurse(r,m,s,t,f)=if(m==0, r==0, if(f, self()(r,min(m,t),t,0,0)) + self()(r,m-1,s,t,0) + if(t+m<=s, self()(r-m,min(m,r-m),s,t+m,1)))); recurse(n,n,n,0,0)} \\ Andrew Howroyd, Jan 18 2024
A336127
Number of ways to split a composition of n into contiguous subsequences with different sums.
Original entry on oeis.org
1, 1, 2, 8, 16, 48, 144, 352, 896, 2432, 7168, 16896, 46080, 114688, 303104, 843776, 2080768, 5308416, 13762560, 34865152, 87818240, 241172480, 583008256, 1503657984, 3762290688, 9604956160, 23689428992, 60532195328, 156397207552, 385137770496, 967978254336
Offset: 0
The a(0) = 1 through a(4) = 16 splits:
() (1) (2) (3) (4)
(1,1) (1,2) (1,3)
(2,1) (2,2)
(1,1,1) (3,1)
(1),(2) (1,1,2)
(2),(1) (1,2,1)
(1),(1,1) (1),(3)
(1,1),(1) (2,1,1)
(3),(1)
(1,1,1,1)
(1),(1,2)
(1),(2,1)
(1,2),(1)
(2,1),(1)
(1),(1,1,1)
(1,1,1),(1)
The version with equal instead of different sums is
A074854.
Starting with a strict composition gives
A336128.
Starting with a partition gives
A336131.
Starting with a strict partition gives
A336132
Partitions of partitions are
A001970.
Partitions of compositions are
A075900.
Compositions of compositions are
A133494.
Compositions of partitions are
A323583.
-
splits[dom_]:=Append[Join@@Table[Prepend[#,Take[dom,i]]&/@splits[Drop[dom,i]],{i,Length[dom]-1}],{dom}];
Table[Sum[Length[Select[splits[ctn],UnsameQ@@Total/@#&]],{ctn,Join@@Permutations/@IntegerPartitions[n]}],{n,0,10}]
A318684
Number of ways to split a strict integer partition of n into consecutive subsequences with strictly decreasing sums.
Original entry on oeis.org
1, 1, 1, 3, 3, 5, 8, 11, 14, 20, 28, 35, 48, 61, 79, 105, 129, 162, 208, 257, 318, 404, 489, 600, 732, 896, 1075, 1315, 1576, 1895, 2272, 2715, 3217, 3851, 4537, 5377, 6353, 7484, 8765, 10314, 12044, 14079, 16420, 19114, 22184, 25818, 29840, 34528, 39903, 46030
Offset: 0
The a(9) = 20 split partitions:
(9)
(81) (8)(1)
(72) (7)(2)
(63) (6)(3)
(54) (5)(4)
(432) (43)(2) (4)(3)(2)
(621) (62)(1) (6)(2)(1) (6)(21)
(531) (53)(1) (5)(3)(1) (5)(31)
-
comps[q_]:=Table[Table[Take[q,{Total[Take[c,i-1]]+1,Total[Take[c,i]]}],{i,Length[c]}],{c,Join@@Permutations/@IntegerPartitions[Length[q]]}];
Table[Sum[Length[Select[comps[y],OrderedQ[Total/@#,Greater]&]],{y,Select[IntegerPartitions[n],UnsameQ@@#&]}],{n,30}]
A319794
Number of ways to split a strict integer partition of n into consecutive subsequences with weakly decreasing sums.
Original entry on oeis.org
1, 1, 1, 3, 3, 5, 9, 11, 15, 20, 31, 37, 52, 64, 85, 111, 141, 175, 225, 279, 346, 437, 532, 654, 802, 979, 1182, 1438, 1740, 2083, 2502, 2996, 3565, 4245, 5043, 5950, 7068, 8303, 9772, 11449, 13452, 15681, 18355, 21338, 24855, 28846, 33509, 38687, 44819, 51644
Offset: 0
The a(6) = 9 split partitions:
(6)
(51) (5)(1)
(42) (4)(2)
(321) (32)(1) (3)(21) (3)(2)(1).
-
comps[q_]:=Table[Table[Take[q,{Total[Take[c,i-1]]+1,Total[Take[c,i]]}],{i,Length[c]}],{c,Join@@Permutations/@IntegerPartitions[Length[q]]}];
Table[Sum[Length[Select[comps[y],OrderedQ[Total/@#,GreaterEqual]&]],{y,Select[IntegerPartitions[n],UnsameQ@@#&]}],{n,30}]
A336130
Number of ways to split a strict composition of n into contiguous subsequences all having the same sum.
Original entry on oeis.org
1, 1, 1, 3, 3, 5, 15, 13, 23, 27, 73, 65, 129, 133, 241, 375, 519, 617, 1047, 1177, 1859, 2871, 3913, 4757, 7653, 8761, 13273, 16155, 28803, 30461, 50727, 55741, 87743, 100707, 152233, 168425, 308937, 315973, 500257, 571743, 871335, 958265, 1511583, 1621273, 2449259, 3095511, 4335385, 4957877, 7554717, 8407537, 12325993, 14301411, 20348691, 22896077, 33647199, 40267141, 56412983, 66090291, 93371665, 106615841, 155161833
Offset: 0
The a(1) = 1 through a(7) = 13 splits:
(1) (2) (3) (4) (5) (6) (7)
(1,2) (1,3) (1,4) (1,5) (1,6)
(2,1) (3,1) (2,3) (2,4) (2,5)
(3,2) (4,2) (3,4)
(4,1) (5,1) (4,3)
(1,2,3) (5,2)
(1,3,2) (6,1)
(2,1,3) (1,2,4)
(2,3,1) (1,4,2)
(3,1,2) (2,1,4)
(3,2,1) (2,4,1)
(1,2),(3) (4,1,2)
(2,1),(3) (4,2,1)
(3),(1,2)
(3),(2,1)
The version with different instead of equal sums is
A336128.
Starting with a non-strict composition gives
A074854.
Starting with a partition gives
A317715.
Starting with a strict partition gives
A318683.
Set partitions with equal block-sums are
A035470.
Partitions of partitions are
A001970.
Partitions of compositions are
A075900.
Compositions of compositions are
A133494.
Compositions of partitions are
A323583.
Cf.
A006951,
A063834,
A271619,
A279375,
A305551,
A317508,
A318684,
A326519,
A336127,
A336132,
A336134,
A336135.
-
splits[dom_]:=Append[Join@@Table[Prepend[#,Take[dom,i]]&/@splits[Drop[dom,i]],{i,Length[dom]-1}],{dom}];
Table[Sum[Length[Select[splits[ctn],SameQ@@Total/@#&]],{ctn,Join@@Permutations/@Select[IntegerPartitions[n],UnsameQ@@#&]}],{n,0,15}]
A074854
a(n) = Sum_{d|n} (2^(n-d)).
Original entry on oeis.org
1, 3, 5, 13, 17, 57, 65, 209, 321, 801, 1025, 3905, 4097, 12417, 21505, 53505, 65537, 233985, 262145, 885761, 1327105, 3147777, 4194305, 16060417, 17825793, 50339841, 84148225, 220217345, 268435457, 990937089, 1073741825, 3506503681
Offset: 1
Divisors of 6 = 1,2,3,6 and 6-1 = 5, 6-2 = 4, 6-3 = 3, 6-6 = 0. a(6) = 2^5 + 2^4 + 2^3 + 2^0 = 32 + 16 + 8 + 1 = 57.
G.f. = x + 3*x^2 + 5*x^3 + 13*x^4 + 17*x^5 + 57*x^6 + 65*x^7 + ...
a(14) = 1 + 2^7 + 2^12 + 2^13 = 12417. - _Gus Wiseman_, Jun 20 2018
The version looking at lengths instead of sums is
A101509.
The strictly increasing (or strictly decreasing) version is
A304961.
Starting with a partition gives
A317715.
Starting with a strict partition gives
A318683.
Requiring distinct instead of equal sums gives
A336127.
Starting with a strict composition gives
A336130.
Partitions of partitions are
A001970.
Splittings of compositions are
A133494.
Splittings of partitions are
A323583.
-
a[ n_] := If[ n < 1, 0, Sum[ 2^(n - d), {d, Divisors[n]}]] (* Michael Somos, Mar 28 2013 *)
-
a(n)=if(n<1,0,2^n*polcoeff(sum(k=1,n,2/(2-x^k),x*O(x^n)),n))
-
a(n) = sumdiv(n,d, 2^(n-d) ); /* Joerg Arndt, Mar 28 2013 */
a(14) corrected from 9407 to 12417 by
Gus Wiseman, Jun 20 2018
A318683
Number of ways to split a strict integer partition of n into consecutive subsequences with equal sums.
Original entry on oeis.org
1, 1, 1, 2, 2, 3, 5, 5, 7, 8, 12, 12, 18, 18, 26, 27, 37, 38, 53, 54, 73, 76, 100, 104, 136, 142, 183, 192, 244, 256, 327, 340, 424, 448, 558, 585, 722, 760, 937, 983, 1195, 1260, 1544, 1610, 1943, 2053, 2480, 2590, 3107, 3264, 3927, 4106, 4874, 5120, 6134, 6378
Offset: 0
The a(12) = 18 constant-sum split partitions:
(12)
(7,5)
(8,4)
(9,3)
(10,2)
(11,1)
(5,4,3)
(6,4,2)
(6,5,1)
(7,3,2)
(7,4,1)
(8,3,1)
(9,2,1)
(6)(4,2)
(6)(5,1)
(5,4,2,1)
(6,3,2,1)
(6)(3,2,1)
-
comps[q_]:=Table[Table[Take[q,{Total[Take[c,i-1]]+1,Total[Take[c,i]]}],{i,Length[c]}],{c,Join@@Permutations/@IntegerPartitions[Length[q]]}];
Table[Sum[Length[Select[comps[y],SameQ@@Total/@#&]],{y,Select[IntegerPartitions[n],UnsameQ@@#&]}],{n,30}]
A336135
Number of ways to split an integer partition of n into contiguous subsequences with strictly decreasing sums.
Original entry on oeis.org
1, 1, 2, 5, 8, 16, 29, 50, 79, 135, 213, 337, 522, 796, 1191, 1791, 2603, 3799, 5506, 7873, 11154, 15768, 21986, 30565, 42218, 57917, 78968, 107399, 144932, 194889, 261061, 347773, 461249, 610059, 802778, 1053173, 1377325, 1793985, 2329009, 3015922, 3891142
Offset: 0
The a(1) = 1 through a(5) = 16 splittings:
(1) (2) (3) (4) (5)
(1,1) (2,1) (2,2) (3,2)
(1,1,1) (3,1) (4,1)
(2),(1) (2,1,1) (2,2,1)
(1,1),(1) (3),(1) (3,1,1)
(1,1,1,1) (3),(2)
(2,1),(1) (4),(1)
(1,1,1),(1) (2,1,1,1)
(2,2),(1)
(3),(1,1)
(3,1),(1)
(1,1,1,1,1)
(2,1),(1,1)
(2,1,1),(1)
(1,1,1),(1,1)
(1,1,1,1),(1)
The version with equal sums is
A317715.
The version with strictly increasing sums is
A336134.
The version with weakly increasing sums is
A336136.
The version with weakly decreasing sums is
A316245.
The version with different sums is
A336131.
Starting with a composition gives
A304961.
Starting with a strict partition gives
A318684.
Partitions of partitions are
A001970.
Partitions of compositions are
A075900.
Compositions of compositions are
A133494.
Compositions of partitions are
A323583.
-
splits[dom_]:=Append[Join@@Table[Prepend[#,Take[dom,i]]&/@splits[Drop[dom,i]],{i,Length[dom]-1}],{dom}];
Table[Sum[Length[Select[splits[ctn],Greater@@Total/@#&]],{ctn,IntegerPartitions[n]}],{n,0,10}]
-
a(n)={my(recurse(r,m,s,t,f)=if(m==0, r==0, if(f, self()(r,min(m,t-1),t-1,0,0)) + self()(r,m-1,s,t,0) + if(t+m<=s, self()(r-m,min(m,r-m),s,t+m,1)))); recurse(n,n,n,0)} \\ Andrew Howroyd, Jan 18 2024
Showing 1-10 of 21 results.
Comments