A coin is flipped times. Let be the probability that each of the following sequences of flips occur exactly twice:
one head, two tails, one head
one head, one tails, two heads.
Given that can be expressed as , where and are relatively prime positive integers, compute .
2021 CCA Math Bonanza Lightning Round #1.3