Mathematics (JEE)Very hardCodeforces Div2 C
How many strings of length 6 over {a, b, c} use all three letters and have no two equal adjacent letters?
- A. 96
- B. 6
- C. 90
- D. 192
Correct answer: C. 90
Strings with no equal neighbours number 3 * 2^5 = 96; remove the 6 strings that use only two letters (2 alternating strings for each of the 3 letter pairs), leaving 90.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- Two fair dice are rolled. Given that the sum is even, what is the probability that the sum is 8?
- Two cards are drawn without replacement from a set of 8 cards made of 4 aces and 4 kings. Given that at least one of the two cards is a…
- Four letters are placed at random into four envelopes, one letter per envelope. What is the probability that exactly two letters go into…
- A family has four children, each equally likely to be a boy or a girl independently. Given that the family has at least one boy, what is…
- A 4-digit string is formed by choosing each digit independently and uniformly from 0 to 9. What is the probability that all four digits…
- Three distinct coupons are equally likely to be collected each time a coupon is drawn with replacement from 3 types. What is the expected…