This is LaTeX code:
[latex]
1+2+\dots+n = \frac{n}2(n+1)
[/latex]