When considering an infinite sequence of tosses of a fair coin, how long will it take on an average until the pattern H T T H appears?
I tried to break the problem into cases where ultimately the pattern HTTH appears, but that makes things complex. Any insight would be helpful.

(I'm working with HTTH as desired pattern.) Distinguish the five states $$s_0=\emptyset,\quad s_1=H,\quad s_2=HT,\qquad s_3=HTT,\quad s_4=HTTH\ ,$$ whereby the written letters denote the last tosses insofar as useful. Let $E_k$ $(0\leq k\leq4)$ be the expected number of additional tosses when you are in state $s_k$. Then of course $E_4=0$. Furthermore we have the following equations: $$E_0=1+{1\over2}E_0+{1\over2}E_1,\quad E_1=1+{1\over2}E_1+{1\over2}E_2,\quad E_2=1+{1\over2}E_1+{1\over2}E_3,\quad E_3=1+{1\over2}E_0\ .$$ Now solve this system; then $E_0$ is the solution to your problem.