7. a)
length | bit strings |
0 | empty string |
1 | 0, 1 |
2 | 00, 01, 11 |
3 | 000, 001, 011, 111 |
4 | 0000, 0001, 0011, 0111, 1111 |
b) S0 = 1, S1 = 2, S2 = 3, S3 = 4, S4 = 5.
c) To build the required bit strings of length n in terms of the bit stings of length n-1 the following steps are taken, for each string of length n-1:
Using these two facts we see that a recurrence relation for Sn in terms of
Sn-1 is given by Sn = Sn-1 +
1 for all n1.
Hence the number of bit strings of length ten which do not contain the bit pattern 10 is S10 = 11.