Mathematics (JEE)HardGATE CS
How many binary strings of length 8 contain no two consecutive 1s?
- A. 55
- B. 56
- C. 256
- D. 34
Correct answer: A. 55
Let a(n) be the count; a(n) = a(n−1) + a(n−2) with a(1) = 2, a(2) = 3. The sequence 2, 3, 5, 8, 13, 21, 34, 55 gives a(8) = 55.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many strings of length 5 over {0, 1, 2} contain exactly two 0s and no two 1s adjacent?
- How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(1) ≠ 1, p(2) ≠ 2 and p(3) ≠ 3?
- How many strings of length 6 over the alphabet {x, y, z} read the same forwards and backwards?
- How many 3-digit strings from the digits {0, 1, 2, 3} have all digits distinct and a non-zero first digit?
- How many 4-digit numbers with distinct digits from {1, 2, 3, 4, 5, 6} have the digits 3 and 4 in adjacent positions?
- How many arrangements of A, B, C, D, E, F, G in a row have A or B first and C or D last?