Suppose I have $3$ yellow balls, $2$ red balls and $4$ green balls. How many different combinations of colors can I get if I select $k$ balls?
For $k = 1$ it is easy. I can select a yellow, or a red or a green, i.e. $3$ in total.
For $k = 2$ I count $6$ possible combinations: YY, YR, YG, RR, RG, GG. But what is the general formula?
And what's the formula for the total sum of combinations, i.e. for the total number of ways I could present a selection of balls?
When the number of balls of various colors is restricted, the situation becomes more complicated. http://math.stackexchange.com/questions/553730/computing-coefficients-for-generalized-combinatorial-sets
– Eric Auld Jan 22 '16 at 17:11