login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A125923 Sprague-Grundy values for octal game .3337. 0
1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 0, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Octal games .226, .227, .236 and .237 have values a(n-1).

The sequence is eventually periodic with period 5. The last exception is at n=19.

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..104.

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

FORMULA

a(n)=(n mod 5)+1-5*{C((n+10)^4,n+12) mod 2}-4*{C((n+44)^6,n+46) mod 2}, with n>=0. - Paolo P. Lava, Sep 16 2007

MAPLE

P:=proc(n) local a, i, k; for i from 0 by 1 to n do a:=(i mod 5)+1-5*(binomial((i+10)^4, i+12) mod 2)-4*(binomial((i+44)^6, i+46) mod 2); print(a); od; end: - Paolo P. Lava, Sep 16 2007

MATHEMATICA

Join[{1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 0}, LinearRecurrence[{0, 0, 0, 0, 1}, {5, 1, 2, 3, 4}, 85]] (* Ray Chandler, Aug 25 2015 *)

CROSSREFS

Sequence in context: A010874 A278182 A125926 * A071513 A060511 A082853

Adjacent sequences:  A125920 A125921 A125922 * A125924 A125925 A125926

KEYWORD

nonn

AUTHOR

Richard Sabey, Jan 24 2007

EXTENSIONS

Extended by Ray Chandler, Aug 25 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 | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 18 15:55 EST 2018. Contains 317323 sequences. (Running on oeis4.)