Mathematics (JEE)HardGATE CS
How many binary strings of length 10 contain no three consecutive 1s?
- A. 274
- B. 504
- C. 149
- D. 233
Correct answer: B. 504
Let t(n) be the valid strings of length n, classified by how the string ends (in 0, 10, or 110, or 111 is forbidden): t(n) = t(n−1) + t(n−2) + t(n−3) with t(0) = 1, t(1) = 2, t(2) = 4, giving t(10) = 504. Option 274 is the count for length 9.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many binary strings of length 6 contain exactly three 0s and three 1s, with no two 0s adjacent?
- How many arrangements of 3 A's and 3 B's in a row have every prefix containing at least as many A's as B's?
- A fair coin is tossed 5 times. What is the probability that no two consecutive tosses both show heads?
- A 4-letter word is formed by choosing each letter independently and uniformly from {a, b, c, d}. What is the probability that all four…
- In a gambler's ruin problem, a player starts with ₹1 and wins ₹1 with probability 2/3 or loses ₹1 with probability 1/3 at each play. The…
- Players A and B take turns rolling a fair die, A first. The first player to roll a 6 wins. What is the probability that A wins?