Possible Duplicate:
Proof for formula for sum of sequence 1+2+3+…+n?
I have this sigma:$$\sum_{i=1}^{N}(i-1)$$
is it $$\frac{n^2-n}{2}\quad?$$
Possible Duplicate:
Proof for formula for sum of sequence 1+2+3+…+n?
I have this sigma:$$\sum_{i=1}^{N}(i-1)$$
is it $$\frac{n^2-n}{2}\quad?$$
There is an elementary proof that $\sum_{i = 1}^n i = \frac{n(n+1)}{2}$, which legend has is due to Gauss. For a proof, see my blog post at Math ∩ Programming.
What you have is the same as $\sum_{i = 1}^{N-1} i$, since adding zero is trivial. So your thing is correct, and substituting $n$ for $N-1$ we get $N(N-1)/2$, which is what you have.