Browse · MathNet
Print59th Ukrainian National Mathematical Olympiad
Ukraine counting and probability
Problem
There is a group of people, among whom there are couples of friends. It is known that every person in this group has exactly friends (if "A" is familiar with "B", then conversely, "B" is familiar with "A"). Find such a number for which this group can always be divided into two subgroups of people so that in both subgroups each person has at least one friend? (Bogdan Rublyov)
Solution
For everything it is obvious. All friends are divided into pairs. In order to be able to split everyone properly, each pair must fall into one subgroup. But each subgroup must have the same number of people. Therefore, if there is an even number of such pairs, that is , it can be done by adding exactly pairs to each of the subgroups. If , then for any division of all people into two equal parts at least in one of the couples people will fall into different subgroups, and therefore they will not have the same friend in their subgroup.
Now, let and, for example, there is a division in which it is impossible to properly divide the group into two subgroups. Let's consider an arbitrary splitting into two subgroups of people. We denote people with points that are broken up by a vertical line into two subgroups - the left (L) and the right (R).
Draw the line segments between all pairs of acquaintances. The segments between people who fall into one subgroup with such a division will be called important. Now among all possible division, choose the one in which the number of important segments is maximal. We call such a division (or any of these, if there may be several) maximal. Presumably it is impossible to divide the group into two subgroups as needed. Therefore, for a maximal division there exists, for example, in the left subgroup, some person whose all his/her friends are in the right subgroup. Consider two cases.
Suppose there are two people and , that are friends with each other. Clearly, according to the rules the line segment between them is not important. Suppose has friends in the left side, and friends in the right side. Then let's swap people and in subgroups. Let's count how much the number of important segments has changed. The left subgroup has segments more, and the right side more. Thus their number increased, and therefore we got a contradiction with the assumption that this is the maximum division.
By the hypothesis for the maximal division we have that there is a person with all his/her friends are in the right subgroup. At the same time, all other people have friends only in their subgroup.
Consider the case . Then all people divide into chains of 3 or more people. Let's denote them as follows: . The first and the last as well as and are acquaintances.
Case 1. Suppose a chain with element has 3 elements, that is , then all these three elements have to fall into the same subgroup. Let's move them to the left subgroup. If there is at least one chain of 4 or more people in the left subgroup, , then it's enough to move and to the right subgroup the required distribution is done. It is impossible to do it this way, if only all chains in the left side consist of 3 elements. Thus the right subgroup has element and a few chains of 3 elements. Hence the right subgroup has elements and at least one chain that does not consist of 3 elements. If there is exactly one cycle of 5 elements with the other cycles of 3 elements, then the required distribution does not exist. Clearly, all elements of cycles of 3 elements have to be in one subgroup. Then the cycle of 5 elements can be divided in two parts and two equal groups does not exist. Hence for the needed distribution may not exist. Show, that for all other cases the distribution does exists. If there is at least 1 cycle , or , which has exactly 4 or more then 5 elements, then we do the following rearrangements: and some cycle of 3 elements must be moved to the right subgroup, and -- left one.
If there is at least two cycles of exactly 5 elements and , then we move elements and , from left to right, and two cycles of length 3 - from right to left.
Case 2. Let chain with the element has 5 elements . If all other chains have 3 elements each, the distribution may not exist. An example is similar to the one given above for , but now . For we have two cycles of 3 and 5 elements, which, obviously, cannot be divided into two equal subgroups as needed. Let's show that for all other cases distribution is possible. That is, there are cycles not only of 3 elements. If there is a cycle of 4 elements in the left subgroup, move it to the right side, and - to the left side. If there is a cycle of at least 5 elements , do the following displacement: у праву, у ліву. Thus the left subgroup has only 3 - element cycles. If the right subgroup has a cycle of at least 4 elements , then move and to the left subgroup, and the cycle 3 elements to the right side.
Case 3. Let chain with the element has 4 elements . If in the left side there are cycles of 3 elements or at least 5 elements , then move to the left side, and - to the right side. The only possibility left is when there are only cycles of 4 elements in the left side. Suppose one of them consists of elements . Then the left side cannot have all cycles of 4 elements each. If in the right subgroup there is a cycle of 3 elements or of at least 5 elements , then move and to the right subgroup, and to the left subgroup.
Case 4. Let chain with the element has at least 6 elements . If in the left subgroup each cycle has 3 elements , move to the right side, and - to the left side. If there is a cycle of at least 4 elements , move to the right side, and - to the left side.
Consider the case when . Then all people are divided into connected components, which have no less than 4 elements each and the degree of each vertex of a component is , moreover element is connected to elements . If the left side has a connected component of at least 5 elements , it's enough to move to the left side, and - to the right side, if the whole connected component consists of 4 elements , otherwise move to the left side, and - to the right side. Otherwise, each connected component in the left side has exactly 4 elements. Clearly, that under such conditions the only possibility is . Then the right side cannot have connected components of 4 elements. Then since there is a component in the right subgroup, that has at least 5 elements , move to the left side, and to the right side, where - two elements of one connected component.
Now, let and, for example, there is a division in which it is impossible to properly divide the group into two subgroups. Let's consider an arbitrary splitting into two subgroups of people. We denote people with points that are broken up by a vertical line into two subgroups - the left (L) and the right (R).
Draw the line segments between all pairs of acquaintances. The segments between people who fall into one subgroup with such a division will be called important. Now among all possible division, choose the one in which the number of important segments is maximal. We call such a division (or any of these, if there may be several) maximal. Presumably it is impossible to divide the group into two subgroups as needed. Therefore, for a maximal division there exists, for example, in the left subgroup, some person whose all his/her friends are in the right subgroup. Consider two cases.
Suppose there are two people and , that are friends with each other. Clearly, according to the rules the line segment between them is not important. Suppose has friends in the left side, and friends in the right side. Then let's swap people and in subgroups. Let's count how much the number of important segments has changed. The left subgroup has segments more, and the right side more. Thus their number increased, and therefore we got a contradiction with the assumption that this is the maximum division.
By the hypothesis for the maximal division we have that there is a person with all his/her friends are in the right subgroup. At the same time, all other people have friends only in their subgroup.
Consider the case . Then all people divide into chains of 3 or more people. Let's denote them as follows: . The first and the last as well as and are acquaintances.
Case 1. Suppose a chain with element has 3 elements, that is , then all these three elements have to fall into the same subgroup. Let's move them to the left subgroup. If there is at least one chain of 4 or more people in the left subgroup, , then it's enough to move and to the right subgroup the required distribution is done. It is impossible to do it this way, if only all chains in the left side consist of 3 elements. Thus the right subgroup has element and a few chains of 3 elements. Hence the right subgroup has elements and at least one chain that does not consist of 3 elements. If there is exactly one cycle of 5 elements with the other cycles of 3 elements, then the required distribution does not exist. Clearly, all elements of cycles of 3 elements have to be in one subgroup. Then the cycle of 5 elements can be divided in two parts and two equal groups does not exist. Hence for the needed distribution may not exist. Show, that for all other cases the distribution does exists. If there is at least 1 cycle , or , which has exactly 4 or more then 5 elements, then we do the following rearrangements: and some cycle of 3 elements must be moved to the right subgroup, and -- left one.
If there is at least two cycles of exactly 5 elements and , then we move elements and , from left to right, and two cycles of length 3 - from right to left.
Case 2. Let chain with the element has 5 elements . If all other chains have 3 elements each, the distribution may not exist. An example is similar to the one given above for , but now . For we have two cycles of 3 and 5 elements, which, obviously, cannot be divided into two equal subgroups as needed. Let's show that for all other cases distribution is possible. That is, there are cycles not only of 3 elements. If there is a cycle of 4 elements in the left subgroup, move it to the right side, and - to the left side. If there is a cycle of at least 5 elements , do the following displacement: у праву, у ліву. Thus the left subgroup has only 3 - element cycles. If the right subgroup has a cycle of at least 4 elements , then move and to the left subgroup, and the cycle 3 elements to the right side.
Case 3. Let chain with the element has 4 elements . If in the left side there are cycles of 3 elements or at least 5 elements , then move to the left side, and - to the right side. The only possibility left is when there are only cycles of 4 elements in the left side. Suppose one of them consists of elements . Then the left side cannot have all cycles of 4 elements each. If in the right subgroup there is a cycle of 3 elements or of at least 5 elements , then move and to the right subgroup, and to the left subgroup.
Case 4. Let chain with the element has at least 6 elements . If in the left subgroup each cycle has 3 elements , move to the right side, and - to the left side. If there is a cycle of at least 4 elements , move to the right side, and - to the left side.
Consider the case when . Then all people are divided into connected components, which have no less than 4 elements each and the degree of each vertex of a component is , moreover element is connected to elements . If the left side has a connected component of at least 5 elements , it's enough to move to the left side, and - to the right side, if the whole connected component consists of 4 elements , otherwise move to the left side, and - to the right side. Otherwise, each connected component in the left side has exactly 4 elements. Clearly, that under such conditions the only possibility is . Then the right side cannot have connected components of 4 elements. Then since there is a component in the right subgroup, that has at least 5 elements , move to the left side, and to the right side, where - two elements of one connected component.
Final answer
k ≥ 3
Techniques
Graph TheoryColoring schemes, extremal arguments