OFFSET
1,1
REFERENCES
Posting to sci.math.research by dima(AT)win.tue.nl (Dmitrii V. Pasechnik), Oct 28 1996.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
D. Pasechnik, Poincare series for the depths of roots in a root system, Sci. Math. Research posting Oct 28 1996.
Index entries for linear recurrences with constant coefficients, signature (2,-1,1,-1).
FORMULA
a(n) = 2*a(n-1)-a(n-2)+a(n-3)-a(n-4), for n>5.
G.f.: x*(x^4-4*x^3+x^2-4*x+4) / ((x-1)*(x^3+x-1)). - Colin Barker, Sep 27 2013
a(n) = a(n-1) + a(n-3) - 2, for n>4. - Greg Dresden, Feb 09 2020
MATHEMATICA
CoefficientList[Series[(x^4 - 4 x^3 + x^2 - 4 x + 4)/((x - 1) (x^3 + x - 1)), {x, 0, 50}], x] (* Vincenzo Librandi, Oct 16 2013 *)
LinearRecurrence[{2, -1, 1, -1}, {4, 4, 5, 6, 8}, 50] (* Harvey P. Dale, Oct 11 2019 *)
PROG
(PARI) Vec(x*(x^4-4*x^3+x^2-4*x+4)/((x-1)*(x^3+x-1)) + O(x^100)) \\ Colin Barker, Sep 27 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Sep 27 2013
STATUS
approved