This is LaTeX code:

[latex]
\displaystyle p_n = \frac{5}{6} p_{n - 1} + \frac{1}{6} (1 - p_{n - 1})
[/latex]