Mathematics (JEE)Very hardCodeforces Div2 D
In how many ways can 7 distinct people be assigned to 3 distinct rooms so that every room gets at least 2 people?
- A. 630
- B. 2187
- C. 1806
- D. 1803
Correct answer: A. 630
Count assignments where each room receives 2 or more people by checking all 3^7 assignments; the total is 630.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- In how many ways can 6 identical cookies be shared among 3 distinct children so that the first child gets an even number of cookies…
- How many functions f from {1, 2, 3, 4, 5} to {1, 2, 3} satisfy f(1) = 1 and f is onto?
- In how many ways can 6 distinct balls be placed into 4 distinct boxes so that no box contains exactly one ball? (Boxes may be empty.)
- What is C(10000, 2500) mod 7, where 7 is prime?
- For how many k from 0 to 1000 is C(1000, k) NOT divisible by 3?
- What is the exponent of 3 in the prime factorisation of C(100, 50)?