So here are the two problems:
Recursively define the set of bit strings K that do not have 00 as its substring.
How many bit strings of length 10 are included in the above set K?
Can someone please solve it and explain to me what's going on at each step? Thank you!
Let $1_n$ be the set of such strings of length $n$ ending in $1$. Similarly let $0_n$ be the set of such strings ending in $0$. Then we have $$ \begin{align} 1_{n+1}&=\{x\parallel 1\mid x\in 1_n\cup 0_n\}\\ 0_{n+1}&=\{x\parallel 0\mid x\in 1_n\} \end{align} $$
Define $A_n=|1_n|$ and $B_n=|0_n|$. Then we have from above $$ \begin{align} A_{n+1}&=A_n+B_n\\ B_{n+1}&=A_n \end{align} $$ with $A_1=B_1=1$ and thus $A_2=2$. Combining those we get $$ A_{n+1}=A_n+A_{n-1} $$ also known as the Fibonacci recurrence relation. Hence $$ A_n=F_n=\frac{(1+\sqrt 5)^2+(1-\sqrt 5)^n}{2^n\sqrt 5} $$ and the number you seek is $$ A_{10}+B_{10}=F_{10}+F_{9}=89+55=144 $$