login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A125922 Sprague-Grundy values for octal game .316. 0
1, 2, 0, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3, 2, 1, 2, 3, 0, 1, 0, 3, 0, 1, 2, 3 (list; graph; refs; listen; history; text; internal format)
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

Table of n, a(n) for n=1..99.

Index entries for linear recurrences with constant coefficients, signature (0, 1, 0, 0, 0, -1, 0, 1).

FORMULA

a(n)=(1/66)*{-4*(n mod 12)+18*[(n+1) mod 12]-15*[(n+2) mod 12]+7*[(n+3) mod 12]-4*[(n+4) mod 12]+18*[(n+5) mod 12]-4*[(n+6) mod 12]-4*[(n+7) mod 12]+7*[(n+8) mod 12]+7*[(n+9) mod 12]-4*[(n+10) mod 12]-4*[(n+11) mod 12]}-3*[C(n^2,n+2) mod 2], with n>=0 [From Paolo P. Lava, Oct 22 2008]

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

Sequence in context: A029222 A162350 A334305 * A283306 A182893 A206298

Adjacent sequences:  A125919 A125920 A125921 * A125923 A125924 A125925

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

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 8 11:48 EST 2021. Contains 341948 sequences. (Running on oeis4.)