SOLUTION: A bag contains four red marbles, one green one, one lavender one, three yellows, and two orange marbles. How many sets of five marbles include at most one of the yellow ones?

Algebra ->  Permutations -> SOLUTION: A bag contains four red marbles, one green one, one lavender one, three yellows, and two orange marbles. How many sets of five marbles include at most one of the yellow ones?      Log On


   



Question 1151727: A bag contains four red marbles, one green one, one lavender one, three yellows,
and two orange marbles.
How many sets of five marbles include at most one of the yellow ones?

Found 2 solutions by Edwin McCravy, jim_thompson5910:
Answer by Edwin McCravy(20055) About Me  (Show Source):
You can put this solution on YOUR website!
A bag contains four red marbles, one green one, one lavender one, three yellows,
and two orange marbles.
How many sets of five marbles include at most one of the yellow ones?
There are 4+1+1+1+3+2 = 12 marbles

Remove 2 of the 3 yellow marbles, then choose any 4 from the remaining 10 marbles,

3 yellow marbles CHOOSE 2 to remove in 3C2 = 3 ways.

TIMES

10 remaining marbles CHOOSE 5 = 10C5 = 252 ways.

Answer 3∙252 = 756 ways

Edwin

Answer by jim_thompson5910(35256) About Me  (Show Source):
You can put this solution on YOUR website!

If there is a way to distinguish between the marbles of the same color, say there's a numeric label on each marble, then the answer is 756 as Edwin has shown.

If there isn't a way to tell two red marbles apart, and similar for the other colors, then the answer is 23.

Below shows the work on how to get 23.

==================================================================

We have this multiset
{R, R, R, R, G, L, Y, Y, Y, A, A}
where
R = red marble
G = green marble
L = lavender marble
Y = yellow marble
A = orange marble (I'm using the letter "A" instead of the letter "O" because it is easilly mixed up with the number zero)

We can write this shorthand notation
4R, 1G, 1L, 3Y, 2A
to indicate 4 red, 1 green, 1 lavender, 3 yellow, 2 orange

We want to select five marbles such that we only have at most 1 yellow marble. This means we either have 1 yellow or no yellows. So we can toss out 2 of the yellow marbles getting this updated notation
4R, 1G, 1L, 1Y, 2A
We are able to toss any two yellow marbles because we can't tell them apart.

Now consider the number of ways we can add to 5 using positive integers. There are 6 ways to do this
4+1
3+2
3+1+1
2+2+1
2+1+1+1
1+1+1+1+1
These are considered partitions and will help us figure out how to select the marbles in an organized way.

---------------------------------------

Partition 4+1
We have 4 red marbles. No other color has this many marbles. So the '4' applies to red only. The '1' applies to any of the other colors. We have 4 other colors, so we have 4 ways to fill out this partition
4R,1G
4R,1L
4R,1Y
4R,1A

---------------------------------------
Partition 3+2
No color has 3 marbles other than red, so the '3' applies to the red marbles. No other color than orange has 2 marbles (recall we tossed out 2 yellows leaving with just 1), so the '2' applies to orange
There is only one way we can have 3 marbles of one color and 2 marbles of another color
3R, 2A

---------------------------------------
Partition 3+1+1
The '3' applies to the red marbles. The other '1's are for the other colors
3R,1Y,1A
3R,1L,1A
3R,1L,1Y
3R,1G,1A
3R,1G,1Y
3R,1G,1L
There are 6 ways to fill this section out.

---------------------------------------
Partition 2+2+1
The '2's apply to the red and orange marbles. The '1' is for the other colors
2R,1Y,2A
2R,1L,2A
2R,1G,2A
There are 3 ways to do it here.

---------------------------------------
Partition 2+1+1+1
The '2' either applies to red marbles or orange marbles. The '1's are for anything else
2R,1L,1Y,1A
2R,1G,1Y,1A
2R,1G,1L,1A
2R,1G,1L,1Y
1G,1L,1Y,2A
1R,1L,1Y,2A
1R,1G,1Y,2A
1R,1G,1L,2A
There are 8 rows in the list above.

---------------------------------------
Partition 1+1+1+1+1
There's only one way to do this selection and that is to simply pick one of each color
1R,1G,1L,1Y,1A

---------------------------------------

Add up the subtotals:
4+1+6+3+8+1 = 23

Here are all 23 ways to select five marbles in which we cannot tell similar color ones apart (eg: we can't tell two red marbles apart)
NumberSet
14R,1G
24R,1L
34R,1Y
44R,1A
53R,2A
63R,1Y,1A
73R,1L,1A
83R,1L,1Y
93R,1G,1A
103R,1G,1Y
113R,1G,1L
122R,1Y,2A
132R,1L,2A
142R,1G,2A
152R,1L,1Y,1A
162R,1G,1Y,1A
172R,1G,1L,1A
182R,1G,1L,1Y
191G,1L,1Y,2A
201R,1L,1Y,2A
211R,1G,1Y,2A
221R,1G,1L,2A
231R,1G,1L,1Y,1A

The order of the selection does not matter.
So 1R,1G,1L,1Y,1A is the same as 1G,1R,1L,1Y,1A