login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Sprague-Grundy values for octal game 4.102.
0

%I #8 Apr 26 2018 18:18:34

%S 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,

%T 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,

%U 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

%N Sprague-Grundy values for octal game 4.102.

%C Octal games 4.103, 4.112 and 4.113 also have values a(n).

%C The sequence is eventually periodic with period 10. The last exception is at n=7.

%D E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982; see Chapter 4, p. 104.

%H <a href="/index/Rec#order_10">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 0, 1).

%t 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 *)

%t 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 *)

%K nonn

%O 1,4

%A _Richard Sabey_, Jan 24 2007

%E Extended by _Ray Chandler_, Aug 26 2015