May 14th, 2010, 5:08 pm
Here is my two cents:Define a random variable X_i which is the # of additional cereal boxes you need to buy in order to obtain ith color having collected i-1 different colors (obviously i<=n). If you have collected i-1 distinct colors already, the probability of having a different gift out of the cereal box is p_i=1-((i-1)/n). So, the random variable X_i follows a geometric distribution with p_i. Let X denote the expected number of boxes to buy in order to have collected all n distinct colored gifts. ThenIf you have only one color (n=1), then expected number of cereal boxes to buy is 1 (E[X]=1)If you have two colors (n=2), then expected number of cereal boxes to buy is 3 (E[X]=3). Let's say there are two colors available, blue and yellow. You buy the first cereal box which had blue (yellow) colored gift in it, this is the first cereal box you have to buy. Then in order to get a yellow (blue) colored gift, the expected number of cereal boxes you need to buy is 2 (=1/(1/2)) because p=1/2. So, for two colors, you need to buy 3 cereal boxes.The more interesting question can be also addressed in a similar way by substituting p_i into E[X_i].