This is LaTeX code:
[latex]
\displaystyle\sum_{i=0}^{n}(\frac{5}{6})^i
[/latex]