OFFSET
0,3
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,-1,-3,0,5,0,-3,-1,2,1,-1).
FORMULA
G.f.: 1/(1 - x - 2*x^2 + x^3 + 3*x^4 - 5*x^6 + 3*x^8 + x^9 - 2*x^10 - x^11 + x^12).
G.f.: -1/(x^6*f(x)*f(1/x)), where f(x) = -1 + x + x^2 - x^4 + x^6. - G. C. Greubel, Oct 24 2022
MATHEMATICA
f[x_]= -1+x+x^2-x^4+x^6;
CoefficientList[Series[-1/(x^6*f[x]*f[1/x]), {x, 0, 50}], x] (* G. C. Greubel, Oct 24 2022 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!( 1/((1-x-x^2+x^4-x^6)*(1-x^2+x^4+x^5-x^6)) )); // G. C. Greubel, Oct 24 2022
(SageMath)
def A147606_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( 1/((1-x-x^2+x^4-x^6)*(1-x^2+x^4+x^5-x^6)) ).list()
A147606_list(50) # G. C. Greubel, Oct 24 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 08 2008
EXTENSIONS
Definition corrected by N. J. A. Sloane, Nov 09 2008
STATUS
approved