OFFSET
1,7
LINKS
Index entries for linear recurrences with constant coefficients, signature (0, 2, 0, 4, 0, 1).
FORMULA
MATHEMATICA
F[1] = 1; F[2] = 1; F[3] = 1; F[4] = 0; F[n__] := F[n] = If[ Mod[n, 2] == 0, -3*F[n - 1] + 3*F[n - 3] + F[n - 4], F[n - 1] + F[n - 2]] a = Table[Abs[F[n]], {n, 1, 50}]
Join[{1, 1, 1, 0, 1}, LinearRecurrence[{0, 2, 0, 4, 0, 1}, {1, 2, 3, 1, 10, 9}, 50]] (* Harvey P. Dale, Oct 18 2013 *)
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