Lets assume i am asked to find the result of the following summation
$\sum_{i=1}^{n-2} (i-1)$
Down below is my attempt at solving this summation
i know i can break down the summation like this...
$\sum_{i=1}^{n-2} i$ + $\sum_{i=1}^{n-2} -1$
this is where i am stuck....i thought at first that i can apply the following rule to the first summation.
$\sum_{i=1}^{n} i$ = $n(n +1)/ 2$
but the $n - 2$ is really throwing me off.
Can someone give me some advice on what to do next?
Introduce a new variable, $m=n-2$.
Then $$\sum_{i=1}^{n-2} i = \sum_{i=1}^m i = \frac{m(m+1)}{2} = \frac{(n-2)(n-2+1)}{2}$$