OFFSET
1,5
FORMULA
Limit_{n->infinity} a(n)/a(n-1) alternates between 0.767592... and 4.3027...
G.f.: x*(1+x+x^2)*(2*x^6+2*x^2-1)/( (1+x^2)*(x^4+3*x^2-1)) [Sep 28 2009]
MATHEMATICA
M[n_] := If [Mod[n, 2] == 0, {{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {1, 3, 0, -3}}, {{0, 1, 0, 0}, {0, 0, 1, 0}, {0, 0, 0, 1}, {0, 0, 1, 1}}] v[1] = {1, 1, 1, 0} v[n_] := v[n] = M[n].v[n - 1] a0 = Table[Abs[v[n][[1]]], {n, 1, 50}]
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