OFFSET
1,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: x + x^2 * (1 + Sum_{n>=1} a(n)*x^n/(1 - x^n)^2).
a(1) = a(2) = 1; a(n+2) = Sum_{d|n} d*a(n/d).
MAPLE
a:= proc(n) option remember; `if`(n<3, signum(n), (m->
m*add(a(d)/d, d=numtheory[divisors](m)))(n-2))
end:
seq(a(n), n=1..60); # Alois P. Heinz, May 09 2019
MATHEMATICA
terms = 57; A[_] = 0; Do[A[x_] = x + x^2 (1 + Sum[k A[x^k], {k, 1, terms}]) + O[x]^(terms + 1) // Normal, terms + 1]; Rest[CoefficientList[A[x], x]]
a[n_] := a[n] = SeriesCoefficient[x + x^2 (1 + Sum[a[k] x^k/(1 - x^k)^2, {k, 1, n - 1}]), {x, 0, n}]; Table[a[n], {n, 1, 57}]
a[n_] := a[n] = Sum[d a[(n - 2)/d], {d, Divisors[n - 2]}]; a[1] = a[2] = 1; Table[a[n], {n, 1, 57}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, May 09 2019
STATUS
approved