Sprague-Grundy Values of Octal-Games

Introduction

These are special cases of Nim Games --- the so called Take-and-Break Games.
Given a heap of size n and two players who alternately have to make a move. On each turn a player must decrease the heapsize by a certain number and divide it possibly into several smaller heaps. The player who can't make a legal move, loses. Hence a heap of size 0 ist always lost and gets value G(0)=0. Generally a heap of size n has the value G(n) = min{ N0 \ Uj G(successor_positionj) } with j indicating all possible successor_positions.
The rule of these Take-and-Break Games is coded into a digit-string of the form d0.d1d2d3... where the i-th digit diindicates in how many non-empty heaps the chosen heap must be broken if its size was decreased by i.The digit di is interpretated as a binary-value, containing the two-power 2k if and only if the heap is allowed to be divided into k non-empty heaps. Octal-Games are a subset of these games, where both players has the same move options and are restricted at each move to dividing a heap into at most two parts, hence restricting any digit di to be atmost 1+2+4 < 8.
In the case of the range type (0) of the sparse space phenomenon, the set of these Sprague-Grundy-Values G(n) can be divided into a sparse set and its complement, called the common set. Values of the sparse set occur extremly rare, mostly only finite often. If these rare values die out then the infinte sequence of the G(n) must become periodic.
A value G(n) belongs to the sparse set (in the range) if and only if population_count( G(n) AND m) AND 1 = 0 for a fixed game specific bitstring m.

Nontrivial Octal-Games with at most 3 digits


