In some country several pairs of cities are connected by direct two-way flights. It is possible to go from any city to any other city by a sequence of flights. The distance between two cities is defined to be the least possible number of flights required to go from one of them to the other. It is known that for any city there are at most 100 cities at distance exactly three from it. Prove that there is no city such that more than 2550 other cities have distance exactly four from it.
Solution
Define to be the distance between cities and , and let
be the set of cities whose distance from city is exactly .
We proceed by contradiction: suppose there exists a city such that satisfies . Let . We say that a set is essential with respect to if and only if every city in can reach in 4 flights while passing through some city of along the way (for example, is of course essential with respect to itself.) In other words, every city of is at distance exactly 3 from some city of , that is, .
Consider an essential set with the smallest number of cities, and let . Since
there must exist a city such that (otherwise , a contradiction!). But by the hypothesis, ,
so contains at most cities whose distance from is at most 3. Let be the set of these cities, so we have .
We will now show that , thereby obtaining a contradiction. Take any , and let .
Since is minimal, for each there must exist a city such that any flight sequence connecting and must pass through . Therefore and can be connected in the form ; note that and (since is minimal.) Since , there are altogether cities of the form .
Lemma 1. All the 's and 's are distinct.
Proof: Since and , and must be different. Also, if but , then there would exist ; but this would contradict the way was originally constructed, so we must have . Similarly, if , then . Hence and give distinct cities.
Lemma 2. For each , one of and must be at distance 3 from , and therefore belongs to .
Proof: Since there is a flight sequence , . On the other hand, clearly . Moreover, by the choice of we know , so . Finally, note that , , , each differ from the next by at most 1, with the first term less than 3 and the last term greater than 3, so one of and must equal 3. This completes the proof.
Combining the two lemmas above, we know , which contradicts . Contradiction!