login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A285424 Sum of the entries in the last blocks of all set partitions of [n]. 4
1, 5, 19, 75, 323, 1512, 7630, 41245, 237573, 1451359, 9365361, 63604596, 453206838, 3378581609, 26285755211, 212953670251, 1792896572319, 15658150745252, 141619251656826, 1324477898999161, 12791059496663293, 127395689514237279, 1307010496324272157 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(3) = 19 because the sum of the entries in the last blocks of all set partitions of [3] (123, 12|3, 13|2, 1|23, 1|2|3) is 6+3+2+5+3 = 19.
MAPLE
a:= proc(h) option remember; local b; b:=
proc(n, m, s) option remember; `if`(n=0, s,
add(b(n-1, max(m, j), `if`(j<m, s, (h-n+1)+
`if`(j=m, s, 0))), j=1..m+1))
end: b(h, 0$2)
end:
seq(a(n), n=1..25);
MATHEMATICA
a[h_] := a[h] = Module[{b}, b[n_, m_, s_] := b[n, m, s] = If[n == 0, s, Sum[b[n-1, Max[m, j], If[j < m, s, h - n + 1 + If[j == m, s, 0]]], {j, 1, m + 1}]]; b[h, 0, 0]];
Array[a, 25] (* Jean-François Alcover, May 22 2018, translated from Maple *)
CROSSREFS
Column k=1 of A286232.
Sequence in context: A149768 A149769 A149770 * A275859 A323269 A268815
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 18 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 11:39 EDT 2024. Contains 371969 sequences. (Running on oeis4.)