OFFSET
0,5
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-2,1,1).
FORMULA
a(n) = 2*a(n-1)-2*a(n-2)+a(n-3)+a(n-4).
MATHEMATICA
CoefficientList[Series[(1-x+x^2)/(1-2x+2x^2-x^3-x^4), {x, 0, 50}], x] (* or *) LinearRecurrence[ {2, -2, 1, 1}, {1, 1, 1, 1}, 50] (* Harvey P. Dale, Jun 16 2024 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paul Barry, Jul 07 2004
STATUS
approved