2
$\begingroup$

I'm trying to prove following statement through induction:

$\sum_{k=1}^{n} (-1)^{n-k}k^2 = \frac{n(n+1)}{2}$

I have only seen how to prove with induction when the variable $n$ is not included in the sum function. Like here (this statement is not correct, just to provide an example):

$\sum_{k=1}^{n} (-1)^{k}k^2 = \frac{n(n+1)}{2}$

It confuses me and I don't know how to proceed. Any advice?

Thank you.

$\endgroup$
4
  • $\begingroup$ @yedaynara Are you basing on the second statement? Because that's just an example and an incorrect statement. $\endgroup$
    – Stanko
    Jan 10, 2015 at 14:47
  • $\begingroup$ @yedaynara My fault, I did not clarify that, I made an edit now. $\endgroup$
    – Stanko
    Jan 10, 2015 at 14:49
  • $\begingroup$ Yes, I should have checked that before commenting. My fault too! BTW I deleted my comment as it is no use keeping incorrect answers. $\endgroup$ Jan 10, 2015 at 14:50
  • 1
    $\begingroup$ Well, $\sum(-1)^kk^2=-1+2^2-3^2+4^2-...+(-1)^nn^2$ Can you try to use the form $a^2-b^2=(a+b)(a-b)$ here? You will get the sum of first $n$ positive integers, or some truncated version of that, along with some sign. The case $(-1)^{n-k}$ should be dealt in the same way as I had mentioned in my "incorrect" comment. $\endgroup$ Jan 10, 2015 at 14:52

3 Answers 3

1
$\begingroup$

$$\sum_{k=1}^n(-1)^{n-k}k^2=(-1)^n\sum_{k=1}^n(-1)^{-k}k^2=(-1)^n\sum_{k=1}^n(-1)^kk^2\\\sum_{k=1}^n(-1)^kk^2=(-1)^n\frac{n(n+1)}{2}$$

$\endgroup$
1
  • $\begingroup$ Damn, how did I miss that. Thank you. $\endgroup$
    – Stanko
    Jan 10, 2015 at 14:57
1
$\begingroup$

We can derive from scratch as well. For even $n=2 m$, we can simply pair up the summands to get

$$\sum_{k=1}^{m} ((2 k)^2 - (2 k-1)^2) = \sum_{k=1}^{m} (4 k-1) = 2 m (m+1) - m = \frac{n (n+1)}{2} $$

For odd $n=2 m+1$, we may do the same, but we have a last (positive) term, and we change the sign of the even part of the sum. Thus we get

$$(2 m+1)^2 - 2 m (m + 1) + m = 2 m^2 + 3 m + 1 = 2 \left (\frac{n-1}{2} \right )^2 + 3 \left (\frac{n-1}{2} \right ) + 1 = \frac{n (n+1)}{2}$$

$\endgroup$
0
$\begingroup$

By induction: for $n=1$: $$\sum_{k=1}^{1} (-1)^{1-k}k^2 = (-1)^0\cdot 1^2=1=\frac{1\cdot (1+1)}{2} \qquad \checkmark$$ Assume it is true for $n=m$: $$\sum_{k=1}^{m} (-1)^{m-k}k^2 = \frac{m\cdot (m+1)}{2}$$ Prove for $n=m+1$: $$\begin{align}\sum_{k=1}^{m+1} (-1)^{m+1-k}k^2 = &\sum_{k=1}^{m} (-1)^{m+1-k}k^2 + (-1)^{m+1-(m+1)}(m+1)^2=\\ &(-1)\sum_{k=1}^m(-1)^{m-k}k^2+(m+1)^2=\\ &(-1)\cdot \frac{m\cdot(m+1)}{2}+(m+1)^2=\\ &(m+1)(m+1-\frac m2)=\\ &\frac{(m+1)\cdot (m+2)}{2}. \qquad \checkmark \end{align}$$ Note: There is a deleted answer (visible for users with $10,000+$ rep), where there was a sign mistake.

$\endgroup$
2
  • $\begingroup$ How did you come across this 3 year old question? $\endgroup$
    – Stanko
    May 23, 2018 at 15:08
  • 1
    $\begingroup$ There was an edit that brought it up. I thought the OP's (your) main question was not answered. So, I completed it. $\endgroup$
    – farruhota
    May 23, 2018 at 15:10

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .