login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Sprague-Grundy values for octal game .145.
0

%I #5 Aug 26 2015 10:46:49

%S 1,0,1,1,2,2,2,2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,2,2,

%T 2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,

%U 2,2,2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,2,2,2,4,1,1,1,1,2,2,2,2,4,1,1

%N Sprague-Grundy values for octal game .145.

%C The sequence is eventually periodic with period 9. The last exception is at n=2.

%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_09">Index entries for linear recurrences with constant coefficients</a>, signature (0, 0, 0, 0, 0, 0, 0, 0, 1).

%t Join[{1, 0},LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 1},{1, 1, 2, 2, 2, 2, 4, 1, 1},99]] (* _Ray Chandler_, Aug 26 2015 *)

%K nonn

%O 1,5

%A _Richard Sabey_, Jan 24 2007

%E Extended by _Ray Chandler_, Aug 26 2015