Professor X smokes a pipe. He carries two identical matchboxes, originally containing 20 matches each. When he lights his pipe, he chooses a matchbox at random and lights his pipe with one match and discards the used match.
There will eventually arise an occasion when he first selects a matchbox with only one match in it. At this point, what is the expected number of matches in the other box?
(In reply to re: New print out of previous solution
Going back and looking at ed bottemiller's comment, I looked up the Banach matchbox problem, and reposed it in those terms. That problem posited that the professor would reach into a box and find no matches for the first time, whereas this puzzle asks for him to reach in and find 1 match for the first time. This effectively reduces the Banach problem to just 19 matches, but one match must be added to the final result as the actual number of matches in the other box.
So, for 19 starting matches, using formula for the Banach problem, we get:
10 for K=0 to N
30 print P
60 print T,Ex
where the probabilities of zero to 19 in the "other" box are tabulated, and the last line verifies the total probability is 1, as expected, and the expected number of matches in addition to the "extra" match is 4.0148..., making the total expected number of matches 5.0148....
Posted by Charlie
on 2010-06-29 12:27:07