The Imomi archipelago consists of islands. Between each pair of distinct islands is a unique ferry line that runs in both directions, and each ferry line is operated by one of companies. It is known that if any one of the companies closes all its ferry lines, then it becomes impossible for a traveller, no matter where the traveller starts at, to visit all the islands exactly once (in particular, not returning to the island the traveller started at).
Determine the maximal possible value of in terms of .
Problem 1912
Official solution
Answer: The largest is .
We reformulate the problem using graph theory. We have a complete graph on nodes (corresponding to islands), and we want to colour the edges (corresponding to ferry lines) with colours (corresponding to companies), so that every Hamiltonian path contains all different colours. For a fixed set of colours, we say that an edge colouring of is good if every Hamiltonian path contains an edge of each one of these colours.
We first construct a good colouring of using colours.
Claim 1. Take . Consider the complete graph in which the nodes are labelled by . Colour node with colour (so the colours of the first nodes are and the last nodes have colour ), and for , colour the edge with the colour of the node . Then the resulting edge colouring of is good.
Proof. We need to check that every Hamiltonian path contains edges of every single colour. We first observe that the number of nodes assigned colour is . Since , we have
This implies that in any Hamiltonian path, there exists an edge between two nodes with colour . Then that edge must have colour .
We next show that for each , every Hamiltonian path contains an edge of colour . Suppose the contrary, that some Hamiltonian path does not contain an edge of colour . Then nodes with colour can only be adjacent to nodes with colour less than inside the Hamiltonian path. Since there are nodes with colour and nodes with colour less than , the Hamiltonian path must take the form
where denotes a node with colour , denotes a node with colour less than , and denotes an edge. But this is impossible, as the Hamiltonian path would not have any nodes with colours greater than .
Fix a set of colours, we now prove that if there exists a good colouring of , then . For , this is trivial, so we assume . For any node of and , we denote by the number of edges with colour incident with the node .
Lemma 1. Consider a good colouring of , and let be an arbitrary edge with colour . If , then the colouring will remain good after recolouring edge with any other colour.
Proof. Suppose there exists a good colouring together with an edge of colour , such that if is recoloured with another colour, the colouring will no longer be good. The failure of the new colouring being good will come from colour , and thus there exists a Hamiltonian path containing edge such that initially (i.e. before recolouring) is the only edge of colour in this path. Writing and , denote this Hamiltonian path by
where and .
In the initial colouring, we observe the following.
- The edge must have colour , since otherwise the path
has no edges of colour .
- Similarly, the edge must have colour .
- For each , at least one of the edges and must have colour , since otherwise the path
has no edges of colour .
- Similarly, for each , at least one of the edges and must have colour .
In the above list, each edge appears exactly once and also each edge appears exactly once (where and are counted separately). Adding up the contributions to , we obtain
This contradicts our assumption that .
Our strategy now is to repeatedly recolour the edges using Lemma 1 until the colouring has a simple structure. For a node , we define to be the largest value of over all colours .
Lemma 2. Assume we have a good colouring of . Let be two distinct nodes, and let be the colour of edge where . If
- and
- for some ,
then after recolouring edge with colour , the colouring remains good.
Proof. Note that
and so we may apply Lemma 1.
Lemma 3. Assume we have a good colouring of . Let be a nonempty set of nodes. Let be a node such that for all , and choose for which . Then after recolouring the edge with colour for all distinct from , the colouring remains good.
Proof. We repeatedly perform the following operation until all edges with have colour :
> choose an edge with that does not have colour , and recolour it with colour .
By Lemma 2, the colouring remains good after one operation. Moreover, increase by 1 during an operation, and all other may increase by at most 1 . This shows that will remain maximal amongst for . We will also have after the operation, since both sides increase by 1 . Therefore the operation can be performed repeatedly, and the colouring remains good.
We first apply Lemma 3 to the set of all nodes in . After recolouring, there exists a node such that every edge incident with has colour . We then apply Lemma 3 to the set of nodes excluding , and we obtain a colouring where
- every edge incident with has colour ,
- every edge incident with except for has colour .
Repeating this process, we arrive at the following configuration:
- the nodes of are labelled ,
- the node has a corresponding colour (as a convention, we also colour with ),
- for all , the edge between and has colour ,
- this colouring is good.
Claim 2. For every colour , there exists a such that the number of nodes of colour amongst is greater than .
Proof. Suppose the contrary, that for every , there are at most nodes of colour . We then construct a Hamiltonian path not containing any edge of colour . Let be the nodes with colour , where , and let be the nodes with colour different from , where . We have and , so . We also see that for all , because otherwise, will have nodes of colour and less than nodes of colour different from . Then we can construct a Hamiltonian path
that does not contain an edge with colour . This contradicts that the colouring is good.
So for every colour , there has to be an integer with such that there are more than nodes assigned colour amongst . Choose the smallest such for every , and without loss of generality assume
Note that the inequalities are strict by the definition of .
Then amongst the nodes , there are at least nodes of colour for all . Then
This inductively shows that
for all , and this already proves .
It remains to show that is not possible. If , then all inequalities have to be equalities, so and there must be exactly nodes of colour . Moreover, there cannot be a node of colour amongst , and so the set of nodes of colour must precisely be
Then we can form a Hamiltonian path
which does not contain an edge of colour . This is a contradiction, and therefore .