All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Play until you win (Posted on 2018-06-15) Difficulty: 4 of 5
Consider this game:

You have a 1% chance of winning on the first try. If you win, great!

If you don't, win on the first try, you have a 2% chance of winning on the second try.

If needed you have a 3% chance on the third try and so on until you eventually win.

What is the expected number of tries to win this game?

See The Solution Submitted by Jer    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Unsatisfying computer solution (spoiler) | Comment 1 of 2
129277986730885202106151856642773382549665465071825090615034369359178917814747670780594211447306244001059786961886915926297133393516168977984471526892507817
------------------------------------------------------------------------------------------------------------------------------------------------------------
 10587911840678754238354031258495524525642395019531250000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 

 ~= 12.2099606302159803002 
 
from
 
    5   kill "play2win.txt":open "play2win.txt" for output as #2
   10   PWon=0
   20   for Round=1 to 100
   30      PWin=(1-PWon)*Round//100
   35      PWon=PWon+PWin
   40      ExpVal=ExpVal+Round*PWin
   50   next
   60   print ExpVal
   65   print #2,ExpVal
   70   print:print ExpVal/1
   75   print #2,:print #2,ExpVal/1
   80   close #2


  Posted by Charlie on 2018-06-15 12:08:54
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (6)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information