To solve the problem, we need to compute the number of connected subsets of the set {1,2,…,n}, denoted as Un. A set M of positive integers is called connected if for any element x∈M, at least one of the numbers x−1 or x+1 is in M.
### Part (a): Compute U7
We start by establishing a recurrence relation for Un.
#### Step 1: Establish the recurrence relation
Consider a connected subset M of {1,2,…,n}.
Case 1: n∈/M
In this case, M is a connected subset of {1,2,…,n−1}. There are Un−1 such subsets.
Case 2: n∈M
For M to be connected, n−1 must also be in M. Thus, M can be written as M=N∪{n−1,n}, where N is a connected subset of {1,2,…,n−2}.
Subcase 2.1: n−2∈/N
In this subcase, N is a connected subset of {1,2,…,n−3}. There are Un−3 such subsets.
Subcase 2.2: n−2∈N
In this subcase, N is a connected subset of {1,2,…,n−2}. There are Un−2 such subsets.
Combining these cases, we get:
Un=Un−1+Un−2+Un−3
#### Step 2: Compute initial values
We need initial values to start the recurrence:
U1=1
U2=2
U3=4
#### Step 3: Compute U4 to U7
Using the recurrence relation:
U4=U3+U2+U1=4+2+1=7
U5=U4+U3+U2=7+4+2=13
U6=U5+U4+U3=13+7+4=24
U7=U6+U5+U4=24+13+7=44
### Part (b): Find the smallest n such that Un≥2006
We continue using the recurrence relation to find the smallest n such that Un≥2006.
#### Step 4: Compute U8 to U15
U8=U7+U6+U5=44+24+13=81
U9=U8+U7+U6=81+44+24=149
U10=U9+U8+U7=149+81+44=274
U11=U10+U9+U8=274+149+81=504
U12=U11+U10+U9=504+274+149=927
U13=U12+U11+U10=927+504+274=1705
U14=U13+U12+U11=1705+927+504=3136
Since U14=3136≥2006, the smallest n such that Un≥2006 is n=14.
The final answer is n=14