Three boxes are coloured red, blue and green and so are three balls. In how many ways can one put the balls one in each box such that no ball goes into the box of its own colour?
2
The problem asks us to find the number of ways to place three coloured balls (red, blue, and green) into three coloured boxes (red, blue, and green), such that no ball is placed in the box that matches its own colour. This is a classic problem in combinatorics related to derangements.
First, let's consider the total number of ways to place the three distinct balls into the three distinct boxes without any restrictions. We can place the first ball into any of the 3 boxes, the second ball into any of the remaining 2 boxes, and the third ball into the last remaining box. The total number of arrangements (permutations) is:
\(3! = 3 \times 2 \times 1 = 6\)
Let's list these 6 total arrangements. Assume the boxes are in the order Red Box, Blue Box, Green Box. The arrangement shows which ball goes into which box in that order.
| Arrangement # | Red Box | Blue Box | Green Box | Matches Own Colour? |
|---|---|---|---|---|
| 1 | Red Ball | Blue Ball | Green Ball | All match (Red, Blue, Green) |
| 2 | Red Ball | Green Ball | Blue Ball | Red matches |
| 3 | Blue Ball | Red Ball | Green Ball | Green matches |
| 4 | Blue Ball | Green Ball | Red Ball | None match |
| 5 | Green Ball | Red Ball | Blue Ball | None match |
| 6 | Green Ball | Blue Ball | Red Ball | Blue matches |
We are looking for the number of ways where no ball goes into the box of its own colour. From the table above, we can see that only arrangements #4 and #5 satisfy this condition:
There are 2 ways to achieve this condition.
This type of problem is known as finding the number of derangements. A derangement of a permutation is a permutation of the elements of a set, such that no element appears in its original position. The number of derangements of a set of \(n\) elements is often denoted by \(D_n\) or \(!n\).
The formula for the number of derangements of \(n\) items is:
\(D_n = n! \sum_{i=0}^n \frac{(-1)^i}{i!}\)
For \(n=3\) (three balls and three boxes):
\(D_3 = 3! \left( \frac{(-1)^0}{0!} + \frac{(-1)^1}{1!} + \frac{(-1)^2}{2!} + \frac{(-1)^3}{3!} \right)\)
\(D_3 = 3! \left( \frac{1}{1} + \frac{-1}{1} + \frac{1}{2} + \frac{-1}{6} \right)\)
\(D_3 = 6 \left( 1 - 1 + \frac{1}{2} - \frac{1}{6} \right)\)
\(D_3 = 6 \left( \frac{1}{2} - \frac{1}{6} \right)\)
\(D_3 = 6 \left( \frac{3}{6} - \frac{1}{6} \right)\)
\(D_3 = 6 \left( \frac{2}{6} \right)\)
\(D_3 = 2\)
Using the derangement formula confirms that there are 2 ways to place the balls such that no ball goes into the box of its own colour.
By listing the possibilities or using the formula for derangements, we find that there are 2 ways to put the three coloured balls into the three coloured boxes such that no ball is in the box of its matching colour.
Six indistinguishable balls are to be distributed amongst A, B and C, such that each gets at least one. Then the number of ways to make this distribution is
A palindrome is a word that reads the same backwards and forwards. For example, the word LEVEL is a palindrome. If we are allowed to construct words that need not have a meaning, then in how many different ways can we construct a five-letter palindrome using English alphabets?
If nPr = 720 and nCr = 120, then the value of r is:
What will be the number of permutations of n different things, taken r at a time, where repeatition is allowed?
There is a young boy's birthday party which 3 friends have attended. The mother has arranged 10 games where a prize is awarded for winning a game. The prizes are identical. If each of the 4 children receives at least one prize, then how many distributions of prizes are possible?