August 2025 - Challenge
Alice and Bob play the following game: Given a grid of a\times b 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 4\times 6 grid, Alice has three possible moves that can split the grid into two 3\times 2 grids, three 4\times 2 grids, or six 4\times 1 grids. Bob can either create two 2\times 6 grids or four 1\times 6 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 1\times 6 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 1\times 1 grid, it's obvious that whichever player starts, loses. That's also true for any n\times n 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 1\times 2 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 1\times 2 grid has the value 1. Since adding a 2\times 1 grid to the game with a 1\times 2 grid "evens out" the game so that whoever starts by definition loses, we say the 2\times 1 grid has the value -1.
It can be verified that given a 2\times 8 grid, Alice wins whether she starts or not, and she still wins even if the game has two additional 2\times 1 grids. But if the game has three 2\times 1 grids, then the rule reverts back to whoever starts the game, loses. Since the value of each 2\times 1 grid is -1 and there are three of them, we say that the value of the 2\times 8 grid is 3.
- 1. 0 if whoever starts the game loses.
- 2. n (for n\in\mathbb{N}) if after adding n 2\times 1 grids to the game, whoever starts the game loses.
- 3. -n (for n\in\mathbb{N}) if after adding n 1\times 2 grids to the game, whoever starts the game loses.
Your goal: Find the value of f(a,b) for
a = 4323855975562114726518487102722055842514310244656547479 b = 470147284842004245175081008799131351685318626829460321
A bonus "*" will be given for finding the value of f(a,b) for
a = 3396061787351437365560785267965234012799064104044242529256561027187645
5409093065996282317126010161219412431254334813134471728518505247774471
40380830407565706177350759478762583119838528311717009
b = 7464746477226496222046301003339284704063450899406727072696371142567730
0099511708828335997683805844659240664138495004751184185917554576660019
30720494110499599758793660468148459835668058314279
We will post the names of those who submit a correct, original solution! If you don't want your name posted then please include such a statement in your submission!
We invite visitors to our website to submit an elegant solution. Send your submission to the ponder@il.ibm.com.
If you have any problems you think we might enjoy, please send them in. All replies should be sent to: ponder@il.ibm.com
Challenge:
31/07/2025 @ 10:00 AM EST
Solution:
05/09/2025 @ 12:00 AM EST
List Updated:
17/08/2025 @ 14:15 PM EST
*Lazar Ilic(31/7/2025 11:41 AM IDT)
*Bertram Felgenhauer(31/7/2025 5:11 PM IDT)
*Bobika Bo(31/7/2025 5:33 PM IDT)
*Sanandan Swaminathan(1/8/2025 3:44 AM IDT)
*Guangxi Liu(1/8/2025 8:32 AM IDT)
Paul Revenant(1/8/2025 4:02 PM IDT)
*King Pig(2/8/2025 6:05 AM IDT)
*Reiner Martin(3/8/2025 12:45 AM IDT)
*Matej Rebro & Elias Krainer(3/8/2025 2:53 PM IDT)
*Vladimir Volevich(4/8/2025 9:34 AM IDT)
*John Tromp(4/8/2025 4:32 PM IDT)
*Charles Pombet(5/8/2025 10:24 PM IDT)
*Liubing Yu(6/8/2025 6:44 AM IDT)
*Radu-Alexandru Todor(6/8/2025 12:23 PM IDT)
*Alex Teich(6/8/2025 6:08 PM IDT)
*Camden Chappelle(6/8/2025 6:53 PM IDT)
*Dan Dima(6/8/2025 11:34 PM IDT)
*Shirish Chinchalkar(7/8/2025 2:56 AM IDT)
*Daniel Bitin(8/8/2025 3:10 PM IDT)
*Loukas Sidiropoulos(8/8/2025 8:21 PM IDT)
*Prashant Wankhede(9/8/2025 6:12 AM IDT)
Alper Halbutogullari(9/8/2025 3:14 PM IDT)
*Peter Moser(9/8/2025 8:51 PM IDT)
*Stephen Ebert(9/8/2025 11:54 PM IDT)
*Lorenz Reichel(10/8/2025 2:44 PM IDT)
*Robert Berec(10/8/2025 5:14 PM IDT)
*Todd Will(12/8/2025 1:07 AM IDT)
*Motty Porat(12/8/2025 9:21 PM IDT)
*Dwij Mehta(13/8/2025 6:43 AM IDT)
*Jordan Payette(13/8/2025 3:21 PM IDT)
*Tim Walters(13/8/2025 8:37 PM IDT)
*Paul Lupascu(14/8/2025 3:20 PM IDT)<