Olympiad workbook
- Exam
- Olympiad workbook
- Subject
- IOQM
- Chapter
- Permutation and Combination
Olympiad workbook · IOQM · Permutation and Combination
A binary sequence is a sequence in which each term is equal to 0 or...
A binary sequence is a sequence in which each term is equal to 0 or 1 . A binary sequence is called friendly if each term is adjacent to at least one term that is equal to 1 . For example, the sequence is friendly. Let denote the number of friendly binary sequences with terms. Find the smallest positive integer such that .
Correct answer
11
Step-by-step solution
Let number of friendly sequences ending with 0
number of friendly sequences ending with 1
...(i)
Now, ...(ii) (by adding 0 in the last) ...(iii)
from equation (i) and equation (ii) by (ii) and (iii)
So, and and so on.
Clearly, we can see that .
So, .