OFFSET
1,3
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..5000
FORMULA
L.g.f.: log(Product_{k>=1} (1 + k*x^k)^(1/k^2)) = Sum_{n>=1} a(n)*x^n/n.
a(n) = Sum_{d|n} (-d)^(n/d-1).
a(n) = 2 if n is odd prime.
MATHEMATICA
nmax = 49; CoefficientList[Series[Sum[x^k /(1 + k x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
nmax = 49; CoefficientList[Series[Log[Product[(1 + k x^k)^(1/k^2), {k, 1, nmax}]], {x, 0, nmax}], x] Range[0, nmax] // Rest
Table[Sum[(-d)^(n/d - 1), {d, Divisors[n]}], {n, 1, 49}]
PROG
(PARI) a(n) = sumdiv(n, d, (-d)^(n/d-1)); \\ Michel Marcus, Mar 22 2021
CROSSREFS
KEYWORD
sign
AUTHOR
Ilya Gutkovskiy, May 22 2019
STATUS
approved