OFFSET
0,3
FORMULA
G.f.: x * g(x) + (3/4) * x * (1 + x) * g'(x), where g(x) = Product_{k>=0} (1 + 2 * x^(2^(k + 1))).
a(n) = floor((3*n + 1)/2) * 2^(A000120(floor(n/2)) - 1).
MATHEMATICA
Table[Sum[Mod[StirlingS1[n, k], 2] k, {k, 0, n}], {n, 0, 60}]
Table[Floor[(3 n + 1)/2] 2^(DigitCount[Floor[n/2], 2, 1] - 1), {n, 0, 60}]
PROG
(PARI) a(n) = sum(k=0, n, (stirling(n, k, 1) % 2) * k); \\ Michel Marcus, May 23 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 23 2020
STATUS
approved