PUZZLE IBM-328
A grid-cutting game
IBM Research · Ponder This · 2025-08
IBM Ponder This #328 · August 2025
Alice and Bob play the following game: Given a grid of
For example, given a

In the general game, Alice and Bob alternate turns. There can be several grids in play at once, and during each turn, the player chooses a grid and cuts it according to the above rules, replacing the grid with their newly created ones. A player loses if it’s their turn and they cannot cut any grid. For example, if the game consists of four
We assume that Alice and Bob play optimally. Since this game satisfies the conditions of Zermelo's theorem, we can state with confidence that a player will win or lose given the position and that player’s method of play.
In the case of a single
For the case of a

It can be verified that given a
In general, the value of an
-
0 if whoever starts the game loses.
-
(for ) if after adding grids to the game, whoever starts the game loses. -
(for ) if after adding grids to the game, whoever starts the game loses.
Your goal: Find the value of
a = 4323855975562114726518487102722055842514310244656547479
b = 470147284842004245175081008799131351685318626829460321
A bonus "*" will be given for finding the value of
a = 3396061787351437365560785267965234012799064104044242529256561027187645
5409093065996282317126010161219412431254334813134471728518505247774471
40380830407565706177350759478762583119838528311717009
b = 7464746477226496222046301003339284704063450899406727072696371142567730
0099511708828335997683805844659240664138495004751184185917554576660019
30720494110499599758793660468148459835668058314279
Solution
Best opened after a real attemptTo be added.