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

Leave a Reply