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