Skip to main content
OlympiadHQ

Browse · MathNet

Print

IMO2024 Shortlisted Problems

2024 counting and probability

Problem

Let be a positive integer. Given an board, the unit cell in the top left corner is initially coloured black, and the other cells are coloured white. We then apply a series of colouring operations to the board. In each operation, we choose a square with exactly one cell coloured black and we colour the remaining three cells of that square black.

Determine all values of such that we can colour the whole board black. (Peru)

problem


problem


problem


problem


problem


problem


problem


problem


problem


problem


problem


problem
Solution
Now we prove that if such a colouring is possible for then must be a power of 2. Suppose it is possible to colour an board where . Identify the top left corner of the board by and the bottom right corner by . Whenever an operation takes place in a square centred on , we immediately draw an "X", joining the four cells' centres (see Figure 4). Also, identify this by . The first operation implies there's an at . Since the whole board is eventually coloured, every cell centre must be connected to at least one X. The collection of all forms a graph .

Figure 4: L-trominoes placements corresponding to colouring operations (left) and the corresponding diagram (right).

## Claim 1. The graph is a tree. Proof. Since every operation requires a pre-existing black cell, each newly drawn apart from the first must connect to an existing . So all are connected to the first X and must be connected. Now, suppose has a cycle. Consider the newest X involved in the cycle, it must connect to previous at at least two points. But this implies the corresponding operation will colour at most two cells, which is a contradiction.

Note that in the following arguments, Claims 2 to 4 only require the condition that is a tree and every cell is connected to .

Claim 2. If there's an X at , then and . Proof. The inequalities are clear. Call an X at good if , or bad if . The first X at is good. Suppose some Xs are bad. Since is connected, there must exist a good connecting to a bad . But this can only occur if they connect at two points, creating a cycle. This is a contradiction, thus all are good.

Call an X at odd if , even if .

Claim 3. The integer must be even. Furthermore, there must be odd connecting the cells on the perimeter of the board as shown in Figure 5. Proof. If is odd, the four corners of the bottom left cell are and , none of which satisfies the conditions of Claim 2. So the bottom left cell cannot connect to any X. If is even, each cell on the edge of the board has exactly one corner satisfying the conditions of Claim 2, so the connecting it is uniquely determined. Therefore the cells on the perimeter of the board are connected to Xs according to Figure 5.

Figure 5: Highlighting the permitted points for (left) and on the perimeter (right).

Divide the board into blocks of squares. Call each of these blocks a big-cell. We say a big-cell is filled if it contains an odd on its interior, empty otherwise. By Claim 3, each big-cell on the perimeter must be filled.

Claim 4. Every big-cell is filled. Proof. Recall that can only be at with . Suppose a big-cell centred at is empty. Then in order for its four cells to be coloured, there must be four even Xs on and , "surrounding" the big-cell (see Figure 6).

By Claim 3, no empty big-cell can be on the perimeter. So if there exist some empty big-cells, the boundary between empty and filled big-cells must consist of a number of closed loops. Each closed loop is made up of several line segments of length 2, each of which separates a filled big-cell from an empty big-cell.

Since every empty big-cell is surrounded by even and every filled big-cell contains an odd , the two end points of each such line segment must be connected by . Since these line segments form at least one closed loop, it implies the existence of a cycle made up of (see Figure 6). This is a contradiction, thus no big-cell can be empty.

Figure 6: An empty big-cell surrounded by even (left) and the boundary between empty and filled creating a cycle (right).

Therefore every big-cell is filled by an odd , and the connections between them are provided by even Xs. We can now reduce the problem to an problem in the following way. Perform a dilation of the board by a factor of with respect to . Each big-cell is shrunk to a regular cell. For the Xs, replace each odd X at by the point , and replace each even at by an at .

We claim the new resulting graph of is a tree that connects all cells of an board. First, two connected in the original board are still connected after their replacements (noting that some have been replaced by single points). For each cell in the board, its centre corresponds to an odd from a filled big-cell in the original board, so it must be connected to the graph. Finally, suppose there exists a cycle in the new graph. The cycle consists of that correspond to even in the original graph connecting big-cells, forming a cycle of big-cells. Since in every big-cell, the four unit squares were connected by an odd , this implies the existence of a cycle in the original graph, which is a contradiction.

Thus the new graph of must be a tree that connects all cells of an board, which are the required conditions for Claims 2 to 4. Hence we can repeat our argument, halving the dimensions of the board each time, until we reach the base case of a board (where the tree is a single point). Therefore must be a power of 2, completing the solution.

---

Alternative solution.

As in Solution 1, it is possible the colour the whole board black for . The colouring operation is equivalent to the placement of -trominoes. For each -tromino we place on the board, we draw an arrow and a node as shown in Figure 7. We also draw a node in the top left corner of the board. Figure 7: Tromino with corresponding arrow and node drawn.

