The Kingdom of Moles
Source: 2023 Japan TST p12
July 21, 2023
combinatorics
Problem Statement
The Kingdom of Moles consists of cities, and there are several tunnels connecting different pairs of cities. Each tunnel allows bidirectional travel, and there is at most one tunnel connecting any two distinct cities. Furthermore, it is possible to travel between any two distinct cities through a combination of several tunnels.A pair of distinct cities is considered good if it satisfies the following condition for any city different from and :Let be the minimum number of tunnels required to travel from to , and let be the minimum number of tunnels required to travel from to . For any such pair , it is guaranteed that regardless of the paths and chosen to travel from to (using tunnels) and from to (using tunnels), respectively, and do not share any common tunnel.Find the second largest possible value for the number of good pairs of cities. Note that the pairs and are considered the same combination.