edited by
390 views

2 Answers

Best answer
4 votes
4 votes

Recurrence Relation for no. of binary strings with no consecutive 0's is

$$T(n) = T(n-1) + T(n-2)$$

with $T(1) = 2, T(2) = 3$.

The reason for the recurrence is we can get an $n$ length string with no "00" by adding a "1" to any binary string with length $n-1$ and not having "00" (if we add a 0, we might form a 00), and also by adding "10" to any binary string with length $n-2.$ These two cases are mutually exclusive (no common strings as one set is ending in $1$ and other in $0$)  and also exhaustive (includes all possible strings having "00").

Now, we go bottom up to solve for $T(10).$

  • $T(1) = 2, T(2) = 3$
  • $T(3) = T(2) + T(1) =  2+3 = 5$
  • $T(4) = 3 + 5 = 8$
  • $T(5) = 13$
  • $T(6) = 21$
  • $T(7) = 34$
  • $T(8) = 55$
  • $T(9) = 89$
  • $T(10) = 144$
selected by
1 votes
1 votes

For 1 digit, Strings are {0,1} =>2

For 2 digits, Strings are {11,01,10} =>3

For 3 digits, strings are {111,110,101,011,010} =>5

For 4 digits, strings are {1111,1110,1101,1011,0111,0101,1010,0110} =>8

For 5 digits, strings are {11111,11110,11101,11011,10111,01111,01011,01010,01101,01110,10110,10101,11010} =>13

-----------------------------------------------------------------------------------------------------------------------------------------------------------

Now, look at this series carefully, 2,3,5,8,13,.. <=FIBONACCI

10th term should be required answer => 144

Related questions

0 votes
0 votes
0 answers
1
Ayush Upadhyaya asked Oct 27, 2018
422 views
If $^nP_6=332640$How to quickly and efficiently find out the value of n.I know that fact that product of m consecutive integers is divisible by m!.How can we find the val...
1 votes
1 votes
2 answers
2
Pooja Khatri asked May 16, 2019
641 views
How many 4 letter combinations can be made with the help of letters of the word STATISTICS?
5 votes
5 votes
3 answers
3
Subarna Das asked Jan 23, 2018
564 views
How many A.P's with $10$ terms are there whose first term is in the set$\{1,2,3\}$ and whose common difference is in the set $\{1,2,3,4,5\}$ ?
3 votes
3 votes
1 answer
4
Subarna Das asked Jan 23, 2018
542 views
How many natural number not exceeding 4321 can be formed with the digits 1, 2, 3, 4, if the digits can be repeated?