From the following equalities, I'm supposed to find a law and prove it by induction.
$1=1$; $1-4=-(1+2)$; $1-4+9=1+2+3$, and $1-4+9-16=-(1+2+3+4)$.
I supposed the law was $\sum^{n}_{k=1} (-1)^{k+1}k^2=(-1)^{n+1}\sum^n_{k=1} k$.
Let's say it's valid for a $n\in \mathbb{N}$. For $n+1$, I have $\sum^{n+1}_{k=1} (-1)^{k+1}k^2=\sum^{n}_{k=1} (-1)^{k+1}k^2+(-1)^{n+2}(n+1)^2$, which by the induction hypothesis it's equal to $(-1)^{n+1}\sum^n_{k=1} k+(-1)^{n+2}(n+1)^2$.
I'm stuck here. What's the 'trick'?
Any help would be appreciated.