In a restaurant, there are 4 different kinds of fruits served: apples, oranges, pears, and mangoes. On each plate, a customer can freely choose 3 fruit slices, which may be different or the same kind from the 4 options given.
How many fruit combinations are there in this menu?
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.
For the choice of all the same kind of 3 fruit slices, a customer has a choice to pick 1 one out of the 4 kinds, so there are ( 1 4 ) = 4 ways.
For the choice of 2 kinds of fruit slices, where there are 2 slices of the same kind and one of the other, a customer has a choice to pick 2 one out of the 4 kinds and then choose which one of the 2 kinds to be the extra piece. For example, if one chooses apple and mango for the first and second piece, he/she will decide whether the third one will be of apple or mango. Thus, there are ( 2 4 ) ( 1 2 ) = 6 × 2 = 1 2 ways for this case.
Finally, for all different 3 fruit slices, one has to pick 3 out of the 4 kinds, so there are ( 3 4 ) = 4 ways.
As a result, there are 4 + 1 2 + 4 = 2 0 combinations in total.
Solution 1 : We can make it into a stars and bars question. x 1 + x 2 + x 3 + x 4 = 3 This will be n C r ( 3 + 4 − 1 , 3 ) which is 2 0 . Solution 2 : generating functions. x 1 + x 2 + x 3 + x 4 = 3 For each x n the generating function will be 1 − x 1 . .This will result in the generating function ( 1 − x ) 4 1 We are trying to find the coefficient of x 3 . Using the negative binomial theorem this will be n C r ( − 4 , 3 ) which is n C r ( 4 + 3 − 1 , 3 ) which is 2 0 .
Problem Loading...
Note Loading...
Set Loading...
For combinations with replacement, having n items and picking r of them can be classified as (n+r-1) choose r.
In this case, (4+3-1) choose 3 = 6 choose 3 = 20