Question
Question: In how many ways can five people be arranged in three different rooms if no room must be empty and e...
In how many ways can five people be arranged in three different rooms if no room must be empty and each room has 5 seats in a single row.
Solution
Here, we will use the permutation and combination method to find the required answer. First, we will find the number of basic possibilities in which these 5 people can be arranged in 3 rooms. Then we will use the permutation method to find the required number of ways to arrange these people in 3 different rooms for these possibilities individually and then we will add the obtained values to get the final answer.
Complete step by step solution:
Here we need to find the number of ways to arrange five people in three different rooms so that no room is empty.
There are 2 basic possibilities:-
(1,2,2)
(1,1,3)
We will first consider case 1.
It is given that there are five seats in a room.
Therefore, the number of ways to arrange these people =1!×2!×2!×2!5!×5C1×5C2×2!×5C2×2!
We know that the formula of combination is
nCr=(n−r)!r!n!
Now, we will use this formula to calculate the required value;
Number of ways to arrange these people =15×3!×(5−1)!×1!5!×(5−2)!×2!5!×2!(5−2)!×2!5!×2!
On simplifying the terms, we get
Number of ways to arrange these people =15×3!×4!5!×3!×2!5!×2!3!×2!5!×2!
On finding the value of factorials, we get
Number of ways to arrange these people =15×3×2×1×4×3×2×15×4×3×2×1×3×2×1×25×4×3×2×1×2×3×2×1×25×4×3×2×1×2
On further simplification, we get
Number of ways to arrange these people =15×3×2×5×5×2×2×5×2×2
On multiplying the numbers, we get
Number of ways to arrange these people =1,80,000
Now, we will consider case 2.
It is given that there are five seats in a room.
Therefore, the number of ways to arrange these people =3!×1!×1!×2!5!×5C1×5C1×5C3×3!
We know that the formula of combination is nCr=(n−r)!r!n! .
Now, we will use this formula to calculate the required value.
Number of ways to arrange these people =10×3!×(5−1)!×1!5!×(5−1)!×1!5!×(5−3)!×3!5!×3!
On simplifying the terms, we get
Number of ways to arrange these people =10×3!×4!×1!5!×4!×1!5!×2!×3!5!×3!
On finding the value of factorials, we get
Number of ways to arrange these people =10×3×2×1×4×3×2×15×4×3×2×1×4×3×2×15×4×3×2×1×3×2×1×25×4×3×2×1×3×2
On further simplification, we get
Number of ways to arrange these people =10×3×2×5×5×5×2×3×2
On multiplying the numbers, we get
Number of ways to arrange these people =90,000
Hence, the total number of ways to arrange people in three rooms =1,80,000+90,000=2,70,000
Note:
Here we have calculated that factorial. So, we need to keep in mind following properties of factorial:
- Factorial of any positive integer can be defined as the multiplication of all the positive integers less than or equal to the given positive integers.
- Factorial of zero is one.
- Factorials are generally used in permutations and combinations problems.
- Factorials of negative integers are not defined.