OFFSET
1,5
COMMENTS
The sequence is eventually periodic with period 10. 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 (1, -1, 1, -1, 1, -1, 1, -1, 1).
MATHEMATICA
Join[{1, 0, 0}, LinearRecurrence[{1, -1, 1, -1, 1, -1, 1, -1, 1}, {1, 2, 2, 2, 2, 4, 4, 1, 1}, 100]] (* Ray Chandler, Aug 26 2015 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Richard Sabey, Jan 24 2007
EXTENSIONS
Extended by Ray Chandler, Aug 26 2015
STATUS
approved