Mathematics (JEE)ModerateCAT · MBA placement
How many strings of length 5 over {A, B, C, D} use all four letters at least once and have no two equal adjacent letters?
- A. 144
- B. 324
- C. 240
- D. 960
Correct answer: A. 144
Enumerating all 4^5 = 1024 strings and keeping those that use all four letters with no two equal neighbours leaves 144.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many functions f from {1, 2, 3, 4, 5, 6} to itself have exactly 2 fixed points (values i with f(i) = i)?
- How many functions f from {1, 2, 3, 4, 5} onto {1, 2, 3} (every value attained) satisfy f(1) = 1?
- How many subsets of {1, 2, ..., 8} (including the empty set) contain no two distinct elements whose sum is 9?
- How many permutations of {1, 2, 3, 4, 5, 6} have every cycle of length 2 or 3 in cycle notation?
- In how many ways can the set {1, 2, 3, 4} be split into two labelled, non-empty blocks (block 1 and block 2, each element in exactly one…
- How many strings of length 6 over the alphabet {0, 1, 2} contain exactly two 0s, with the two 0s not in adjacent positions?