MathDB
2021 LMT Spring Division A Problem 15 / Division B Problem 20

Source:

October 22, 2021

Problem Statement

Andy and Eddie play a game in which they continuously flip a fair coin. They stop flipping when either they flip tails, heads, and tails consecutively in that order, or they flip three tails in a row. Then, if there has been an odd number of flips, Andy wins, and otherwise Eddie wins. Given that the probability that Andy wins is mn\frac{m}{n}, where mm and nn are relatively prime positive integers, find m+nm+n.
Proposed by Anderw Zhao and Zachary Perry