This is LaTeX code:

[latex]
\frac{(n-1) \cdot n }{2}
[/latex]