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,-3,2,-1,2,-1).
FORMULA
a(n) = a(n-1) - 3*a(n-2) + 2*a(n-3) - a(n-4) + 2*a(n-5) - a(n-6), n >= 6. - Franck Maminirina Ramaharo, Jan 08 2019
MATHEMATICA
CoefficientList[Series[-1/(1-x +3*x^2 -2*x^3 +x^4 -2*x^5 +x^6), {x, 0, 50}], x]
PROG
(Magma)
R<x>:=PowerSeriesRing(Integers(), 50);
Coefficients(R!( -1/(1-x+3*x^2-2*x^3+x^4-2*x^5+x^6) )); // G. C. Greubel, Sep 28 2024
(SageMath)
def A129920_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( -1/(1-x+3*x^2-2*x^3+x^4-2*x^5+x^6) ).list()
A129920_list(50) # G. C. Greubel, Sep 28 2024
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Jun 05 2007
EXTENSIONS
Edited by Franck Maminirina Ramaharo, Jan 08 2019
STATUS
approved