
© Joey Nuri Schönnagel, MATH+
Author: Matthew Maat (Universiteit Twente)
Project: Combining algorithms for parity games and linear programming
Challenge
Before the wise men embark on their journey westwards, they spend a long time deliberating the perfect gifts to present to the newborn king. They come up with many ideas which they quickly discard. Some of them are:
- A hammer and nails for a carpenter
- A set of baby clothes
- A voucher for a local toy store
- An Eastern puzzle box they found in the attic
In the end, they settle on gold (for a king), frankincense (for a god), and myrrh (oil for a burial). However, they still have not solved the puzzle box. Let’s do that now!
The puzzle box consists of a grid of 9\times9 squares surrounded by a wall, and of identical marbles that can be placed in the box and fit exactly into one grid square. The box can be tilted either left or down.
If the box is tilted to the left, then all the marbles start rolling left until they are stopped by the wall or by another marble. For example, if we tilt the box left for the situation in Figure 1, then all marbles will roll to the leftmost column. If instead a row would contain, say, three marbles, then after tilting the box left these three marbles will always occupy the three leftmost squares of that row.
We can also tilt the box downwards. Then the marbles will roll down until they hit the wall or are stopped by another marble. If we tilt the box down for the situation in Figure 1, then all marbles will go to the bottom row.

Figure 1: A grid with marbles.
Now suppose we start with a configuration C of marbles in the box. (A configuration is determined by the number of marbles and their respective positions in the box.) Let’s call the configuration that we get after tilting the box left L, and let LD be the configuration we get after tilting configuration L down. Similarly, let D be the configuration after tilting C down, and DL the configuration after tilting D left.
For example, if C is the configuration from Figure 1, then L is the configuration with 9 marbles in the leftmost column. Then tilting L down has no effect, since the marbles cannot move down: so LD is also the configuration with 9 marbles in the leftmost column. Analogously, D as well as DL is the configuration with 9 marbles in the bottom row. Of course, in this case LD is different from DL.
We could try to add marbles to the initial configuration from Figure 1 to achieve LD = DL. Is it possible to add marbles to the configuration in Figure 1 to make sure LD is the same as DL? (Of course, we can only place the marbles inside the squares in the grid, and stacking marbles is also forbidden.) If so, which of the following intervals contains the smallest possible number k of added marbles to achieve this?
Possible Answers
- k < 10
- 10 \leq k < 15
- 15 \leq k < 20
- 20 \leq k < 25
- 25 \leq k < 30
- 30 \leq k < 35
- 35 \leq k < 40
- 40 \leq k < 45
- k \geq 45
- It is not possible to add marbles to C to make LD equal to DL.