Olympiad Maths Prep

Track / Stage 8 / 26 of 180 #1726 of 2000

Problem 1726

IMO Shortlist mid-range; USAMO P2/P5
Combinatorics Difficulty 8.1 Prove it

In a board school, there are 9 subjects, 512 students, and 256 rooms (two people in each room.) For every student there is a set (a subset of the 9 subjects) of subjects the student is interested in. Each student has a different set of subjects, (s)he is interested in, from all other students. (Exactly one student has no subjects (s)he is interested in.)
Prove that the whole school can line up in a circle in such a way that every pair of the roommates has the two people standing next to each other, and those pairs of students standing next to each other that are not roommates, have the following properties. One of the two students is interested in all the subjects that the other student is interested in, and also exactly one more subject.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Problem Restatement and Setup:
We are given a school with n n subjects, 2n 2^n students, and 2n1 2^{n-1} rooms. Each student is interested in a unique subset of the n n subjects. We need to prove that the students can be arranged in a circle such that:
- Each pair of roommates stands next to each other.
- For any pair of students standing next to each other who are not roommates, one student is interested in all the subjects the other student is interested in, plus exactly one more subject.

2. Graph Construction:
Construct a graph G G where each vertex represents a student. Two vertices are adjacent if one student is interested in all the subjects the other student is interested in, plus exactly one more subject. This graph G G is an n n -dimensional hypercube.

3. Pairing and Alternating Cycle:
If two students are roommates, pair the corresponding vertices. We need to show that for any pairing P P of the vertices of G G , there exists a sequence of 2n 2^n distinct vertices that alternates between edges of P P and edges of G G . This sequence is called an *alternating cycle*.

4. Induction Base Case:
For n=1 n = 1 , there are 2 students and 1 room. The graph G G is a 1-dimensional hypercube (a line segment). The students can trivially be arranged in a circle (a loop) satisfying the conditions.

5. Inductive Step:
Assume the statement is true for n1 n-1 . We need to prove it for n n .

6. **Choosing a Subject X X :**
Choose a subject X X . Consider two cases:
- Case 1: No two vertices differing in the X X -coordinate are paired under P P .
- Define subgraphs G0 G_0 and G1 G_1 of G G , where G0 G_0 contains vertices not interested in X X and G1 G_1 contains vertices interested in X X .
- Partition P P into P0 P_0 and P1 P_1 , where P0 P_0 pairs vertices within G0 G_0 and P1 P_1 pairs vertices within G1 G_1 .
- By the inductive hypothesis, find alternating cycles C0 C_0 in G0 G_0 and C1 C_1 in G1 G_1 .
- Combine C0 C_0 and C1 C_1 into a single alternating cycle by collapsing the X X -coordinate and using the resulting pairings S0 S_0' and S1 S_1' to form a cycle K K in the collapsed graph G G' .
- Transform S1 S_1 to T1 T_1 by replacing edges corresponding to K K and form the final alternating cycle C C by combining P P , S0 S_0 , and T1 T_1 .

- Case 2: There exist vertices differing in the X X -coordinate paired under P P .
- These edges are called *spanning edges*. There must be an even number of spanning edges.
- Separate vertices into sets V0 V_0 and V1 V_1 corresponding to G0 G_0 and G1 G_1 .
- Erase spanning edges and replace them within V0 V_0 . Use the inductive hypothesis to find an alternating cycle C0 C_0 in V0 V_0 .
- Restore the original pairing P P and break C0 C_0 into fragments F1,F2,,Fm F_1, F_2, \ldots, F_m .
- Match these fragments with edges l1,l2,,lm l_1, l_2, \ldots, l_m in V1 V_1 and use the inductive hypothesis to find an alternating cycle C1 C_1 in V1 V_1 .
- Combine C0 C_0 and C1 C_1 by restoring the original pairing P P and filling in the missing edges with spanning edges and fragments, forming the final alternating cycle C C .

7. Conclusion:
By induction, the statement holds for all n n . Thus, the students can be arranged in a circle satisfying the given conditions.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.