Olympiad Maths Prep

Library / /44 of 45

Combinatorics Difficulty 7.8 National olympiad, round 2 Prove it Ukraine

In a far, far galaxy there are 225 inhabited planets. Between some pairs of inhabited planets there is a two-way space connection, and from each planet you can get to any other planet (possibly with several transfers). The influence of a planet is defined as the number of other planets with which this planet has a direct connection. It is known that if two planets are not connected by a direct space flight, then they have different influence. What is the smallest number of connections possible under these conditions?

Solution

Let's reformulate this problem in terms of graphs. Planets are vertices of the graph, direct flights are edges. It is known that in any graph, any two vertices that are not connected by an edge have different degrees. The question is how many edges can be in such a graph, the number of vertices being irrelevant. First, let's prove the following lemma.

Lemma 1. In a graph, there are no more than k+1k + 1 vertices of degree kk for any natural number kk.

*Proof.* By contradiction. Let MM be a set of at least k+2k + 2 vertices, each of which has degree kk. If at least two vertices in MM are not connected, then the condition of the problem is violated. Thus, every two vertices in MM are connected. But then the degree of each vertex is at least k+1k + 1, which contradicts the condition. This contradiction completes the proof.

*Lemma proved.*

Lemma 2. For any natural number k3k \ge 3, if the minimum number of edges in a simple graph, then there are at most kk vertices of degree kk.

*Proof.* By contradiction. From the previous lemma, there can be at most k+1k + 1 vertices of degree kk. If there are fewer than k+1k + 1, then the statement is proven. Suppose that for some kk, there exists a vertex of degree k+1k + 1. But then they are all connected to each other and there are no other vertices in the graph. Thus, we have a complete graph on (k+1k + 1) vertices.

Now consider a complete graph on kk vertices and one vertex connected to one of the kk vertices. Then, there is one vertex of degree 1, one vertex of degree kk, and k1k - 1 vertices of degree k1k - 1. Thus, the vertices not connected to the added vertex have different degrees. Let's count the number of edges for both cases. For the complete graph on (k+1k + 1) vertices, there are 12k(k+1)\frac{1}{2}k(k + 1) edges, and for the second case, a complete graph on kk vertices with an additional edge, there are 12(k1)k+1\frac{1}{2}(k-1)k + 1 edges.

Then,
k(k+1)2>(k1)k2+1k2+k>k2k+2k>1, \frac{k(k+1)}{2} > \frac{(k-1)k}{2} + 1 \Leftrightarrow k^2 + k > k^2 - k + 2 \Leftrightarrow k > 1,
so the number of edges has decreased. This contradiction completes the *proof of the lemma*.

Lemma 3. If we decrease the degree of at least one vertex in a graph, the total number of edges will decrease.

*Proof.* It is sufficient to recall the formula for the sum of the degrees of all vertices SS and the number of edges RR. Clearly, S=2RS = 2R. Therefore, if SS decreases, RR also decreases.

*Lemma proved.*

Thus, let us assume we have 225 vertices. We will find a value of kk for which the following inequality holds:
1+2++k=k(k+1)2225<1+2++k+(k+1)=(k+1)(k+2)2. 1 + 2 + \cdots + k = \frac{k(k+1)}{2} \le 225 < 1 + 2 + \cdots + k + (k+1) = \frac{(k+1)(k+2)}{2}.
This value of kk is 20. Let
l=225(1+2++k)=225210=15. l = 225 - (1 + 2 + \cdots + k) = 225 - 210 = 15.
Then for the minimum number of edges, we should have 1 vertex of degree 1, 2 vertices of degree 2, ..., kk vertices of degree kk. For the remaining ll vertices, there are several options. The smallest number of edges would be if all these vertices had degree k+1k+1. But then the total number of edges leaving each vertex would be:
L=11+22++2020+1521=3185. L = 1 \cdot 1 + 2 \cdot 2 + \cdots + 20 \cdot 20 + 15 \cdot 21 = 3185.
In this count, each edge is counted twice, so this number should be even. Since this number is odd, the minimum number of edges should be 12(L+1)=1593\frac{1}{2}(L+1) = 1593. For this case, there should be 14 vertices of degree 21 and 1 vertex of degree 22. It remains to show that such a situation is possible.

In this way, we should have 1 vertex of degree 1, 2 vertices of degree 2, ..., 20 vertices of degree 20, 14 vertices of degree 21, and 1 vertex of degree 22. It remains to construct an example of a graph that satisfies the conditions of the problem. First, we build complete graphs for vertices of degree 2, 3, ..., 20. Then we build a complete graph for the remaining 15 vertices. Thus, the condition of having vertices with the same degree is satisfied.

Next, we need to make the graph connected and ensure that no pair of vertices is connected twice. The following edges remain unconnected: 1 edge for each vertex of degrees 1 through 20, and from the last group of 15 vertices, we have 14 vertices of degree 7 and 1 vertex of degree 8, where the last vertices are already connected. This follows from the fact that they are connected to each other by 14 edges. Thus, the first group has 1+2++20=2101 + 2 + \cdots + 20 = 210 edges, and the second group has 147+8=10614 \cdot 7 + 8 = 106 edges.
We then connect each group from degree 1 to degree 20 with a common edge, and connect the last group to the vertex of degree 8 (Fig. 10).

Figure 1

Fig. 10

In this way, we use 39 edges from the first group of 210 edges and 1 edge from the second group of 106 edges, and achieve a connected graph. We are left with 105 edges that need to be connected to the 105 edges from the first group, but in a way that evenly distributes them, starting from the groups with the maximum number of edges. Obviously, the remaining edges can be connected easily.

Looking for a route rather than an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic and difficulty added by this site.