Maths Olympiad Prep

Library / /15 of 15

, 2024

Combinatorics Difficulty 7.6 National olympiad, round 2 Prove it China

There are 100 students in a summer camp, with exactly 2024 pairs of mutual friends. We need to divide them into 50 groups of 2 students each. Prove that:
1. It's possible to group them such that at most 20 groups contain mutual friends;
2. It's possible to group them such that at least 23 groups contain mutual friends;
3. It's possible to group them such that exactly 22 groups contain mutual friends.

Solution

Proof. Using the language of graph theory to describe this problem, we represent each student as a vertex and connect two vertices with an edge if the corresponding students are friends, forming a simple graph GG of order 100100. By the given condition, GG has exactly 20242024 edges.

Pair the 100100 vertices into 5050 pairs, called a "pairing." The problem requires proving the existence of a pairing where the number of adjacent vertex pairs satisfies certain conditions.

(1) It is well-known that the edge set of a complete graph of order 100100 can be partitioned into 9999 perfect matchings. Thus, there exist 9999 pairing methods such that each pair of vertices appears in exactly one of these pairings. Therefore, the total number of adjacent vertex pairs across these 9999 pairings is 20242024.

By the pigeonhole principle, there exists a pairing where the number of adjacent vertex pairs does not exceed 202499=20\lfloor \frac{2024}{99} \rfloor = 20.

(2) Assume the conclusion does not hold. Then, the maximum matching in GG has at most 2222 edges. We can add some edges to GG such that the maximum matching has exactly 2222 edges. We now prove that the number of edges in GG is less than 20242024.

Take a maximum matching, denoted as AiBiA_iB_i (1i221 \le i \le 22), and let WW be the set of remaining vertices, where W=56|W| = 56. By the maximality of the matching, there are no edges within WW. If a vertex AiA_i or BiB_i is adjacent to at least two vertices in WW, we call it a "good vertex."

Note that if one of AiA_i or BiB_i is a good vertex, the other cannot be adjacent to any vertex in WW; otherwise, we could adjust AiBiA_iB_i to two other edges, resulting in a larger matching.

Suppose there are kk good vertices among Ai,BiA_i, B_i (1i221 \le i \le 22), where k22k \le 22. Without loss of generality, assume A1,A2,,AkA_1, A_2, \dots, A_k are good vertices. For 1i<jk1 \le i < j \le k, BiB_i and BjB_j cannot be adjacent; otherwise, we could adjust AiBiA_iB_i and AjBjA_jB_j to three other edges, obtaining a larger matching.

Thus, the number of edges among {A1,B1,,A22,B22}\{A_1, B_1, \dots, A_{22}, B_{22}\} is at most (442)(k2)\binom{44}{2} - \binom{k}{2}. For 1ik1 \le i \le k, there are at most 5656 edges between {Ai,Bi}\{A_i, B_i\} and WW. For k<i22k < i \le 22, there are at most 22 edges between {Ai,Bi}\{A_i, B_i\} and WW. Therefore,

E(G)(442)(k2)+56k+2(22k)=990+12k(109k)990+12×22×87=1947<2024,\begin{align*} |E(G)| &\le \binom{44}{2} - \binom{k}{2} + 56k + 2(22-k) \\ &= 990 + \frac{1}{2}k(109-k) \le 990 + \frac{1}{2} \times 22 \times 87 = 1947 < 2024, \end{align*}

which is a contradiction. This proves the conclusion.

(3) From the conclusions of (1) and (2), there exist two pairings: the first contains at most 2020 edges of GG, and the second contains at least 2323 edges of GG.

We now adjust the first pairing step-by-step to the second pairing as follows: Select a pair (A,B)(A, B) from the second pairing that is not in the first pairing. Suppose the first pairing contains (A,C)(A, C) and (B,D)(B, D). Replace (A,C)(A, C) and (B,D)(B, D) with (A,B)(A, B) and (C,D)(C, D).

After each adjustment, the number of pairs shared with the second pairing increases by at least one. Thus, after finitely many steps, the first pairing becomes the second pairing. Since each adjustment changes two pairs, the number of edges of GG in the pairing changes by at most 22. Starting from at most 2020 and ending with at least 2323, if 2222 is not achieved at any intermediate step, there must exist a pairing M1M_1 with exactly 2121 edges of GG, which after one adjustment becomes M2M_2 with exactly 2323 edges of GG.

Let M2M_2 be {(Ai,Bi)1i50}\{(A_i, B_i) | 1 \le i \le 50\}, where AiBiA_iB_i is an edge if and only if 1i231 \le i \le 23.

Without loss of generality, assume M1M_1 adjusts (A22,A23)(A_{22}, A_{23}) and (B22,B23)(B_{22}, B_{23}) to (A22,B22)(A_{22}, B_{22}) and (A23,B23)(A_{23}, B_{23}), and neither A22A23A_{22}A_{23} nor B22B23B_{22}B_{23} is an edge.

