MathDB
Colored grid

Source: Baltic Way 2023/6

November 11, 2023
combinatorics

Problem Statement

Let nn be a positive integer. Each cell of an n×nn \times n table is coloured in one of kk colours where every colour is used at least once. Two different colours AA and BB are said to touch each other, if there exists a cell coloured in AA sharing a side with a cell coloured in BB. The table is coloured in such a way that each colour touches at most 22 other colours. What is the maximal value of kk in terms of nn?