OFFSET
1,3
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
G.f. A(x) satisfies: A(x) = x + x^2 * (1 / (1 - x) + A(x) + A(x^2) + A(x^3) + ...).
MAPLE
f:= proc(n) option remember; local d; 1 + add(procname(d), d = numtheory:-divisors(n-2)) end proc:
f(1):= 1: f(2):= 1:
map(f, [$1..60]); # Robert Israel, Dec 02 2022
MATHEMATICA
a[1] = a[2] = 1; a[n_] := a[n] = 1 + Sum[a[d], {d, Divisors[n - 2]}]; Table[a[n], {n, 1, 60}]
nmax = 60; A[_] = 0; Do[A[x_] = x + x^2 (1/(1 - x) + Sum[A[x^k], {k, 1, nmax}]) + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x] // Rest
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jul 05 2021
STATUS
approved