This is LaTeX code:
[latex]
\displaystyle\sum_{i=0}^{n}x^i = \frac{1-x^{n+1}}{1-x}
[/latex]