OFFSET
0,3
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..527
Wikipedia, Permutation
FORMULA
a(n) = Sum_{k=1..n} k * A344855(n,k).
MAPLE
b:= proc(n) option remember; `if`(n=0, [1, 0], add((p-> p+[0,
p[1]])(b(n-j)*binomial(n-1, j-1)*ceil(2^(j-2))), j=1..n))
end:
a:= n-> b(n)[2]:
seq(a(n), n=0..23);
MATHEMATICA
b[n_] := b[n] = If[n == 0, {1, 0}, Sum[Function[p, p + {0,
p[[1]]}][b[n-j] Binomial[n-1, j-1] Ceiling[2^(j-2)]], {j, 1, n}]];
a[n_] := b[n][[2]];
Table[a[n], {n, 0, 23}] (* Jean-François Alcover, Aug 25 2021, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jun 14 2021
STATUS
approved