This question is from DEGROOT's "Probability and Statistics".
Question:
Suppose that a coin is tossed repeatedly in such a way that heads and tails are equally likely to appear on any given toss and that all tosses are independent, with the following exception: Whenever either three heads or three tails have been obtained on three successive tosses, then the outcome of the next toss is always of the opposite type. At time $n (n ≥ 3)$, let the state of this process be specified by the outcomes on tosses $n − 2$, $n − 1$, and $n$. Show that this process is a Markov chain with stationary transition probabilities and construct the transition matrix.
The answer at the back of the book :
$$\begin{array}{c|lcr} & \text{HHH} & \text{HHT} & \text{HTH} & \text{THH} & \text{TTH} & \text{THT} & \text{HTT} & \text{TTT} \\ \hline HHH & 0 & 1 & 0 & 0 & 0 & 0 & 0 & 0 \\ HHT & 0 & 0 & \frac{1}{2} & 0 & 0 & 0 & \frac{1}{2} & 0 \\ HHH & 0 & 0 & 0 & \frac{1}{2} & 0 & \frac{1}{2} & 0 & 0 \\ THH & \frac{1}{2} & \frac{1}{2} & 0 & 0 & 0 & 0 & 0 & 0 \\ TTH & 0 & 0 & 0 & \frac{1}{2} & 0 & \frac{1}{2} & 0 & 0 \\ THT & 0 & 0 & \frac{1}{2} & 0 & 0 & 0 & \frac{1}{2} & 0 \\ HTT & 0 & 0 & 0 & 0 & \frac{1}{2} & 0 & 0 & \frac{1}{2} \\ TTT & 0 & 0 & 0 & 0 & 1 & 0 & 0 & 0 \\ \end{array}$$
But I don't know how to show that this process is a Markov chain. Actually, I can't understand the meaning of the sentence: At time $n (n ≥ 3)$, let the state of this process be specified by the outcomes on tosses $n − 2$, $n − 1$, and $n$.
Please help me showing this a Markov chain. Thank you.