OFFSET
1,2
FORMULA
a(n) = [x^n] (1/(1 - x)) * Sum_{k=1..n} Stirling2(n,k) * x^k/(1 - x^k).
a(n) = Sum_{k=1..n} Sum_{d|k} Stirling2(n,d).
MATHEMATICA
Table[Sum[StirlingS2[n, k] Floor[n/k] , {k, 1, n}], {n, 1, 25}]
Table[SeriesCoefficient[1/(1 - x) Sum[StirlingS2[n, k] x^k/(1 - x^k), {k, 1, n}], {x, 0, n}], {n, 1, 25}]
Table[Sum[Sum[StirlingS2[n, d], {d, Divisors[k]}], {k, 1, n}], {n, 1, 25}]
PROG
(PARI) a(n) = sum(k=1, n, stirling(n, k, 2) * (n\k)); \\ Michel Marcus, Aug 23 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 22 2019
STATUS
approved