2026-08-24

Problem — 2026-08-24

Medium

MediumCombinatorics

A chess tournament uses a peculiar seeding system. Eight players are ranked 1 through 8, and the organizer creates the bracket by writing the numbers 1,2,3,4,5,6,7,8 in a line, then inserting 7 dividers to separate them into pairs for the first round. However, there's a rule: no two consecutive numbers can be paired together (so 1 can't play 2, 3 can't play 4, etc.). How many valid bracket configurations are possible?

Enter your answer as a whole number

Show solution
We need to count the number of ways to partition {1,2,3,4,5,6,7,8} into 4 pairs such that no pair consists of consecutive integers. Let's use inclusion-exclusion. First, we count all possible pairings of 8 people into 4 pairs: \frac{8!}{2^4 \cdot 4!} = \frac{40320}{16 \cdot 24} = 105 Now we subtract the "bad" pairings where at least one pair is consecutive. Let AiA_i be the set of pairings where (i,i+1)(i, i+1) are paired together, for i=1,2,…,7i = 1,2,\ldots,7. By inclusion-exclusion: |A_1 \cup \cdots \cup A_7| = \sum|A_i| - \sum|A_i \cap A_j| + \cdots **Single sets:** If we fix one consecutive pair, we have 6 remaining people to pair up: |A_i| = \frac{6!}{2^3 \cdot 3!} = \frac{720}{8 \cdot 6} = 15 There are 7 such sets, so ∑∣Ai∣=7⋅15=105\sum|A_i| = 7 \cdot 15 = 105. **Pairs of sets:** For ∣Ai∩Aj∣|A_i \cap A_j| where i<ji < j: - If j=i+1j = i+1 (consecutive pairs like (1,2)(1,2) and (2,3)(2,3)), this is impossible since 2 can't be in both pairs. - If j=i+2j = i+2 (like (1,2)(1,2) and (3,4)(3,4)), we fix two consecutive pairs and pair the remaining 4 people: 4!22⋅2!=3\frac{4!}{2^2 \cdot 2!} = 3. - If j>i+2j > i+2, similarly we get 3 pairings. The pairs (i,i+2)(i,i+2) occur for i=1,2,3,4,5i = 1,2,3,4,5 (5 pairs). The pairs with j>i+2j > i+2 occur (72)−6−5=10\binom{7}{2} - 6 - 5 = 10 times. So ∑∣Ai∩Aj∣=5⋅3+10⋅3=45\sum|A_i \cap A_j| = 5 \cdot 3 + 10 \cdot 3 = 45. **Triples and beyond:** If we fix 3 or more consecutive pairs, we quickly see that most configurations become impossible (overlapping constraints). Working through the cases: - Three consecutive pairs like (1,2),(3,4),(5,6)(1,2), (3,4), (5,6): 2!21⋅1!=1\frac{2!}{2^1 \cdot 1!} = 1 pairing, and there are 3 such triples. - Other triple combinations: 0 (due to overlaps or spacing). So ∑∣Ai∩Aj∩Ak∣=3\sum|A_i \cap A_j \cap A_k| = 3. **Four or more:** The only way to have 4 consecutive pairs is (1,2),(3,4),(5,6),(7,8)(1,2), (3,4), (5,6), (7,8), giving 1 configuration. By inclusion-exclusion: 105 - 105 + 45 - 3 + 1 = 43 Wait, let me recalculate more carefully. Actually, the number of valid pairings is: 105 - (7 \cdot 15 - 15 \cdot 3 + 5 \cdot 1 - 1) = 105 - 15 = 90 Therefore, there are **90** valid bracket configurations.