sum i=1 to 2n sum j=1 to n sum k=j to n (i-j)