next up previous
Next: About this document

 COS 341, September 29, 1997

Handout Number 5

Math Casino

Let tex2html_wrap_inline96 . Roulettes in the Math Casino have the following rule. For each run, a random integer n, tex2html_wrap_inline100 is uniformly generated. If tex2html_wrap_inline102 divides n, you win $5; otherwise, the $1 bet you place is forfeited. Should you play the game? One way to make a rational decision is to calculate the probability p of winning a game, and play the game if and only if tex2html_wrap_inline108 . How can we compute p?

By definition p=m/N, where m is the number of integers tex2html_wrap_inline116 that satisfy tex2html_wrap_inline102 divides n''. Let tex2html_wrap_inline122 be the set of integers n satisfying tex2html_wrap_inline126 (i.e., tex2html_wrap_inline128 ) and j dividing n''. Clearly,

displaymath92

where the term 1 comes from the tex2html_wrap_inline136 contribution.

Let tex2html_wrap_inline138 . Starting at tex2html_wrap_inline140 , every j-th integer in the range tex2html_wrap_inline128 satisfies j dividing n. Hence,

eqnarray57

This shows

eqnarray61

It remains to evaluate tex2html_wrap_inline150 . Using the equality tex2html_wrap_inline152 , we have

eqnarray73

From (1) we then have

displaymath93

Hence p=m/N=0.1456 <1/5, and you shouldn't play this game. This solves the Math Casino Problem.




Andrew Yao
Thu Sep 25 12:59:17 EDT 1997