edited by
530 views

4 Answers

Best answer
8 votes
8 votes
Yes there is recurrence relation for this a(n) = a(n-1) + a(n-2). where a(1) = 2 and a(2) = 3. But in case you don't know this or you forget this. You can approach the question in this way.

Case 1: No. of bit string consisting No 0's of length 6.
1 1 1 1 1 1                                     is 1.
Case 2. No. of bit string consisting 1 0's.
1 1 1 1 1 0.                                    is 6! / (5! * 1!) = 6.
Case 3. No . of bit string consisting 2 0's such that they should not be together.
               For this we first place all the 1's with alternative blank.
                _ 1 _ 1 _ 1 _ 1 _ .    Now among this 5 blank we need to pick 2 and put zero in that place. So $\binom{5}{2}$ ways.
               This will insure that the 2 0's should not be consecutive.
case 4. No . of bit string consisting 3 0's such that No two zero is consecutive.
              Similar approach first place 1.
              _ 1 _ 1 _ 1 _ . Among these 4 blank we need to select 3 blank and place zero at that place. So $\binom{4}{3}$ ways.

case 5. No of bit string consisting 4 0's such that no two zero is consecutive.
                _ 1 _ 1 _ . We are left with 3 blank and we have 4 zeros. So this can't be possible. There is no such string.

Total = 1 + 6 + $\binom{5}{2}$ + $\binom{4}{3}$.  = 21.
selected by
2 votes
2 votes
Recurrence relation is a(n) = a(n-1) + a(n-2) : base cases : a1 = 2 and a2 = 3 and draw tree and calculate for a(6).
0 votes
0 votes

Let's call bit strings that don't contain two consecutive 0's "such bit strings".

Such bit strings of length 0 = 1. // $\epsilon$

Such bit strings of length 1 = 2 // 0 and 1

Such bit strings of length 2 = 3 // 01, 10 and 11.

Such bit strings of length 3 = 5 //010, 011, 101, 110, 111

Such bit strings of length 4 = 8 // 0101, 0110, 0111, 1010, 1011, 1101, 1110, 1111

 

We observe that at length k, "such bit strings" = sum of the previous two cases.

So, Such bit strings of length 5 = 8 + 5 = 13

Such bit strings of length 6 = 13 + 8 = 21. (Answer)


This is given by a(n) = a(n-1) + a(n-2).
This is actually the Fibonacci sequence.

The number of bit strings that do NOT contain two consecutive 1's is also the same.

Answer:

Related questions

5 votes
5 votes
2 answers
1
Bikram asked May 24, 2017
587 views
Let $S$ be the set $\{1,2,3, \dots ,8\}$. Let $n$ be the number of sets of two non-empty disjoint subsets of $S$. The value of $n$ is _______.
5 votes
5 votes
1 answer
2
Bikram asked May 24, 2017
498 views
Total number of ways we can fill a $4 \times 4$ matrix by $0$ and $1$’s such that every row and column contains odd no of $0$'s and $1$'s is ________.
3 votes
3 votes
1 answer
3
Bikram asked May 24, 2017
284 views
$O(G) = 12$ and $G$ is cyclic. The total number of generators possible in $G$ are __________.
8 votes
8 votes
3 answers
4
Bikram asked May 24, 2017
429 views
See the above table of a,b,c,d. The total number of subgroups possible from the above diagram are _______.