OFFSET
1,2
COMMENTS
Multiplicative because A163659 is. - Andrew Howroyd, Jul 26 2018
LINKS
Paul D. Hanna, Table of n, a(n) for n = 1..1000
FORMULA
L.g.f.: log(1+x+x^2) + Sum_{n>=0} 3*2^n * log(1 + x^(2*2^n) + x^(4*2^n)) = Sum_{n>=1} a(n)*x^n/n. - Paul D. Hanna, May 04 2014
G.f.: x*(1+2*x)/(1+x+x^2) + Sum_{n>=0} 6*4^n * x^(2*2^n) * (1 + 2*x^(2*2^n)) / (1 + x^(2*2^n) + x^(4*2^n)). - Paul D. Hanna, May 04 2014
Dirichlet g.f.: zeta(s) * (1 - 3^(1-s)) * (2^s + 2) / (2^s - 4). - Amiram Eldar, Oct 24 2023
EXAMPLE
L.g.f.: L(x) = x + 7*x^2/2 - 2*x^3/3 + 31*x^4/4 + x^5/5 - 14*x^6/6 + x^7/7 + 127*x^8/8 +...
where
exp(L(x)) = 1 + x + 4*x^2 + 3*x^3 + 15*x^4 + 12*x^5 + 37*x^6 + 25*x^7 +...
MATHEMATICA
a[n_] := Times @@ (Function[{p, e}, Which[p == 2, 2^(e+1) - 1, p == 3, -2, True, 1]] @@@ FactorInteger[n^2]);
a /@ Range[1, 100] (* Jean-François Alcover, Sep 20 2019 *)
PROG
CROSSREFS
KEYWORD
sign,mult
AUTHOR
Paul D. Hanna, Sep 20 2011
STATUS
approved