login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A343371
a(n) = 1 + Sum_{d|n, d < n} a(d - 1).
4
1, 1, 2, 2, 3, 2, 5, 2, 5, 4, 6, 2, 9, 2, 8, 7, 7, 2, 12, 2, 12, 9, 9, 2, 13, 5, 12, 9, 12, 2, 22, 2, 14, 10, 10, 10, 18, 2, 15, 13, 16, 2, 26, 2, 20, 20, 12, 2, 22, 7, 23, 11, 19, 2, 26, 11, 23, 16, 15, 2, 30, 2, 25, 26, 16, 14, 36, 2, 22, 13, 27, 2, 32, 2, 21, 28
OFFSET
0,3
LINKS
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