Question
Question: In how many ways can \(5\) colors be selected out of \(8\) different colors including red, blue and ...
In how many ways can 5 colors be selected out of 8 different colors including red, blue and green (a) if blue and green are always to be included (b) if red is always excluded. (c) If red and blue are always included but green excluded?
Solution
To solve this type of question we should know the details of the non-fixed objects or places of the colors and the colors which are always excluded or included.
So here we are needed to select the colors by using the given data.
Then we have to find one by one by using a combination formula.
Finally we get the required answer.
Formula used: The number of ways of selecting the colors by using the formula nCr=r!(n−r)!n! we will have answered.
Complete step-by-step answer:
In this question it is given that there are 5 colors to be selected out of 8 different colors including red, blue and green.
In case, when we are selecting blue and green colors already.
5 Colors → 2 Colors are already selected (given in the question)
Remaining colors are to be chosen is 3
Therefore, the required selection is 6C3
Here n=6 and r=3
We use the formula and we write it as,
⇒ 6C3=3!(6−3)!6!
On subtracting the bracket term we get,
⇒ 6C3=3!(3)!6!
On splitting the factorial we get
⇒ 6C3=3!(3)!6×5×4×3!
On cancelling the term and also split the factorial we get,
⇒ 6C3=3×2×16×5×4
Let us divide the term and we get
⇒ 6C3=2×5×2
On multiplying the terms we get
=20
In case of red color is excluded
7 Colors are remaining
Hence, the required selection is
⇒7C5
Here n=7 and r=5
We use the formula and we write it as,
⇒ 6C3=5!(7−5)!7!
On subtracting the bracket term we get,
⇒ 6C3=5!(2)!7!
On splitting the factorial we get
⇒ 6C3=5!(2)!7×6×5!
On cancelling the term and also split the factorial we get,
⇒ 6C3=2×17×6
Let us divide the term and we get
⇒ 6C3=7×3
Let us multiply the terms we get,
=21
We have total 8 colors red and blue are always included, so 2 out of 5 spaces are filled.
We need to fill 3 more spaces we have 6 colors left but green color is always excluded, so we have to choose from only 5 colors to fill 3 places which is 5C3
Here n=5 and r=3
We use the formula and we write it as,
⇒ 6C3=3!(5−3)!5!
On subtracting the bracket term we get,
⇒ 6C3=3!(2)!5!
On splitting the factorial we get
⇒ 6C3=3!(2)!5×4×3!
On cancelling the term and also split the factorial we get,
⇒ 6C3=2×15×4
Let us divide the term and we get
⇒ 6C3=5×2
Let us multiply the terms we get,
=10
Hence required selection is 5C3 =10
Note: In the total number of ways of dividing n identical things amongr persons such that each one gets at least one is n−1Cr−1
The total number of combinations of n different objects taken r at a time in which as follows:
(1) If we takem particle objects are excluded then we can write it as, n−mCr
(2) If we takem particular objects are included then we can write it as, n−mCr−1.