2023 WSMO Accuracy Round Problems/Problem 5
Problem
Bob flips coins and Bobby flips
coins, where
is a random integer chosen between the range of
The expected probability that Bob gets more heads than Bobby is
for relatively prime positive integers
and
Find
.
Solution
We will count the number of outcomes in which Bob and Bobby flip coins such that Bob gets more heads than Bobby, and divide that by the total number of possible outcomes, Consider Bob's and Bobby's first
flips. There are a total of
possible outcomes. Among these,
are the outcomes in which Bob and Bobby have the same number of heads. Now, we consider Bob's final (last) coin flip. For these
outcomes, Bob must flip a head to end up with more heads than Bobby. For the remaining
outcomes, in exactly half of them Bob already has more heads than Bobby, and in the other half, Bobby has more. If Bob already has more heads, then regardless of the final flip, he will still have more heads. If he has fewer heads, then the final flip won't change that. So, the number of favorable outcomes is
Therefore, the probability that Bob ends up with more heads than Bobby is
So, the expected probability over
from
is
~pinkpig