Browse · MathNet
PrintBaltic Way 2023 Shortlist
Baltic Way 2023 counting and probability
Problem
Let be a positive integer. Each cell of an table is coloured in one of colours where every colour is used at least once. Two colours and are said to touch each other, if there exists a cell coloured in sharing a side with a cell coloured in . The table is coloured in such a way that each colour touches at most 2 other colours. What is the maximal value of ?


Solution
when and when . is possible by colouring diagonally as shown in the figure below and when , is possible by colouring each cell in a unique colour.
We consider the graph, where each node represents a colour and two nodes are linked, if the colours they represent touch. This graph is connected and since each colour touches at most 2 colours every node has at most degree 2. This means that the graph is either one long chain or one big cycle.
We now look at the case when is odd. Consider the cell in the center of the table. From this cell we can get to any other cell by passing through at most cells. Therefore from the node representing this cell, we can get to any node through at most edges. But if the graph has or more nodes, then for every node there is a node which is more than edges away. So we must have for all odd .
When is even we consider the 4 center cells. If they all have a different colour, then they form a 4-cycle in the graph, meaning the graph has only 4 nodes. If two of the center cells have the same colour, then from this colour you will be able to get to all other cells passing through at most cells. By same the arguments as in the odd case, we get for even .
So overall we have for and for as desired.
We consider the graph, where each node represents a colour and two nodes are linked, if the colours they represent touch. This graph is connected and since each colour touches at most 2 colours every node has at most degree 2. This means that the graph is either one long chain or one big cycle.
We now look at the case when is odd. Consider the cell in the center of the table. From this cell we can get to any other cell by passing through at most cells. Therefore from the node representing this cell, we can get to any node through at most edges. But if the graph has or more nodes, then for every node there is a node which is more than edges away. So we must have for all odd .
When is even we consider the 4 center cells. If they all have a different colour, then they form a 4-cycle in the graph, meaning the graph has only 4 nodes. If two of the center cells have the same colour, then from this colour you will be able to get to all other cells passing through at most cells. By same the arguments as in the odd case, we get for even .
So overall we have for and for as desired.
Final answer
k = 2n − 1 for n ≠ 2, and k = 4 for n = 2
Techniques
Coloring schemes, extremal argumentsGraph Theory