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/~al
Solution, in Python: http://paste.lisp.org/disp
Solution, in Common Lisp: http://paste.lisp.org/disp
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