Mathematics (JEE)Very hardGATE CS
How many binary strings of length 8 consist of exactly three runs, where a run is a maximal block of equal consecutive digits?
- A. 42
- B. 14
- C. 28
- D. 21
Correct answer: A. 42
Three runs cut the 8 digits into 3 non-empty blocks in C(7,2) = 21 ways, and the first digit has 2 choices, giving 2 × 21 = 42. Option 21 forgets the choice of the first digit.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many arrangements of the letters of the word MATHS have T before H (not necessarily adjacent)?
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4} are there such that A is non-empty and A and B are disjoint?
- Two fair dice are rolled. Given that the sum of the two numbers is at least 9, what is the probability that at least one die shows a 6?
- X follows a binomial distribution with n = 10 and p = 1/3. What is P(X = 4 | X ≥ 3)?
- X follows a binomial distribution with n = 5 and p = 1/4. What is the probability that X is even?
- Three fair dice are thrown. What is the expected value of the largest number shown?