Browse · MathNet
PrintSingapore Mathematical Olympiad (SMO)
Singapore counting and probability
Problem
Colour a square grid using different colours with colour in each square. Two squares are neighbours if they share a vertex. A path is a sequence of squares so that successive squares are neighbours. Mark of the squares. For each unmarked square , there is exactly marked square of the same colour so that and are connected by a path of squares of the same colour. For any marked squares of the same colour, any path connecting them must pass through squares of all the colours. Find the maximum value of .
Solution
The maximum value is . Define a region as a maximal set of same-colour squares such that there is a path of the same colour between any squares in the region. From the first condition, there is exactly one marked square in a region and so there are regions. Two regions are neighbours if they have a vertex in common.
Now suppose that . Form a graph whose vertices are the regions and whose edges join neighbouring regions. Since there are only colours, there are regions with the same colour. Thus there is a path , with by the second condition. Consider the longest path in the graph: . Then . Suppose there is a vertex not in the path but is adjacent to a vertex in the path. Then , else there is a longer path. Consider the vertices where . Two of them have the same colour but their distance apart is , contradicting the second condition. So are all the regions and . Thus to move from a square in to a square in , where the index is taken mod , at least moves or moves (if ) are needed. (Here a move is moving from a square to a neighbouring square.) Also neighbouring squares belong to the same region or adjacent regions.
Let be the square in the centre of the grid. Since the squares in are mutually adjacent, for some . Take . Suppose the square in that is nearest to can move to in a minimum number of moves. Then, since that square can be in or , or .
There is a colouring that gives regions. Colour all the squares in row with colour if .
Now suppose that . Form a graph whose vertices are the regions and whose edges join neighbouring regions. Since there are only colours, there are regions with the same colour. Thus there is a path , with by the second condition. Consider the longest path in the graph: . Then . Suppose there is a vertex not in the path but is adjacent to a vertex in the path. Then , else there is a longer path. Consider the vertices where . Two of them have the same colour but their distance apart is , contradicting the second condition. So are all the regions and . Thus to move from a square in to a square in , where the index is taken mod , at least moves or moves (if ) are needed. (Here a move is moving from a square to a neighbouring square.) Also neighbouring squares belong to the same region or adjacent regions.
Let be the square in the centre of the grid. Since the squares in are mutually adjacent, for some . Take . Suppose the square in that is nearest to can move to in a minimum number of moves. Then, since that square can be in or , or .
There is a colouring that gives regions. Colour all the squares in row with colour if .
Final answer
20000
Techniques
Pigeonhole principleColoring schemes, extremal arguments