\frac{1}{6}n(n-1)