Walk Alone is playing roulette, a kind of gambling. For simplification, we assume its rules and steps as follows:
-
The whole gambling process composes of many turns.
-
Walk Alone can choose an integer xi and pay xi yuan as the wager.
-
If Walk Alone wins, he will get 2xi yuan from the maker, which means he gains xi yuan in this turn. Otherwise, the maker will devour the xi yuan he has paid, which means he loses xi yuan in this turn. The probability that Walk Alone wins is 0.5.
Walk Alone has
n yuan initially, and he wants to earn an extra
m yuan. He will use the following strategy to gamble:
-
In the first turn, Walk Alone pays 1 yuan as the wager, i.e., x1=1.
-
If Walk Alone wins in the (i−1)-th turn, then xi=1. Otherwise, xi=2x(i−1).
-
At the beginning of each turn, if Walk Alone has at least (n+m) yuan, then he gets satisfied and quits the game. Otherwise, he must pay xi yuan as the wager, and he will have to stop gambling if he has less than xi yuan.
Walk Alone's good friend, Kelin wants to exhort him not to gamble. Tell him the probability that he successfully earns an extra
m yuan.