Mathematics (JEE)Very hardGATE CS
How many strings of length 5 over {0, 1, 2} contain exactly two 0s and no two 1s adjacent?
- A. 80
- B. 59
- C. 24
- D. 48
Correct answer: B. 59
Choose the two positions of the 0s in C(5,2) = 10 ways. The other three positions take 1 or 2, and a 1 must not sit next to another 1. Count the valid fillings for each placement of the 0s to get the total.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many permutations p of {1, 2, 3, 4, 5, 6} satisfy p(1) ≠ 1, p(2) ≠ 2 and p(3) ≠ 3?
- How many strings of length 6 over the alphabet {x, y, z} read the same forwards and backwards?
- How many 3-digit strings from the digits {0, 1, 2, 3} have all digits distinct and a non-zero first digit?
- How many 4-digit numbers with distinct digits from {1, 2, 3, 4, 5, 6} have the digits 3 and 4 in adjacent positions?
- How many arrangements of A, B, C, D, E, F, G in a row have A or B first and C or D last?
- How many ordered triples (a, b, c) with each of a, b, c in {1, 2, 3, 4, 5} satisfy a + b + c = 9?