Let a Markov chain with State space $E=\{1,2,3,4\}$ and probability transition matrix:
$$P=\begin{bmatrix} 0 & 1 & 0 & 0 \\ 1/4 & 0 & 1/4 & 1/2\\0 & 1& 0 & 0 \\ 0 &1/2&0&1/2 \end{bmatrix}$$
How can I find the period of the chain?
I think the states 1,2,3 are periodic with period 2 and 4 is aperiodic because there is a loop.