Game sgv-sequence type bitstring rare last max n max G index lost depth period preperiod except
Grundy's0001021021021321... 0 0111111111111... 1284 48399022 235 297 21544358589 42 50248198
.60012012312340342... 0 0111011111111... 1584 20627 229 325 19739543 14 800268
.040000111220331110... 0 0001110111111... 22476 5029984 225 1401 6193904 38
.060001122031122334... 0 ? 224 22097 16360327 37
.140100102122104144... 0 0011111111111... 1896 178727 230 84 29317530 172 576735
.160100122140142140... 0 0111111111111... 53 13935 - 23 229790 7 21577 149459 105351 16
.360102102132132430... 0 0111111111111... 516 11798 231 208 1762187846 14 15034
.370120123123403421... 0 0111011111111... 1584 20626 229 325 19739542 14 800268 ?
.560102241132446621... 0 1101101111111... 46 1795 - 64 22778 2 7405 144 326640 26
.640012341532154268... 0 0111110111111... 488 156751 231 262 1911635806 2 470403814
.740101232414623215... 0 1101101111111... 1386 15929 228 512 76103606 2 61701
.760102341623416732... 0 0000000110011... 219248 5208068 224 16814 4995486 2
.0040000011112220333... 0 0001111111111... 184854 15869181 225 6063 22057995 32
.0050001011222033411... 1 1110101001011... 67585 33367128 225 1059 3022366 -
.0060000111222033111... 0 0000000101111... 470413 16772624 224 6532 4798522 40
.0070001112203311104... 0 0001110111111... 22476 5029983 225 1401 6193903 37
.0140010010122123401... 0 0111111111111... 2037 64126 228 365 169860345 13 126438
.0150011010212230142... 0 0111111111111... 237 11973 232 101 2350397235 7 27036
.0160010122201014422... 0 0010111111111... 21433 33457194 225 1073 14005282 18 12796554
.0240001122304112532... 0 ? 224 6346 16661816 26
.0260001122304112533... 0 ? 224 26277 16384728 27
.0340011022314014312... 0 1111111111111... 1079 374473 228 256 26376 10 451566
.0540010122234411163... 0 1011111111111... 38 796 - 41 33671802 3 16284 10015179 193235616 18
.0550011122231114443... 0 1111111111111... 6 43 - 8 51 2 20 148 259 2
.0640001122334115533... 0 0111111111111... 6763 1985471 226 522 1564635 3 671345
.1040100010221224104... 1 1110111111111... 20 284 - 29 186892397 - 4178 11770282 197769598 9
.1060100012221440106... 1 1011011111111... 15 1103 - 31 1937780317 - 15343 328226140474 465384263797 25
.1140110011202120411... 0 1111111101111... 100891 33547932 225 1610 20501458 11
.1250102110213011302... 0 ? 224 44496 16775217 145
.1260100213321042503... 1 0111001110001... 20441 47561551 226 2222 265978 - 30945308
.1270102210441220144... 1 1000001111111... 693 27106 - 56 24734 1190 13551 4 46578 11
.1350112011203110312... 0 ? 224 27960 16768149 91
.1360110021302110223... 0 ? 224 25272 15750407 40
.1420100222110332410... 1 1100011101111... 1357 117323 229 428 232063111 - 206875
.1430101222010422150... 0 1011111111111... 9417 2561883 225 148 26789789 13 3047015
.1460100222411133244... 0 1010111111111... 5817 307166 226 1503 35627410 3 287231
.1560110222441113224... 0 1101111111111... 15 357 - 23 1032 2 243 349 3479 8
.1620100223110422610... 0 ? 224 41410 16639694 44
.1630102231042261042... 0 0001110111111... 2567456 224 26698 16760626 417
.1640100122344511632... 0 0000011001111... 333812 16657862 224 20543 3402756 3
.1650102132134436231... 0 1101111111111... (17#+87) - - 25 620 2 2597 1550 5181 4
.1660100223411662244... 0 1011111111111... 176 4281 232 173 3561617983 3 11601
.1670102234116224411... 0 1011111111111... 60 1303 234 64 332129728 2 6456
.1720110223011322440... 0 1011001111111... 2352 51381 228 371 148127401 10 >68816
.1740110213221445642... 0 1101111111111... 57 674 233 81 1790786969 2 9730
.2040010120101231212... 1 0101110111111... 2245 83860 229 445 38455 - 108594
.2050012010123123134... 1 1110010111111... 112 33944004 233 91 3114909246 - 61547715
.2060010123201012323... 0 0011011111111... 10339 5668113 225 775 19151861 19 7318154
.2070012120301245312... 1 0110100111111... 154 433920 232 122 1515503122 - 707475
.2240012012312314304... 0 0000001111111... 1620812 224 25035 16678174 26
.2440010123234515673... 0 1000111111111... 65367 7596617 224 6654 9117412 3 4806659
.2450012123451567321... 0 0101111111111... 151 1352 232 139 959264562 2 40663
.2640012345163251867... 0 1001111111111... 1992 46544 229 946 488110831 2 205974
.3240102130134023421... 1 1110010111111... 126 129608 235 109 7776114395 - 386895
.3340120120312312435... 0 0000100101111... 2781793 224 22528 15585922 47
.3360120312403120341... 0 0011111111111... 223 53899 232 90 1751207041 14 152225
.3420101232010323450... 0 ? 224 19797 16777215 68
.3440101232451462321... 0 0011111111111... 8679 313574 226 1347 1158568 2 307675
.3460101232451672321... 0 ? 224 76376 16123562 2
.3540120124312352435... 0 1111110111111... 132 3227 - 113 1152 2 705 1180 10061916 44
.3560120212451675128... 0 1101111111111... 7 43 - 19 86 2 19 142 7315 2
.3620102341023415237... 0 0011111111111... 529 43110 230 129 801102440 11 204465
.3640102132134534231... 0 1111011111111... 977 13573224 229 564 6784 2 94736011
.3660102345162345768... 0 0111111111111... 827 643528 230 533 609293376 2 1028045
.3710123103240234012... 0 0000001110111... 1480278 224 16408 16191950 42
.3740120124312352435... 0 0111111111111... 246 2354 231 224 964461549 2 5775
.3760120312435243514... 0 0111111111111... 510 1140540 - 176 341612 2 505866 4 2268248 42
.4040001122334115633... 0 1101101011111... 369 8024 230 260 318107779 7 2619718
.4140011022344011322... 0 ? 224 114502 15435401 21
.4160011223411663221... 0 1010111111111... 1014 10965 228 712 27273329 3 9563
.4440001122334115633... 0 1101111111111... 364 72416309 230 208 90173476 3 49267914
.4540011223411663221... 0 1011111111111... 17 124 - 41 14456117 2 4858 60620715 160949019 16
.5640102244113254768... 0 0110011111111... 1687 13275 228 1459 139723698 2 15454
.6040012012312345345... 0 ? 224 102404 16775619 15
.6060012340123451234... 0 0111111111111... 41738 33451663 225 1031 9556435 18
.644001234516325896a... 0 0111111111111... 31 511 - 64 333 2 604 442 3256 32
.7440101232451672321... 0 0011011111111... 876 11268 230 733 382560700 2 34803
.7640102345162345768... 0 0111001111111... 12078 941007 225 4978 21751262 2 1221585
.7740123145671328954... 0 0101111111111... 352 3519 231 257 3285 1 8096
.7760123416321674581... 0 1001111011111... 503 7348 230 296 5487 1 18381
.6111...0012312341321461... 0 1011111111111... 171 2026 232 69 731712669 2 12928309

legend:

Game
name of the game
sgv-sequence
the sequence of the G-values starting from size n=0
type
kind of sparse space phenomenon: 0 = in range / 1 = in domain (sparse-position-space)
bitstring
bit-mask describing the sparse space
rare
number of known rare values / size of sparse set
last
largest known index of a rare value
max n
maximum searched n
max G
maximal found value g(n)
index
index of known maximum
lost
nunber of known lost values (g(n)=0)
depth
maximal number of last values for computing next value
period
minimal period (length)
preperiod
minimal preperiod (length)
except
last exceptional value
miss
number of values in the preperiod not covered by the period values
auto
shift < period length of maximal autocorrelation of the sg-sequence
correl
maximal autocorrelation coefficient (shift is given by auto)
length
length/depth (<= last+t) of the MEX-shift register to simulate the game after the last rare value has occured

Nontrivial Octal-Games with known Structur

Game period* preperiod* miss density rare last+t max Gdepthautocorrelsolved
.156 349 3479 1919 0.551615360 2324366 0.8367 1967
.055 148 259 129 0.4980646 82028 0.8378 1976
.644 442 3256 2208 0.678131514 64604207 0.7285 1976
.356 142 7315 6419 0.8775746 191926 0.9155 1976
.165 1550 5181 251 0.0484- 252597620 0.9277 1976
.127 4 46578 15622 0.335469327109 5613551- 0.0000 1988-10-??
.56 144 326640 291858 0.8935461797 64740559 0.6042 1988-10-??
.16 149459 105351 3634 0.0345531393723215773 0.9148 1988-10-??
.376 4 2268248 1104157 0.48685101140543 176505866- 0.0000 1988-10-??
.454 60620715 160949019 147240872 0.914817127 41485898 0.3424 2000-12-31
.104 11770282 197769598 163669736 0.827620287 29417812 0.4993 2001-07-01
.106 328226140474 465384263797 151106 3115343152 0.3548 2002-05-21
.054 10015179 193235616170776546 0.883838799 4116284108 0.5809 2002-05-27
.354 1180 100619167912461 0.78641323230 113705193 0.7517 2002-05-28
*the length of the minimal (pre) period is given

To prove a period length p of such a game computationally, it is sufficient to verify the equation G(i+p) = G(i) only for t+ max { last, depth } many successive sg-values with t the largest index of a non-zero digit of the game's name (in the case of a sparse position space p should be even).
There are still 8 and 55 unsettled 2-digit- respectively 3-digit-octal games (and Grundy's Game and 0.6111...).

Remark: if there are only finitely many rare values, the game will become ultimatively periodic. For a given octal game, let a denote the number of digits which allows a take remaing still something, i.e. the number of digits containing 2, and let b denote the number of digits which allows a break in two heaps, i.e. the number of digits containg 4. Each rare value can prohibit a common value. Thus if all the, say s, rare values cover different (and the smallest) common values for all the move options, then at last the a+s*b+1 common value must be the sg-value. For a given mask m having the unique 1-complement representation 2n-1(2k-1)+1with n,k positive integers, there are at most 2n successive rare respectivley common values (n-1 is the number of successive lowest 0-bits in m). So we get a quantitive upper bound for the maximal occuring sg-value. Thus, the mex-rule can be considered as a shift-register of length largest rare index + t and its sum of period length and preperiod length must be bounded by (a+s*b+1)last+t.

Corrections in Winning Ways Chapter 4

(1st and 2nd edition, german& english)

Further informations on the 0.00...007 games

Game bitstringrarelastmax nmax Gindexlost
.017 ----986*
.027 0001110111...2247650299832251401619390337
.037 0001111111...18457039485122225774292528231
.047 ?> 812000 2215913208450429
.057 0111101011...805259651422613065516970521
.0670001001111...349058242860223868811037420
.077?> 687000 2214128205800723
.0870111111111...4196136991742266285588109921
.0970111111111...1594278631522514631205174223
.01070111110111...> 37864020969852215462206770925
.01170111111101...13833141942082222187292636824
.01270111111111...91442581842269453488685026
.01370111111011...18418334592532259792682440727
.01470111111101...8954602415022612162795519128
.01570111111100...18181741218312224134303138429
.0167?> 712000 2214331207977230
.01770111111111...5498183804372232226438421130
.01870111111111...1288624194210222244084556831
.01970111111111...4243046091072232876125305133
.02070111111111...> 37065120971502215136209600434
.02170111110110...> 24690341942802222822418085834
.02270111111111...6380321268332234096416005137
.0237011111111010> 27777920971452216220204820637

References

E.R. Berlekamp, J.H. Conway, and R.K. Guy, Winning Ways -- for Your mathematical Plays, Vol. 1, Chap. 4, Academic Press 1982.
A. Gangoli and T. Plambeck, A Note on Periodicity in Some Octal Games, pp. 311-320, International Journal of Game Theory V 18 (1989)
Richard K. Guy, Unsolved Problems in Combinatorial Games, pp. 475-491, in Games of No Chance, ed. R. Nowakowski, MSRI Publications Vol. 29, 1996
E.R. Berlekamp, J.H. Conway, and R.K. Guy, Winning Ways -- for Your mathematical Plays (2nd Edition), Vol. 1, Chap. 4, A.K. Peters, 2001.
Combinatorial Game Theory
Listing of these at most 3-digit Octal Games sorted by size of sparse space
Listing of these at most 3-digit Octal Games sorted by largest index of a rare value
Listing of these at most 3-digit Octal Games sorted by maximal size of nim-value
Study the increase of the maximum as n climbs
Listing of these 3-digit Octal Games sorted by size of sparse position space



URL created 2000-12-??
last updated 2006-09-15
Achim Flammenkamp