I have 200 candies in an hourglass dispenser. There are 40 each of red, white, blue, yellow and green. Each time I turn the hourglass over the candies get thoroughly mixed and 20 candies are poured into a cup. I like the blue candies best.
When I want candy, I turn over the dispenser and sort through the candies in the cup. I leave all of the blue ones in the cup and put the rest back. Then I turn over the hourglass a second time. The dispenser fills the cup so that I get exactly 20 candies, which I eat. I continue this way until the dispenser is empty.
How many blue candies will be in the final cupful?
Note:The dispenser dispense just the right amount so that to total will still be 20; so if 4 blues remain, it will dispense 16.
(In reply to
simulation with new interpretation by Charlie)
BTW the distribution of the number of blues in the final cup:
0 605690
1 313053
2 71178
3 9250
4 774
5 53
6 2
That is, 605690 of the million trials had no blues in the final cup.
313055 trials had one blue in the final cup.
71178 had two blue candies in the final cup.
etc.
|
Posted by Charlie
on 2023-12-13 15:26:03 |