OFFSET
0,2
REFERENCES
Based on a suggestion of Wolfdieter Lang in A272362.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,1,0,-1,-1).
FORMULA
G.f.: (x^4+x^3+x^2-x-1)/(x^4+2*x^3+2*x^2+x-1).
a(n) = 2*a(n-1) + a(n-2) - a(n-4) - a(n-5). - Vincenzo Librandi, May 08 2016
MATHEMATICA
CoefficientList[Series[(x^4 + x^3 + x^2 - x - 1)/(x^4 + 2 x^3 + 2 x^2 + x - 1), {x, 0, 40}], x] (* Vincenzo Librandi, May 08 2016 *)
PROG
(Magma) m:=40; R<x>:=PowerSeriesRing(Integers(), m); Coefficients(R!((x^4+x^3+x^2-x-1)/(x^4+2*x^3+2*x^2+x-1))); // Bruno Berselli, May 08 2016
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, May 07 2016
STATUS
approved