sum(k,k,0,n)