Note that in the following cases, we can adjust M2M_2 to obtain a pairing with exactly 2222 edges of GG:

Case 1: There exist 1i<j231 \le i < j \le 23 such that among {Ai,Bi,Aj,Bj}\{A_i, B_i, A_j, B_j\}, there is a pairing with exactly one edge of GG. Replace (Ai,Bi)(A_i, B_i) and (Aj,Bj)(A_j, B_j) in M1M_1 with this pairing.

Case 2: There exist 24i<j5024 \le i < j \le 50 such that among {Ai,Bi,Aj,Bj}\{A_i, B_i, A_j, B_j\}, there is a pairing with exactly one edge of GG. Replace (Ai,Bi)(A_i, B_i) and (Aj,Bj)(A_j, B_j) in M1M_1 with this pairing, and then replace (A22,B22)(A_{22}, B_{22}) and (A23,B23)(A_{23}, B_{23}) with (A22,A23)(A_{22}, A_{23}) and (B22,B23)(B_{22}, B_{23}). The resulting pairing has exactly 2222 edges of GG.

Case 3: There exist 1i211 \le i \le 21 and 24j5024 \le j \le 50 such that among {Ai,Bi,Aj,Bj}\{A_i, B_i, A_j, B_j\}, there is a pairing with 00 or 22 edges of GG. Replace (Ai,Bi)(A_i, B_i) and (Aj,Bj)(A_j, B_j) in M1M_1 with this pairing. If the number of edges increases by one, also replace (A22,B22)(A_{22}, B_{22}) and (A23,B23)(A_{23}, B_{23}) with (A22,A23)(A_{22}, A_{23}) and (B22,B23)(B_{22}, B_{23}). In any case, we obtain a pairing with exactly 2222 edges of GG.

Now assume none of the above cases occur. Note that the number of edges in GG is even, while the number of edges of the form AiBiA_iB_i is 2323 (odd). Thus, there exist 1i<j501 \le i < j \le 50 such that among (Ai,Aj)(A_i, A_j), (Ai,Bj)(A_i, B_j), (Bi,Aj)(B_i, A_j), (Bi,Bj)(B_i, B_j), exactly an odd number are edges in GG. These four pairs can be split into two pairings: one with exactly 11 edge of GG and the other with 00 or 22 edges.

Since Cases 1, 2, and 3 do not occur, we must have 22i2322 \le i \le 23 and 24j5024 \le j \le 50. Without loss of generality, let i=23i = 23, j=24j = 24, and suppose A23A24A_{23}A_{24} and B23B24B_{23}B_{24} are either both edges or both non-edges (by swapping A24A_{24} and B24B_{24} if necessary). If neither is an edge, then in M2M_2, replace (A23,B23)(A_{23}, B_{23}) and (A24,B24)(A_{24}, B_{24}) with (A23,A24)(A_{23}, A_{24}) and (B23,B24)(B_{23}, B_{24}), resulting in a pairing with exactly 2222 edges of GG.

Now assume A23A24A_{23}A_{24} and B23B24B_{23}B_{24} are both edges of GG.

Since Case 3 does not occur, for any 1i211 \le i \le 21 and 24j5024 \le j \le 50, exactly two of AiAjA_iA_j, AiBjA_iB_j, BiAjB_iA_j, BiBjB_iB_j are edges of GG. Thus, the number of edges between {A1,B1,,A21,B21}\{A_1, B_1, \dots, A_{21}, B_{21}\} and {A24,B24,,A50,B50}\{A_{24}, B_{24}, \dots, A_{50}, B_{50}\} is exactly 2×21×27=11342 \times 21 \times 27 = 1134.

It follows that the number of edges among {A1,B1,,A22,B22}\{A_1, B_1, \dots, A_{22}, B_{22}\} is at most 20241134=890<(442)2024 - 1134 = 890 < \binom{44}{2}. Thus, there exists a non-adjacent pair in {A1,B1,,A22,B22}\{A_1, B_1, \dots, A_{22}, B_{22}\}. Without loss of generality, assume A1A2A_1A_2 is not an edge of GG. Since Case 1 does not occur, B1B2B_1B_2 is also not an edge.

In M2M_2, replace (A1,B1)(A_1, B_1), (A2,B2)(A_2, B_2), (A23,B23)(A_{23}, B_{23}), (A24,B24)(A_{24}, B_{24}) with (A1,A2)(A_1, A_2), (B1,B2)(B_1, B_2), (A23,A24)(A_{23}, A_{24}), (B23,B24)(B_{23}, B_{24}), resulting in a pairing with exactly 2222 edges of GG. This completes the proof. □

Want a route through all this instead of 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.