OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (2,-1,2,2,-4).
FORMULA
From R. J. Mathar, May 19 2008: (Start)
O.g.f.: x^2/((2*x-1)(x-1)(1+x)(1+2*x^2)).
a(n) = 2*a(n-1) - a(n-2) + 2*a(n-3) + 2*a(n-4) - 4*a(n-5). (End)
MATHEMATICA
LinearRecurrence[{2, -1, 2, 2, -4}, {0, 0, 1, 2, 3}, 40] (* Amiram Eldar, Sep 13 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Curtz, May 18 2008
EXTENSIONS
More terms from R. J. Mathar, May 19 2008
STATUS
approved