Bookie Math

In a best of 5 series, you want to bet $100 that team A will win, but your bookie will only take bets on individual games. (The bookie pays even money on all bets.)

The question is, how do you figure out how much to bet on each round? In fact, figure out how to bet for every best-of-N game.

The original quiz is located here:
http://perl.plover.com/~alias/list.cgi?mss:12:200210:mflioldnngfgmfnlfljf

Solution, in Python: http://paste.lisp.org/display/45080
Solution, in Common Lisp: http://paste.lisp.org/display/45079

Scores Bet
0 0 37.5
1 0 37.5
1 1 50.0
2 0 25.0
2 1 50.0
2 2 100.

Saw it at

http://common-lisp.net/pipermail/quiz/2007-July/000060.html

Pass right through

chiao-img_1503.JPG

I've seen doors quite a few times in my life. Certain doors, especially the ones without locks, I pass through often, and almost forget about. There is a second type of forgotten door, the ones that I wish did not exist. These latter doors have their destination painted on in huge bold letters, always in the same font. Below the huge letters of that font, in very tiny print, is the warning:

"entrance only. return impossible."