OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{k>=1} k*prime(k)*x^k/(1 + x^k).
L.g.f.: log(Product_{k>=1} (1 + x^k)^prime(k)) = Sum_{n>=1} a(n)*x^n/n.
MAPLE
f:= proc(n) local d; add((-1)^(n/d+1)*d*ithprime(d), d = numtheory:-divisors(n)); end proc:map(f, [$1..100]); # Robert Israel, Aug 01 2023
MATHEMATICA
Table[Sum[(-1)^(n/d + 1) d Prime[d], {d, Divisors[n]}], {n, 50}]
nmax = 50; Rest[CoefficientList[Series[Sum[k Prime[k] x^k/(1 + x^k), {k, 1, nmax}], {x, 0, nmax}], x]]
nmax = 50; Rest[CoefficientList[Series[Log[Product[(1 + x^k)^Prime[k], {k, 1, nmax}]], {x, 0, nmax}], x] Range[0, nmax]]
PROG
(PARI) a(n) = sumdiv(n, d, (-1)^(n/d+1)*d*prime(d)); \\ Michel Marcus, Aug 25 2018
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Ilya Gutkovskiy, Aug 24 2018
STATUS
approved