OFFSET
0,3
COMMENTS
Number of adjacent blocks in all partitions of the set {1,2,...,n}. An adjacent block is a block of the form (i, i+1, i+2, ...). Example: a(3)=9 because in 1-2-3, 1-23, 12-3, 13-2, and 123 we have 3, 2, 2, 1, and 1 adjacent blocks, respectively.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..575
FORMULA
a(n) = Sum_{k=0..n} k * A177254(n,k).
MAPLE
with(combinat): a := proc (n) options operator, arrow: sum(j*bell(j-1), j = 1 .. n) end proc; seq(a(n), n = 0 .. 23);
MATHEMATICA
With[{nn=30}, Join[{0}, Accumulate[BellB[Range[0, nn-1]]Range[nn]]]] (* Harvey P. Dale, Nov 10 2014 *)
PROG
(Magma)
[n eq 0 select 0 else (&+[j*Bell(j-1): j in [1..n]]): n in [0..30]]; // G. C. Greubel, May 11 2024
(SageMath)
[sum(j*bell_number(j-1) for j in range(1, 1+n)) for n in range(31)] # G. C. Greubel, May 11 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, May 07 2010
STATUS
approved