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 (3,1,-3,1,2,-1,-1).
FORMULA
G.f.: x*(1-2*x-2*x^2-x^3-4*x^4-7*x^5)/(1-3*x-x^2+3*x^3-x^4-2*x^5+x^6+x^7). [Sep 28 2009]
MATHEMATICA
M = {{0, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 0, 1}, {-1, -1, 2, 1, -3, 1, 3}} v[n_] := v[n] = M.v[n - 1] a = Table[v[n][[1]], {n, 1, digits}]
LinearRecurrence[{3, 1, -3, 1, 2, -1, -1}, {0, 1, 1, 2, 3, 5, 8}, 30] (* Harvey P. Dale, Oct 19 2016 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, May 27 2005
EXTENSIONS
Definition replaced by recurrence by the Associate Editors of the OEIS, Sep 28 2009
Definition corrected by Harvey P. Dale, Oct 19 2016
STATUS
approved