Problem: Derive an expression for the fraction of length-$n$ binary numbers that do not contain the subsequence $010$.
Background: The total number of $n$-bit binary numbers is of course $2^n$. Some of these numbers have the sequence $010$ within it; others do not. In short, the problem is to determine, for a given $n$:
${{\rm number\ of\ sequences\ without\ 010} \over 2^n}$.
Although it is a simple matter to determine this fraction through simulation and curve fitting, it is rather tricky to determine the fraction through combinatorics or other rigorous means.
Clearly for $n=3$, there are $2^3 = 8$ possible binary numbers of length $3$ and only one of them is $010$. Thus for $n=3$, the fraction is:
${7 \over 8}$.
Background reading: Binary strings without zigzags and a related question.
The sequence is given in OEIS A005251 with a recurrence $a(n)=a(n-1)+a(n-2)+a(n-4)$ and begins $1, 2, 4, 7, 12, 21, 37, 65, 114, 200, 351, 616, 1081, 1897, 3329, 5842, 10252, 17991, 31572, 55405, 97229, 170625, 299426, 525456, 922111, 1618192, 2839729, 4983377, 8745217, 15346786, 26931732, 47261895, 82938844, 145547525$ It grows about as $1.7549^n$ so the fraction is about $0.8774^n$