login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A270756
Total sum of the sizes of all blocks with maximal element 2 in all set partitions of {1,2,...,n}.
3
3, 4, 9, 25, 82, 307, 1283, 5894, 29427, 158269, 910520, 5570737, 36071631, 246188196, 1764757189, 13246059237, 103825154098, 847806545767, 7196895817375, 63389642645486, 578318132627495, 5456455370760825, 53165437331978992, 534262881004973981
OFFSET
2,1
LINKS
MATHEMATICA
b[n_, m_, t_] := b[n, m, t] = If[n == 0, {1, 0}, Sum[If[t == 1 && j != m + 1, 0, Function[p, p + If[j == -t || t == 1 && j == m + 1, {0, p[[1]]}, 0]][b[n - 1, Max[m, j], If[t == 1 && j == m + 1, -j, If[t < 0, t, If[t > 0, t - 1, 0]]]]]], {j, 1, m + 1}]];
a[n_] := b[n, 0, Max[0, 1 + n - 2]][[2]];
Array[a, 24, 2] (* Jean-François Alcover, May 26 2018, from Maple code for A270701 *)
CROSSREFS
Column k=2 of A270701.
A diagonal of A270702.
Sequence in context: A038629 A354545 A247087 * A105229 A237583 A362353
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 22 2016
STATUS
approved