OFFSET
1,2
COMMENTS
The sequence is eventually periodic with period 12. The last exception is at n=3.
REFERENCES
E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982; see Chapter 4, p. 104.
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,0,-1,0,1).
FORMULA
a(n) = a(n-2) - a(n-6) + a(n-8). - Wesley Ivan Hurt, Oct 20 2022
MATHEMATICA
Join[{1, 2, 0}, LinearRecurrence[{0, 1, 0, 0, 0, -1, 0, 1}, {2, 1, 2, 3, 0, 1, 0, 3}, 96]] (* Ray Chandler, Aug 27 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Richard Sabey, Jan 24 2007
EXTENSIONS
Corrected formula. - Paolo P. Lava, Oct 23 2008
Extended by Ray Chandler, Aug 27 2015
STATUS
approved