login
A125938
Sprague-Grundy values for octal game 4.102.
0
1, 1, 1, 2, 2, 2, 0, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1, 4, 4, 2, 1, 1, 1, 2, 2, 2, 1
OFFSET
1,4
COMMENTS
Octal games 4.103, 4.112 and 4.113 also have values a(n).
The sequence is eventually periodic with period 10. The last exception is at n=7.
REFERENCES
E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982; see Chapter 4, p. 104.
MATHEMATICA
Join[{1, 1, 1, 2, 2, 2, 0}, LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {4, 4, 2, 1, 1, 1, 2, 2, 2, 1}, 100]] (* Ray Chandler, Aug 26 2015 *)
PadRight[{1, 1, 1, 2, 2, 2, 0}, 120, {1, 1, 1, 2, 2, 2, 1, 4, 4, 2}] (* Harvey P. Dale, Apr 26 2018 *)
CROSSREFS
Sequence in context: A261444 A000091 A155123 * A215461 A158851 A151930
KEYWORD
nonn
AUTHOR
Richard Sabey, Jan 24 2007
EXTENSIONS
Extended by Ray Chandler, Aug 26 2015
STATUS
approved