Ponder This Challenge - October 2026 - The Ultimate Ultimate Tic-Tac-Toe Game
- Ponder This
This puzzle was suggested by Sanandan Swaminathan - thanks!
A game show is arranged as follows: The main attraction is a wheel that has buttons equidistant from one another, such that the wheel looks perfectly symmetric.
Each button has two possible states: "on" and "off". There's no indicator to the status of a button, and each press toggles between those two states ("on" -> "off" -> "on" and so forth). At the beginning of the game, the buttons have random states with the one condition that not all buttons are "on".
On each turn, the wheel spins randomly without the contestant looking; the buttons are marked with beginning at the top-left button and going clockwise. The contestant picks a subset of the buttons and pushes them. After the contestant is done, two things can happen:
The contestant's goal is to find a strategy that guarantees winning in the least number of rounds, even if the game cheats and the spins of the wheel are not random.
The choices of the contestant can be described by a sequence of natural numbers. Rounds are separated by 0, and each round contains the numbers of the buttons pressed by the contestant.
For example, the following is an optimal solution for the case :
1,2,0,1,0,1,2,0
If both buttons were "off" at the beginning, the game is won after the first round. Otherwise, after the second round both buttons have the same state, so after the third round, the contestant has certainly won the game.
Summing up the numbers in the solution, we arrive at the value . If, in the middle round, we would have used 2 instead of 1, we'd reach the value . We are interested in the minimum value that can be obtained from an optimal solution: We call this the "optimal solution sum" for .
Your goal: Find the optimal solution sum for .
A bonus "*" will be given for finding the optimal solution sum for .
The numerical solutions are:
Solving the game by hand for is a good way to obtain a feel to the way a general solution works. Encode each state of the table as an element of , i.e. a sequence of 0 and 1 of length 4 (let 1 denote an off switch so that the goal is to reach ). At each step we maintain a set of the states we know the table cannot be in. At the beginning, .
At each turn, if we model our presses as a binary sequance (where 0 is "no click" an 1 is "click"), the first of all . If we choose wisely, it will be equal to a state not present in , and this will result in either winning the game or adding to , and a wise choice of would guarantee that at this stage, is closed to rotations, otherwise we'll lost some of its elements and won't be able to achieve and optimal solution. This forces the first few steps to be:
The pattern that emerges is intuitively this: Each element of has some "degree of symmetry" (which will be precisely defined later), with being on top, afterwards and , then and so on. If we denote the degree of symmetry of by with , we have in general elements of degree of symmetry (also denote ).
The main result about the degree of symmetry is that if for all then all the elements of would have degree . Also observe that the set of all elements of a specific degree of symmetry is closed under rotations. So a valid strategy (which can be shown to be optimal) is this: First make contain all the elements of degree higher than , then add the least costly element of degree . Since the number of all elements of degree is equal to the number of elements of degree (when is a power of 2), and since adding an element is bijective, this ensures we'll end up with the set of all elements of degree , and then proceed recursively since adding elements of degree higher than won't affect the elements of degree .
The same thing can be done for a general which is a power of 2, not only for .
For a precise definition of , one can consider the ring , where we think of the elements of a table state as the coefficients of the polyonmials. A beneficial property of this ring is that multiplication by is the same as a single rotation of the state, thus converting a combinatorial problem into an algebric one. In this ring, denote . Now, every element of can be uniquely represented as where (i.e. the element is a polynomial whose monom of minimal degree is ). Then is the for that element (it remains to prove all the nice properties of hold).