y = x(x-1)/2