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