Question
Question: Number of ways we can place 5 identical balls in 3 identical boxes such that no box remains empty is...
Number of ways we can place 5 identical balls in 3 identical boxes such that no box remains empty is ____.
Solution
We designate the first box left as B1, the second box from the left as B2 and the third box from the left as B3. We ensure that no box is empty by putting one ball in each of them. We find the number of ways we can rest balls in three boxes. This is a problem based on the permutation and combinations. So we will be using the concept of this.
Complete step-by-step answer:
Let us denote the box from the first box left as B1, the second box from the left as B2 and the third box from the left as B3. In order to ensure that no box remains empty we put the first 1 ball in each of the boxes B1, B2, B3.
So the number of balls left to be placed is 5−(1+1+1)=5−3=2 . We have to place 2 balls in the boxes B1, B2, B3. We can fill the box B1 with either 0, 1,2 balls . Similarly we can fill box B2 and box B3 with 0 or 1 or 2 balls. If we assume the number of balls we placed we place in boxes B1, B2. B3 respectively as x1,x2,x3 then all possible triplets such that x1+x2+x3=2 are
(2,0,0),(0,2,0),(0,0,2),(1,1,0),(1,0,1),(0,1,1)
So there are 6 triplets and hence 6 numbers of ways to place 5 identical balls in 3 identical boxes. We can alternatively find number of triplets as the number of non-negative integral solution to the linear equation
x1+x2+...+xr=n
which is given by n+r−1Cn−1 . Here in this problem x1+x2+x3=2 we have n=2,r=3. So the number of non-negative integral solution is
n+r−1Cn−1=2+3−1C2=4C2=2!2!4!=6
Note: We can directly find the answer by using the formula of number of positive integral solution to the equation x1+x2+...+xr=n which is given by r−1Cn−1. If the balls would not have been identical we would have selected 1 ball out of 5 in 5C1 ways , put them in boxes and then arranged them in 3! ways.