sum (sum k, k=1 to a), a=1 to n-1