Browse · MathNet
Print62nd Ukrainian National Mathematical Olympiad
Ukraine counting and probability
Problem
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 vertices of degree for any natural number .
Proof. By contradiction. Let be a set of at least vertices, each of which has degree . If at least two vertices in are not connected, then the condition of the problem is violated. Thus, every two vertices in are connected. But then the degree of each vertex is at least , which contradicts the condition. This contradiction completes the proof.
Lemma proved.
Lemma 2. For any natural number , if the minimum number of edges in a simple graph, then there are at most vertices of degree .
Proof. By contradiction. From the previous lemma, there can be at most vertices of degree . If there are fewer than , then the statement is proven. Suppose that for some , there exists a vertex of degree . 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 () vertices.
Now consider a complete graph on vertices and one vertex connected to one of the vertices. Then, there is one vertex of degree 1, one vertex of degree , and vertices of degree . 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 () vertices, there are edges, and for the second case, a complete graph on vertices with an additional edge, there are edges.
Then, 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 and the number of edges . Clearly, . Therefore, if decreases, also decreases.
Lemma proved.
Thus, let us assume we have 225 vertices. We will find a value of for which the following inequality holds: This value of is 20. Let Then for the minimum number of edges, we should have 1 vertex of degree 1, 2 vertices of degree 2, ..., vertices of degree . For the remaining vertices, there are several options. The smallest number of edges would be if all these vertices had degree . But then the total number of edges leaving each vertex would be: 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 . 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 edges, and the second group has 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).
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.
Lemma 1. In a graph, there are no more than vertices of degree for any natural number .
Proof. By contradiction. Let be a set of at least vertices, each of which has degree . If at least two vertices in are not connected, then the condition of the problem is violated. Thus, every two vertices in are connected. But then the degree of each vertex is at least , which contradicts the condition. This contradiction completes the proof.
Lemma proved.
Lemma 2. For any natural number , if the minimum number of edges in a simple graph, then there are at most vertices of degree .
Proof. By contradiction. From the previous lemma, there can be at most vertices of degree . If there are fewer than , then the statement is proven. Suppose that for some , there exists a vertex of degree . 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 () vertices.
Now consider a complete graph on vertices and one vertex connected to one of the vertices. Then, there is one vertex of degree 1, one vertex of degree , and vertices of degree . 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 () vertices, there are edges, and for the second case, a complete graph on vertices with an additional edge, there are edges.
Then, 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 and the number of edges . Clearly, . Therefore, if decreases, also decreases.
Lemma proved.
Thus, let us assume we have 225 vertices. We will find a value of for which the following inequality holds: This value of is 20. Let Then for the minimum number of edges, we should have 1 vertex of degree 1, 2 vertices of degree 2, ..., vertices of degree . For the remaining vertices, there are several options. The smallest number of edges would be if all these vertices had degree . But then the total number of edges leaving each vertex would be: 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 . 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 edges, and the second group has 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).
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.
Final answer
1593
Techniques
Graph Theory