Mathematics (JEE)Very hardGATE CS
How many words of length 8 over {a, b} contain no three consecutive equal letters?
- A. 256
- B. 136
- C. 64
- D. 68
Correct answer: D. 68
Words are runs of length 1 or 2 alternating between a and b; compositions of 8 into 1s and 2s number F₉ = 34, times 2 choices for the first letter: 68. The enumeration gives 68. Option 136 double-counts.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many words of length 4 over {x, y, z} have x appearing exactly twice?
- A binary string of length 4 is chosen uniformly at random. What is the expected number of runs (maximal blocks of equal digits) in it?
- A uniformly random permutation of 1, 2, 3 is chosen. What is the expected number of cycles in its cycle decomposition?
- A uniformly random permutation of 1, 2, 3, 4, 5 is chosen. What is the probability that p(1) > p(2) > p(3)?
- Four distinct numbers are chosen uniformly at random from {1, 2, …, 10}. What is the probability that the largest of them is 9?
- Two distinct numbers are chosen uniformly at random from {1, 2, …, 9}. What is the probability that their sum is even?