Skip to main content
OlympiadHQ

Browse · MATH

Print

jmc

counting and probability senior

Problem

There is a machine with 8 toys in it that each cost between 25 cents and 2 dollars, with each toy being 25 cents more expensive than the next most expensive one. Each time Sam presses the big red button on the machine, the machine randomly selects one of the remaining toys and gives Sam the option to buy it. If Sam has enough money, he will buy the toy, the red button will light up again, and he can repeat the process. If Sam has 8 quarters and a ten dollar bill and the machine only accepts quarters, what is the probability that Sam has to get change for the 10 dollar bill before he can buy his favorite toy- the one that costs \1.75$? Express your answer as a common fraction.
Solution
We will calculate the probability that Sam can buy his favorite toy just using his 8 quarters and then subtract that from 1 to get the probability that we're looking for. There are a total of orders in which the 8 toys can be dispensed. If his favorite toy is the first one that the machine selects, then he can obviously buy it just using his quarters, and then there are order in which the other toys can be dispensed, which gives us 7! orderings of the toys that let him buy his favorite just using the quarters. If the first toy is the one that only costs 25 cents, then he will be able to buy his favorite toy just using his remaining quarters if and only if it is the second one dispensed. If those are the first two toys dispensed, there are ways to order the other toys which means that we have another orderings of the toys that allow him to buy his favorite toy without getting change for the 10 dollar bill. If the first toy costs more than 25 cents, or if two toys are dispensed before his favorite one, then he won't have enough quarters to buy his favorite one without getting change for his ten dollar bill. So out of the orders in which the 8 toys can be dispensed, there are ways that allow him to buy his favorite toy just using his quarters for a probability of . But that is the probability that what we want happen, so we need to subtract it from 1 to get our final probability of .
Final answer
\dfrac{6}{7}