Mathematics (JEE)HardTCS NQT · Accenture
How many strings of length 6 over the alphabet {A, B, C} contain each of the three letters at least twice?
- A. 729
- B. 180
- C. 720
- D. 90
Correct answer: D. 90
The letter counts must be (2,2,2), so the number of strings is 6!/(2! 2! 2!) = 720/8 = 90.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- How many binary strings s0 s1 ... s7 of length 8 contain exactly three 1s and no two 1s in cyclically adjacent positions (s7 and s0 count…
- How many ordered pairs (A, B) of subsets of {1, 2, 3, 4, 5} satisfy |A intersect B| = 2?
- How many permutations of {1, 2, 3, 4, 5, 6} contain no three consecutive positions i, i+1, i+2 whose values are strictly decreasing?
- How many 3-element subsets of {1, 2, ..., 20} have an element sum divisible by 4?
- How many ordered triples (a, b, c) of distinct elements from {1, 2, ..., 7} have a + b + c divisible by 3?
- How many functions f from {1, 2, 3, 4} onto {1, 2, 3} (every value 1, 2, 3 is attained) satisfy f(1) != f(2)?