In how many ways can we choose 6 candies from 8 brands that are available?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We can choose 0 or 1 or 2 or 3 or ...... or 6 candies from brand 1 , brand 2 , ..... or brand 6 .
So, let the number of candies we choose from brand 'i' be b i and the total number of the candies 6 . So the sum of b 1 , b 2 , b 3 , b 4 , b 5 , b 6 , b 7 a n d b 8 must be equal to 6.
Also, this can also happen that we choose no candies from any 1 brand or any 2 brands or any n brands where n<8 and n is a natural number.
Hence, b 1 + b 2 + b 3 + b 4 + b 5 + b 6 + b 7 + b 8 = 6 where b i is a natural number.
The number of ways in which we can choose the candies is equivalent of finding total number of solutions to the above equation. So, the number of solutions for the above equation are n + r − 1 C r − 1 where n=6 , r=8 . Thus, the number of ways in which we can choose 6 candies from 8 brands that are available are 1 3 C 7 = 1 7 1 6