Mathematics (JEE)Very hardGATE CS
How many binary strings of length 10 contain no three consecutive 0s?
- A. 512
- B. 528
- C. 496
- D. 504
Correct answer: D. 504
Let t(n) count valid strings: t(n) = t(n−1) + t(n−2) + t(n−3), with t(0) = 1, t(1) = 2, t(2) = 4. The values run 7, 13, 24, 44, 81, 149, 274, 504, so t(10) = 504.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many rectangles have all four vertices among the 8 vertices of a regular octagon?
- How many squares have all four vertices among the 16 points (x, y) with x, y in {0, 1, 2, 3}?
- In how many ways can 4 non-attacking rooks be placed on a 4 × 4 board, one per row and column, so that no rook is on the main diagonal?
- How many 4-element subsets of {1, 2, ..., 20} have an even sum?
- How many non-negative integer solutions (x, y, z) satisfy x + 2y + 3z = 12?
- How many binary strings of length 8 contain no three consecutive equal bits?