Mathematics (JEE)ModerateGATE CS
How many binary strings of length 8 contain no three consecutive equal bits?
- A. 254
- B. 68
- C. 128
- D. 96
Correct answer: B. 68
Such a string is a sequence of runs, each of length 1 or 2. Compositions of 8 into parts 1 and 2 number F(9) = 34; choose the first bit in 2 ways: 2 × 34 = 68.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- In how many ways can exactly Rs 50 be paid using coins of Rs 1, Rs 2 and Rs 5, where only the number of each coin type matters?
- How many 3-element subsets of {1, 2, ..., 12} contain no two consecutive integers?
- How many positive divisors of 10⁶ are not perfect squares?
- How many subsets of {1, 2, ..., 6} (including the empty set) contain no two consecutive integers and do not contain 1?
- How many 5-element subsets of {1, 2, ..., 20} contain 1 and no two consecutive integers?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy A ∩ B = ∅, A ∪ B = {1, 2, 3, 4, 5} and A ≠ ∅?