OFFSET
0,2
COMMENTS
Hankel transform of A113682.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (2,-3,2,-1).
FORMULA
G.f.: (1+x+2*x^2-x^3)/(1-x+x^2)^2.
a(n) = 2*a(n-1)-3*a(n-2)+2*a(n-3)-a(n-4), with a(0)=1, a(1)=3, a(2)=5, a(3)=2. - Harvey P. Dale, May 28 2013
MATHEMATICA
CoefficientList[Series[(1+x+2x^2-x^3)/(1-2x+3x^2-2x^3+x^4), {x, 0, 80}], x] (* or *) LinearRecurrence[{2, -3, 2, -1}, {1, 3, 5, 2}, 80] (* Harvey P. Dale, May 28 2013 *)
PROG
(PARI) x='x+O('x^50); Vec((1 +x +2*x^2 -x^3)/(1 -2*x +3*x^2 -2*x^3 +x^4)) \\ G. C. Greubel, Aug 10 2017
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Paul Barry, Aug 17 2009
STATUS
approved