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