OFFSET
1,3
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Llew Mason, Catmull-Rom Splines, 1994.
Index entries for linear recurrences with constant coefficients, signature (-5,8,6,-4).
FORMULA
G.f.: x*(1 + 5*x - 6*x^2 - 4*x^3) / (1 + 5*x - 8*x^2 - 6*x^3 + 4*x^4). - Colin Barker, Apr 01 2018
MAPLE
a[1]:=1: a[2]:=0: a[3]:=2: a[4]:=-8: for n from 5 to 24 do a[n]:=-5*a[n-1]+8*a[n-2]+6*a[n-3]-4*a[n-4] od: seq(a[n], n=1..24);
MATHEMATICA
LinearRecurrence[{-5, 8, 6, -4}, {1, 0, 2, -8}, 30] (* Harvey P. Dale, Jul 08 2017 *)
CoefficientList[Series[(1 + 5*x - 6*x^2 - 4*x^3) / (1 + 5*x - 8*x^2 - 6*x^3 + 4*x^4), {x, 0, 25}], x] (* Stefano Spezia, Oct 04 2018 *)
PROG
(PARI) Vec(x*(1 + 5*x - 6*x^2 - 4*x^3) / (1 + 5*x - 8*x^2 - 6*x^3 + 4*x^4) + O(x^30)) \\ Colin Barker, Apr 01 2018
CROSSREFS
KEYWORD
sign,easy
AUTHOR
Roger L. Bagula, Oct 03 2006
EXTENSIONS
Edited by N. J. A. Sloane, Oct 08 2006
STATUS
approved