MathLabs

Problem 3

In a mathematical competition some competitors are friends. Friendship is always mutual. Call a group of competitors a clique if each two of them are friends. (In particular, any group of fewer than two competitors is a clique.) The number of members of a clique is called its size. Given that, in this competition, the largest size of a clique is even, prove that the competitors can be arranged into two rooms such that the largest size of a clique contained in one room is the same as the largest size of a clique contained in the other room.
Step 1 of 4: Initialize with a maximum clique M in Room A and migrate until c(A) <= c(B)
In plain words

Starting with all of MM in Room AA gives c(A)=2m≥c(B)c(A) = 2m \ge c(B); moving people one by one from AA to BB lowers c(A)c(A) by 11 and raises c(B)c(B) by at most 11 per step, so when c(A)>c(B)c(A) > c(B) first fails, c(B)c(B) is either kk or k+1k+1, and k≥mk \ge m because MM has even size 2m2m.

∣M∣=2m,quadtextstopwhenk=c(A)lec(B)lek+1,quadk=∣A∣=∣AcapM∣gem|M| = 2m, \\quad \\text{stop when } k = c(A) \\le c(B) \\le k+1, \\quad k = |A| = |A \\cap M| \\ge m
Illustrative K4 friendship graph: all four vertices form an even-sized maximum clique; it does not encode the room partition.
A complete graph on four vertices, illustrating an even maximum clique without encoding the two-room arrangement.
Detailed analysis

Let c(X)c(X) denote the largest clique size in room XX. Fix a maximum clique MM of size ∣M∣=2m|M| = 2m, put A=MA = M and BB equal to all remaining competitors, so c(A)=2m≥c(B)c(A) = 2m \ge c(B). While c(A)>c(B)c(A) > c(B), move one person from AA to BB; each move decreases c(A)=∣A∣c(A) = |A| by 11 and increases c(B)c(B) by at most 11, so when the loop stops with k=c(A)=∣A∣=∣A∩M∣k = c(A) = |A| = |A \cap M|, we have k≤c(B)≤k+1k \le c(B) \le k+1. Moreover k≥mk \ge m: otherwise ∣A∩M∣≤m−1|A \cap M| \le m-1 and ∣B∩M∣≥m+1|B \cap M| \ge m+1, which would give c(B)−c(A)≥(m+1)−(m−1)=2c(B) - c(A) \ge (m+1) - (m-1) = 2, impossible since c(B)≤c(A)+1c(B) \le c(A)+1 at termination. If c(B)=kc(B) = k we are already done; assume c(B)=k+1c(B) = k+1 henceforth (with k≥m≥∣B∩M∣k \ge m \ge |B \cap M|).