OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..5000
FORMULA
G.f.: (1/(1 - x)) * Sum_{j>=1} Sum_{k>=1} (k*x^k)^j * (1 - x^j).
a(n) ~ 3^((n - mod(n,3))/3 + 1)/2. - Vaclav Kotesovec, Jun 11 2021
MATHEMATICA
a[n_] := Sum[Floor[n/k]^k, {k, 1, n}]; Array[a, 40] (* Amiram Eldar, Jun 10 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, (n\k)^k);
(PARI) my(N=66, x='x+O('x^N)); Vec(sum(j=1, N, (1-x^j)*sum(k=1, N, (k*x^k)^j))/(1-x))
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Jun 10 2021
STATUS
approved