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.
Problem 1726
Official solution
1. Problem Restatement and Setup:
We are given a school with subjects, students, and rooms. Each student is interested in a unique subset of the 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 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 is an -dimensional hypercube.
3. Pairing and Alternating Cycle:
If two students are roommates, pair the corresponding vertices. We need to show that for any pairing of the vertices of , there exists a sequence of distinct vertices that alternates between edges of and edges of . This sequence is called an *alternating cycle*.
4. Induction Base Case:
For , there are 2 students and 1 room. The graph 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 . We need to prove it for .
6. **Choosing a Subject :**
Choose a subject . Consider two cases:
- Case 1: No two vertices differing in the -coordinate are paired under .
- Define subgraphs and of , where contains vertices not interested in and contains vertices interested in .
- Partition into and , where pairs vertices within and pairs vertices within .
- By the inductive hypothesis, find alternating cycles in and in .
- Combine and into a single alternating cycle by collapsing the -coordinate and using the resulting pairings and to form a cycle in the collapsed graph .
- Transform to by replacing edges corresponding to and form the final alternating cycle by combining , , and .
- Case 2: There exist vertices differing in the -coordinate paired under .
- These edges are called *spanning edges*. There must be an even number of spanning edges.
- Separate vertices into sets and corresponding to and .
- Erase spanning edges and replace them within . Use the inductive hypothesis to find an alternating cycle in .
- Restore the original pairing and break into fragments .
- Match these fragments with edges in and use the inductive hypothesis to find an alternating cycle in .
- Combine and by restoring the original pairing and filling in the missing edges with spanning edges and fragments, forming the final alternating cycle .
7. Conclusion:
By induction, the statement holds for all . Thus, the students can be arranged in a circle satisfying the given conditions.