OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..5000
FORMULA
a(n) ~ sqrt(2*Pi*n) * exp(exp(-1)*n - 1/2). - Vaclav Kotesovec, Sep 14 2021
EXAMPLE
a(3) = [3/1] + [(3/2)^2] + [(3/3)^3] = 3 + 2 + 1 = 6.
MATHEMATICA
a[n_] := Sum[Floor[(n/k)^k], {k, 1, n}]; Array[a, 40] (* Amiram Eldar, Aug 31 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, n^k\k^k);
CROSSREFS
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Aug 31 2021
STATUS
approved