OFFSET
1,4
COMMENTS
Note this has offset 1 whereas A323473 has offset 0.
LINKS
Grant Cairns, Nhan Bao Ho, and Tamás Lengyel, The Sprague-Grundy function of the real game Euclid, Discrete Mathematics 311.6 (2011): 457-462. See Table 2.
FORMULA
G_G(n,k) = floor( |n/k - k/n| ).
EXAMPLE
Array begins:
0, 1, 2, 3, 4, 5, 6, 7, 8, ...
1, 0, 0, 1, 2, 2, 3, 3, 4, ...
2, 0, 0, 0, 1, 1, 1, 2, 2, ...
3, 1, 0, 0, 0, 0, 1, 1, 1, ...
4, 2, 1, 0, 0, 0, 0, 0, 1, ...
5, 2, 1, 0, 0, 0, 0, 0, 0, ...
6, 3, 1, 1, 0, 0, 0, 0, 0, ...
7, 3, 2, 1, 0, 0, 0, 0, 0, ...
8, 4, 2, 1, 1, 0, 0, 0, 0, ...
...
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
N. J. A. Sloane, Jan 29 2019
STATUS
approved