Ponder This Challenge - February 2026 - Blot-avoiding backgammon strategy
- Ponder This
Alice and Bob play the following game: Given a grid of squares, if it is Alice's turn, she uses vertical cuts to split the grid into two or more grids of the same size; if it's Bob's turn, he does the same with horizontal cuts. The cuts can be performed only on the edges of the grid squares, not on the squares themselves.
For example, given a grid, Alice has three possible moves that can split the grid into two grids, three grids, or six grids. Bob can either create two grids or four grids:
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 grids and it's Bob's turn, Bob loses since he has no move that will split an existing grid into two or more grids.
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 grid, it's obvious that whichever player starts, loses. That's also true for any grid. We give the following definition: A position in the game has the value 0 if whichever player starts, loses.
For the case of a grid, it's obvious that if Bob starts, he loses, but if Alice starts, she wins since there is one move available to her, after which the game goes to a position of two value-0 grids. In this case, we say the grid has the value 1. Since adding a grid to the game with a grid "evens out" the game so that whoever starts by definition loses, we say the grid has the value .
It can be verified that given a grid, Alice wins whether she starts or not, and she still wins even if the game has two additional grids. But if the game has three grids, then the rule reverts back to whoever starts the game, loses. Since the value of each grid is and there are three of them, we say that the value of the grid is 3.
In general, the value of an grid, denoted , is
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 for
a = 4323855975562114726518487102722055842514310244656547479
b = 470147284842004245175081008799131351685318626829460321
A bonus "*" will be given for finding the value of for
a = 3396061787351437365560785267965234012799064104044242529256561027187645
5409093065996282317126010161219412431254334813134471728518505247774471
40380830407565706177350759478762583119838528311717009
b = 7464746477226496222046301003339284704063450899406727072696371142567730
0099511708828335997683805844659240664138495004751184185917554576660019
30720494110499599758793660468148459835668058314279
August 2025 Solution:
The solutions for the main and bonus question are
6608
16904
This riddle touches upon the fascinating subject of combinatorial game theory, which is presented in a delightful manner in the book "Winning Ways for Your Mathematical Plays " by Berlekamp, Conway and Guy, which also includes the game presented in the riddle (referred to as "Maundy Cake") and credits Patrick Mauhin for its invention and solution. The numbers in the riddle were chosen such that a general knowledge of computing the value of a game (an interesting and non-trivial problem by itself, explained in great detail in the book) suffices for the main riddle, but for the bonus a more problem- specific solution is required.
The method is as follows: given a number we can form a chain where every number is obtained from the previous one by dividing it by its smallest prime factor. For example, if we obtain the chain .
Now, given a grid form the chains for . If the chains are of equal length, the value of the game is 0. Otherwise, in the longer chain, sum the surplus values.
For example, if while , we obtain the chains
630, 315, 105, 35, 7, 1
75, 15, 1
Thus Alice wins, with value . The chains are easy to compute given the factoring of ; in this riddle, the factors were chosen among the first 2,000 primes to make brute-force factoring feasible.