Maths Olympiad Prep

Track / Stage 7 / 78 of 300 #1478 of 1964

Problem 1478

National olympiad second round; IMO P1/P4
Combinatorics Difficulty 7.1 Prove it

Call a set of integers non − isolated if for every a∈A at least one of the numbers a1a-1 and a+1a+1 also belongs to A. Prove that the number of 5−element non −isolated subsets of {1,2,...,n1,2, . . . ,n} is (n4)2(n-4)^2.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

To prove that the number of 5-element non-isolated subsets of {1,2,,n}\{1, 2, \ldots, n\} is (n4)2(n-4)^2, we will analyze the structure of such subsets and count the possible configurations.

1. Define the structure of the subset:
Let a 5-element non-isolated subset of {1,2,,n}\{1, 2, \ldots, n\} be (a,b,c,d,e)(a, b, c, d, e) with a<b<c<d<ea < b < c < d < e. By the definition of a non-isolated set, for every element xx in the subset, at least one of x1x-1 or x+1x+1 must also be in the subset. This implies:
- b=a+1b = a + 1
- e=d+1e = d + 1

Therefore, the subset must be of the form (a,a+1,c,d,d+1)(a, a+1, c, d, d+1).

2. Case Analysis:
We need to consider different cases for the positions of cc and dd relative to aa.

**Case 1: c=a+2c = a + 2 and cd1c \neq d - 1**
- Here, c=a+2c = a + 2 and d>c+1=a+3d > c + 1 = a + 3.
- Let xx be the number of elements before aa, yy be the number of elements between a+2a+2 and dd, and zz be the number of elements after d+1d+1.
- We have x+y+z=n5x + y + z = n - 5 and y>0y > 0.
- The number of solutions for this case is (n42)\binom{n-4}{2}.

**Case 2: c=d1c = d - 1 and ca+2c \neq a + 2**
- Here, d=c+1d = c + 1 and c>a+2c > a + 2.
- This case is symmetric to Case 1, so it also has (n42)\binom{n-4}{2} solutions.

**Case 3: c=a+2=d1c = a + 2 = d - 1**
- Here, c=a+2c = a + 2 and d=c+1=a+3d = c + 1 = a + 3.
- We simply need to select 5 consecutive numbers from {1,2,,n}\{1, 2, \ldots, n\}.
- The number of solutions for this case is n4n - 4.

3. Summing the cases:
- The total number of required subsets is the sum of the solutions from all three cases:
2(n42)+(n4) 2\binom{n-4}{2} + (n-4)
- Simplifying this expression:
2(n42)+(n4)=2(n4)(n5)2+(n4)=(n4)(n5)+(n4)=(n4)2 2\binom{n-4}{2} + (n-4) = 2 \cdot \frac{(n-4)(n-5)}{2} + (n-4) = (n-4)(n-5) + (n-4) = (n-4)^2

Thus, we have proved that the number of 5-element non-isolated subsets of {1,2,,n}\{1, 2, \ldots, n\} is (n4)2(n-4)^2.

\blacksquare

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