OFFSET
0,4
LINKS
Harvey P. Dale, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (-1, 4, 4, -1, -1).
FORMULA
G.f.:-x*(3*x^3+x^2-2*x-1)/((x+1)*(x^4-4*x^2+1)). [From Maksym Voznyy (voznyy(AT)mail.ru), Aug 12 2009]
a(2n) = A102871(n+1).
MATHEMATICA
n = 4 M = {{0, 1, 0, 0, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 1, 0}, {0, 0, 0, 0, 1}, {-1, -1, m, m, -1}} Expand[Det[M - x*IdentityMatrix[5]]] NSolve[Det[M - x*IdentityMatrix[5]] == 0, x] v[1] = {0, 1, 1, 2, 3} digits = 50 v[n_] := v[n] = M.v[n - 1] a = Table[v[n][[1]], {n, 1, digits}]
LinearRecurrence[{-1, 4, 4, -1, -1}, {0, 1, 1, 2, 3}, 40] (* Harvey P. Dale, Aug 16 2011 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, May 25 2005
EXTENSIONS
Definition replaced by recurrence by the Associate Editors of the OEIS, Sep 28 2009
STATUS
approved