OFFSET
0,4
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..2500
Index entries for linear recurrences with constant coefficients, signature (1, 0, 1, 0, 0, -1).
FORMULA
EXAMPLE
G.f. = 1 + x + x^2 + 2*x^3 + 3*x^4 + 4*x^5 + 5*x^6 + 7*x^7 + 10*x^8 + 13*x^9 + ...
MATHEMATICA
CoefficientList[Series[1/(1-x-x^3+x^6), {x, 0, 50}], x] (* or *) LinearRecurrence[ {1, 0, 1, 0, 0, -1}, {1, 1, 1, 2, 3, 4}, 50] (* Harvey P. Dale, Jul 25 2017 *)
PROG
(PARI) {a(n) = if( n<0, n = -n; polcoeff( - x^6 / (1 - x^3 - x^5 + x^6) + x * O(x^n), n), polcoeff( 1 / (1 - x - x^3 + x^6) + x * O(x^n), n))};
(Magma) m:=50; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!(1/(1-x-x^3+x^6))); // G. C. Greubel, Aug 10 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Michael Somos, Jan 01 2013
STATUS
approved