OFFSET
0,2
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.
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
F. Michel Dekking, Jeffrey Shallit, and N. J. A. Sloane, Queens in exile: non-attacking queens on infinite chess boards, Electronic J. Combin., 27:1 (2020), Article P1.52.
Andreas Dress, Achim Flammenkamp, and Norbert Pink, Additive periodicity of the Sprague-Grundy function of certain Nim games, Adv. Appl. Math., 22, p. 249-270 (1999).
Gabriel Nivasch, More on the Sprague-Grundy function for Wythoff’s game, pages 377-410 in "Games of No Chance 3, MSRI Publications Volume 56, 2009. See Table 1.
Index entries for linear recurrences with constant coefficients, signature (1,0,1,-1).
FORMULA
Periodic with period 3 and saltus 3: a(n) = 3*floor(n/3) + ((n+1) mod 3).
a(n) = n - 2*cos(2*(n+1)*Pi/3). - Wesley Ivan Hurt, Sep 29 2017
Sum_{n>=3} (-1)^(n+1)/a(n) = 1/2 - log(2)/3. - Amiram Eldar, Aug 21 2023
MATHEMATICA
LinearRecurrence[{1, 0, 1, -1}, {1, 2, 0, 4}, 70] (* or *) Table[3*Floor[n/3]+ Mod[ n+1, 3], {n, 0, 70}] (* Harvey P. Dale, Nov 29 2014 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
EXTENSIONS
More terms from Erich Friedman
STATUS
approved