2021-22 Winter Team #8
Source:
April 17, 2022
combinatorics
Problem Statement
Depei is imprisoned by an evil wizard and is coerced to play the following game. Every turn, Depei flips a fair coin. Then, the following events occur in this order:
The wizard computes the difference between the total number of heads and the total number of tails Depei has flipped. If that number is greater than or equal to or less than or equal to , then Depei is vaporized by the wizard.
The wizard determines if Depei has flipped at least heads or at least tails. If so, then the wizard releases Depei from the prison.
The probability that Depei is released by the evil wizard equals , where are positive integers. Compute .