[next] [prev] [prev-tail] [tail] [up]
Note that 31=24+23+22+21+1. Thus, Martin can play at most 5 rounds. For every possible win, Martin makes 1 dollar. If the game reaches the fifth round, it is also possible that Martin loses and walks away with nothing.
Let X be Martin’s winnings.
Then,
[next] [prev] [prev-tail] [front] [up]