OFFSET
1,5
FORMULA
MATHEMATICA
(* method one*) F[1] = 1; F[2] = 1; F[3] = 1; F[4] = 0; F[n__] := F[n] = -3*F[n - 1] + 3*F[n - 3] + F[n - 4] a = Table[Abs[F[n]], {n, 1, 50}] an = Table[N[a[[n]]/a[[n - 1]]], {n, 6, 25}] (* method two*) M = {{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, 3, 0, -3}} v[1] = {1, 1, 1, 0} v[n_] := v[n] = M.v[n - 1] a0 = Table[Abs[v[n][[1]]], {n, 1, 50}] an = Table[N[a0[[n]]/a0[[n - 1]]], {n, 6, 25}] Det[M - x*IdentityMatrix[4]]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Jun 12 2005
EXTENSIONS
Definition replaced by recurrence by the Associate Editors of the OEIS, Sep 28 2009
STATUS
approved