Colored grid
Source: Baltic Way 2023/6
November 11, 2023
combinatorics
Problem Statement
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 different 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 other colours. What is the maximal value of in terms of ?