Claim 1. The arrows and nodes form a directed tree rooted at the top left corner. Proof. The proof is similar to the proof of Claim 1 in Solution 1, with the additional note that the directions of the arrows inherit the order of the colouring operations, so they must be pointing away from the top left node.

Note that since all edges of the tree are diagonal, the nodes can only lie on points with . This implies that we can only place down L-trominoes of one particular parity: that is, with the centre of the -tromino on a point with . In the remainder of the proof, we will implicitly use this parity property when determining possible positions of L-trominoes.

Next, we show that certain configurations of edges of the tree are impossible.

Claim 2. There cannot be two edges in a "parallel" configuration (see Figure 8). Proof. In such a configuration, the two edges can either be directed in the same direction or opposite directions. If they point in the same direction (see Figure 8), then the -trominoes corresponding to the two edges overlap. Figure 8: Parallel configuration (left) and two parallel edges, case 1 (right).

If they point in opposite directions, then we get the diagram in Figure 9. The cells marked () must lie inside the board, so they must be covered by L-trominoes. There is only one possible way to cover these with a L-tromino of the right parity. But this makes the arrows form a cycle, which cannot happen. So we have a contradiction. Figure 9: Two parallel edges, case 2.

Claim 3. There cannot be three edges in a "zigzag" configuration, shown in Figure 10. Figure 10: Zigzag configuration.

Proof. Assume for contradiction that there is a zigzag. Then take the zigzag with maximal distance from the root of the tree (measured by distance along the graph from the root to the middle edge of the zigzag).

We may assume without loss of generality that the middle edge is directed down-right. Then the right edge must be directed up-right, since no two arrows can point to the same node. Next, we draw in the corresponding L-trominoes, and consider the cell marked (). There are two possible ways to cover it with an L-tromino, because of the parity of L-tromino centres.

We could choose the centre of the L-tromino to be the top right corner of the cell (see Figure 11). This immediately gives another zigzag. Figure 11: Zigzag configuration, case 1.

The other possibility is if we choose the centre of the L-tromino to be the bottom left corner of the cell (see Figure 12). Then we need to cover the cell marked () with an L-tromino. If Figure 12: Zigzag configuration, case 2.

we placed the centre of the -tromino on the top left corner of the cell, this would give two parallel edges, contradicting Claim 2. So we must place the centre of the L-tromino on the bottom right corner of the cell, which gives a zigzag.

In each case, we get another zigzag further away from the root of the tree, which contradicts our assumption of maximality. So there cannot be any zigzags.

We now colour the nodes of the tree. Colour the root node yellow. For all other nodes, we colour it white if it has an arrow coming out of it in a different direction to the arrow going in, and black otherwise.

Claim 4. Any child of a black node is white. Figure 13: Black node configuration.

Proof. Suppose we have a black node with a child. Then the arrow exiting the black node must be in the same direction as the arrow entering it by the definition of our colouring, giving the left diagram of Figure 13.

The cell marked () must be covered by an L-tromino. If the centre of this L-tromino is the bottom left corner, then this would give an arrow leaving the black node in a different direction, which cannot happen. So the centre of the -tromino must instead be the top right corner, which gives an arrow leaving the upper node in a different direction. Thus the upper node must be white.

Claim 5. Every white node has three children, all of which are black. Figure 14: White node configuration.

Proof. Refer to Figure 14. Suppose we have a white node, as in the leftmost diagram. The cell marked () must be covered by an L-tromino. If the centre of this L-tromino is the bottom right corner of the cell, then this would form a zigzag, which by Claim 3 is not allowed. So the centre must be the top left corner.

Next, the cell marked () must be covered by an L-tromino. If the centre of this L-tromino is the top right corner, this would form a zigzag, so the centre must be the bottom left corner instead. Thus we have shown that any white node has three children.

Finally, note that if any of the child nodes had three children of their own, then this would give parallel edges in the diagram, which contradicts Claim 2. Therefore the child nodes of the white node must all be black.

We now know that the node colours alternate between black and white as you go down the tree, so all white nodes lie on points with coordinates , and all black nodes lie on points with coordinates .

Now (assuming ) we will construct a new board whose cells are squares of our current board. We replace the root node and its child with a single big cell and a big root node, Figure 15: Replacing with larger cells and -trominoes.

and we replace each white node and its three children with a big L-tromino, big arrow and big node as shown in Figure 15.

Every black node is the child of the root node or a white node, so every -tromino is involved in exactly one replacement. Also, the parent of any white node is a black node, whose parent, in turn, is a white node or the root. So the starting point of every big arrow will be on a big node. Therefore we obtain an -tromino tiling forming a tree.

This shows for that if an board can be tiled by L-trominoes forming a tree, then is even, and an board can also be tiled by L-trominoes forming a tree. Since a board can trivially be tiled, we conclude that the only values of for which an board can be tiled are .
Final answer
n is a power of 2

Techniques

Invariants / monovariantsColoring schemes, extremal argumentsRecursion, bijection