sum( sum ( n-j-1 , i < j < n) , 0 <= i < n)