OFFSET
1,2
FORMULA
G.f. A(x) satisfies: A(x) = x + Sum_{k>=2} prime(k) * A(x^k).
MATHEMATICA
a[n_] := If[n == 1, n, Sum[If[d < n, Prime[n/d] a[d], 0], {d, Divisors[n]}]]; Table[a[n], {n, 1, 55}]
nmax = 55; A[_] = 0; Do[A[x_] = x + Sum[Prime[k] A[x^k], {k, 2, nmax}] + O[x]^(nmax + 1) // Normal, nmax + 1]; CoefficientList[A[x], x] // Rest
PROG
(PARI) seq(n)={my(v=vector(n)); v[1]=1; for(n=2, #v, v[n] = sumdiv(n, d, v[d]*prime(n/d))); v} \\ Andrew Howroyd, Sep 05 2019
(Magma) sol:=[1]; for n in [2..60] do Append(~sol, &+[NthPrime(Floor(n/d))*sol[d]:d in Set(Divisors(n)) diff {n}]); end for; sol; // Marius A. Burtea, Sep 05 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Sep 05 2019
STATUS
approved