Baltic Way 2021 · Shortlist problem
Combinatorics
A directed graph has 2021 vertices located on a circle, 101 directed edges go from each vertex of to the next 101 vertices in the counter-clockwise direction. We wish to colour the edges in such a way that for any two vertices and one can choose a directed path from to in which no two edges have the same colour. What is the minimum number of colours needed?
When you’re ready
Review material becomes available with the next Daily.
Review
Topics
Colorings and configurations · Pigeonhole and extremal arguments · Graph theory
Solutions
Solution
Answer: colours.
Label the vertices along the cycle: . It is clear that the distance from to any of equals 1; the distance from to any of equals 2, etc. Therefore, the distance from to is the longest one, it equals 20.
E.g., for each , , let
and we colour the edges that go from vertices of in -th colour. The edges that starts in we colour in 21-st colour. It is evident that for any two vertices and we can choose a directed path from to that intersects each in at most one vertex (with the only one exception: we allow and to belong to the same set ). The edges of this path have pairwise different colours.
Assume that we can colour edges in 20 colours. Then consider a path that in each step jumps from the current vertex to . Here and henceforth we are considering addition modulo 2021. Since , this path is a Hamiltonian cycle .
For each the sub-path from to in consist of 20 edges and this is the shortest path from to . Since we have a colouring in 20 colours only, the edges of this path have 20 different colours. Thus the edge between and and the edge from to are of the same colour. Since , this means that all edges in have the same colour, a contradiction.