The binomial coefficient
n choose 2 is the number n times n minus 1 over 2.
<MATH> \frac{n (n -1)}{2} </MATH>
choose(n,k)