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,1,0,-1,0,1).
FORMULA
a(n) = a(n-1) + a(n-2) - a(n-4) + a(n-6). - Ilya Gutkovskiy, Nov 16 2016
MAPLE
seq(coeff(series(1/(1 -x -x^2 +x^4 -x^6), x, n+1), x, n), n = 0..50); # G. C. Greubel, Dec 05 2019
MATHEMATICA
CoefficientList[Series[1/(1 -x -x^2 +x^4 -x^6), {x, 0, 50}], x]
PROG
(PARI) Vec(1/(1 -x -x^2 +x^4 -x^6)+O(x^50)) \\ Charles R Greathouse IV, Sep 23 2012
(Magma) R<x>:=PowerSeriesRing(Integers(), 50); Coefficients(R!(1/(1-x-x^2+x^4-x^6))); // G. C. Greubel, Nov 03 2018
(Sage)
def A117791_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( 1/(1 -x -x^2 +x^4 -x^6) ).list()
A117791_list(50) # G. C. Greubel, Dec 05 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Apr 15 2006
EXTENSIONS
Edited by N. J. A. Sloane, Nov 08 2006
STATUS
approved