6 ms·sum of i: 0,n = n(n+1)/2 not n(n-1)/2by aamargulies 2y agosum of i: 0,n = n(n+1)/2 not n(n-1)/2sulami 2y agoOh, good catch. Corrected.