OFFSET
0,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..10000
FORMULA
G.f. A(x) satisfies: A(x) = 1 / (1 - x) + x^2 * A(x^2) + x^3 * A(x^3) + x^4 * A(x^4) + ...
MAPLE
a:= proc(n) option remember;
1+add(a(d-1), d=numtheory[divisors](n) minus {n})
end:
seq(a(n), n=0..75); # Alois P. Heinz, Apr 12 2021
MATHEMATICA
a[n_] := a[n] = 1 + Sum[If[d < n, a[d - 1], 0], {d, Divisors[n]}]; Table[a[n], {n, 0, 75}]
nmax = 75; A[_] = 0; Do[A[x_] = 1/(1 - x) + Sum[x^k A[x^k], {k, 2, nmax}] + O[x]^(nmax + 1) //Normal, nmax + 1]; CoefficientList[A[x], x]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 12 2021
STATUS
approved