I am doing a problem on induction and the first step is to guess the general law of the following statements:
$1=1$
$1-4=-(1+2)$
$1-4+9=1+2+3$
For the LHS i got that we are summing
$(-1)^{r+1}*r^2$ from $r=1$ to $n$ but i am quite stuck on the RHS.
maybe some formula including $(-1)^{n+1}$ i am not sure, how do you approach this kind of thing?
Thanks
Your statement should be
$$\sum_{i=1}^n(-1)^{i+1}i^2 = (-1)^{n+1}\sum_{i=1}^n i.$$