Mathematics (JEE)HardTCS NQT · Accenture
How many strings of length 5 over the alphabet {0, 1, 2, 3} have no two equal adjacent symbols and do not begin with 0?
- A. 324
- B. 243
- C. 81
- D. 768
Correct answer: B. 243
The first symbol has 3 choices (1, 2 or 3), and each of the next 4 symbols avoids only its left neighbour, so 3 choices each: 3 * 3^4 = 243.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many distinct arrangements of the letters of CODEFORCES have no two identical letters in adjacent positions? (The letters C, O and E…
- How many subsets of {1, 2, ..., 12} (including the empty set) contain no two elements whose difference is 1 or 2?
- How many 4-element subsets of {1, 2, ..., 20} contain no two consecutive integers?
- How many integers from 1 to 1000 are divisible by none of 2, 3, 5 and 7?
- How many strings of length 6 over {a, b, c} use all three letters and have no two equal adjacent letters?
- Two fair dice are rolled. Given that the sum is even, what is the probability that the sum is 8?