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

 

Logo

The OEIS is looking to hire part-time people to help edit core sequences, upload scanned documents, process citations, fix broken links, etc. - Neil Sloane, njasloane@gmail.com

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A004483 Tersum n + 2. 1
2, 0, 1, 5, 3, 4, 8, 6, 7, 11, 9, 10, 14, 12, 13, 17, 15, 16, 20, 18, 19, 23, 21, 22, 26, 24, 25, 29, 27, 28, 32, 30, 31, 35, 33, 34, 38, 36, 37, 41, 39, 40, 44, 42, 43, 47, 45, 46, 50, 48, 49, 53, 51, 52, 56, 54, 55, 59, 57, 58, 62, 60, 61, 65, 63, 64, 68, 66, 67 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

Tersum m + n: write m and n in base 3 and add mod 3 with no carries, e.g. 5 + 8 = "21" + "22" = "10" = 1.

Also Sprague-Grundy values for game of Wyt Queens.

REFERENCES

E. R. Berlekamp, J. H. Conway and R. K. Guy, Winning Ways, Academic Press, NY, 2 vols., 1982, see p. 76.

LINKS

Table of n, a(n) for n=0..68.

A. Dress, A. Flammenkamp and N. Pink, Additive periodicity of the Sprague-Grundy function of certain Nim games, Adv. Appl. Math., 22, p. 249-270 (1999).

FORMULA

Periodic with period and saltus 3: a(n) = 3[ n/3 ] + ((n+2) mod 3).

a(n)= -2 + Sum_{k=0..n}{1/3*(-2*(k mod 3)-2*((k+1) mod 3)+7*((k+2) mod 3)}, with n>=0 - Paolo P. Lava, Oct 26 2007

MATHEMATICA

a[n_] := If[Divisible[n, 3], n+2, n-1]; Table[a[n], {n, 0, 70}] (* Jean-François Alcover, Oct 25 2013 *)

CROSSREFS

This sequence is row 2 of table A004481.

Sequence in context: A163940 A112340 A037186 * A197808 A085650 A201910

Adjacent sequences:  A004480 A004481 A004482 * A004484 A004485 A004486

KEYWORD

nonn,easy

AUTHOR

N. J. A. Sloane.

EXTENSIONS

More terms from Erich Friedman.

Edited by N. J. A. Sloane at the suggestion of Philippe Deléham, Nov 20 2007

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 May 27 22:57 EDT 2017. Contains 287210 sequences.