MathDB
MMATHS 2021, Problem 8: MMATHS

Source:

October 31, 2021
YaleMMATHS

Problem Statement

Consider a hexagon with vertices labeled MM, MM, AA, TT, HH, SS in that order. Clayton starts at the MM adjacent to MM and AA, and writes the letter down. Each second, Clayton moves to an adjacent vertex, each with probability 12\frac{1}{2}, and writes down the corresponding letter. Clayton stops moving when the string he's written down contains the letters M,A,TM, A, T, and HH in that order, not necessarily consecutively (for example, one valid string might be MAMMSHTHMAMMSHTH.) What is the expected length of the string Clayton wrote?
Proposed by Andrew Milas and Andrew Wu