OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..61
FORMULA
a(p) = 2 for primes p.
G.f.: Sum_{k>=1} x^k/(1 - (k! * x)^k). - Seiichi Manyama, Oct 03 2021
MATHEMATICA
Table[Sum[(i!)^(n - i) (1 - Ceiling[n/i] + Floor[n/i]), {i, n}], {n, 20}]
PROG
(PARI) a(n) = sumdiv(n, d, d!^(n-d)); \\ Seiichi Manyama, Oct 03 2021
(PARI) my(N=20, x='x+O('x^N)); Vec(sum(k=1, N, x^k/(1-(k!*x)^k))) \\ Seiichi Manyama, Oct 03 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Oct 02 2021
STATUS
approved