TeX source:
\frac{n\times(n-1)}{2}