OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..200
C. G. Bower, Transforms (2)
FORMULA
G.f.: (x*(2+3*x-x^2)/((1-x)*(1-3*x^2)) + Sum_{d>0} phi(d)*log((1-x^d)/(1-3*x^d))/d)/2. - Andrew Howroyd, Jun 20 2018
MATHEMATICA
seq[n_] := (x*(2 + 3*x - x^2)/((1 - x)*(1 - 3*x^2)) + Sum[EulerPhi[d]*(Log[(1 - x^d)/(1 - 3*x^d)]/d), {d, 1, n}])/2 + O[x]^(n + 1) // CoefficientList[#, x]& // Rest;
seq[30] (* Jean-François Alcover, Jul 02 2018, after Andrew Howroyd *)
PROG
(PARI) seq(n)={Vec(sum(d=1, n, eulerphi(d)/d*log((1-x^d)/(1-3*x^d) + O(x*x^n))) + x*(2+3*x-x^2)/((1-x)*(1-3*x^2)))/2} \\ Andrew Howroyd, Jun 20 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Terms a(28) and beyond from Andrew Howroyd, Jun 20 2018
STATUS
approved