OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (4, -1, -1).
FORMULA
G.f.: (1-3*x-2*x^2)/(1-4*x+x^2+x^3). [Sep 28 2009]
MATHEMATICA
p = Expand[(x^3 - x^2 - x - 1)*(x^3 - 4*x^2 + x + 1)] v[0] = {1, 1, 1}; M = {{0, 1, 0}, {0, 0, 1}, {-1, -1, 4}}; Det[M - x*IdentityMatrix[3]] NSolve[Det[M - x*IdentityMatrix[3]] == 0, x] v[n_] := v[n] = M.v[n - 1] a = Table[v[n][[1]], {n, 0, 50}]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Jun 05 2005
EXTENSIONS
Definition replaced by recurrence by the Associate Editors of the OEIS, Sep 28 2009
STATUS
approved