- #1

- 692

- 3

## Homework Statement

Show that

[tex]\forall n \in \mathbb{N}:~ \sum_{k=1}^{n} k = \frac{n(n+1)}{2} = \sum_{k=0}^{n} (-1)^{n+k} k^{2}[/tex]

## The Attempt at a Solution

I tried to apply the general method of proof by induction.

(1) Show that it is true for n = 1

[tex]\sum_{k=1}^{1} k = \frac{1(1+1)}{2} = \sum_{k=0}^{1} (-1)^{1+k} k^{2} = 1[/tex]

(2) Show that if it is true for n = p, it is true for n = p + 1

Assume that

[tex]\sum_{k=1}^{n} k = \frac{n(n+1)}{2}[/tex]

Now,

[tex]\sum_{k=1}^{p} k = 1 + 2 + 3 + ... + p[/tex]

[tex]\sum_{k=1}^{p+1} k = 1 + 2 + 3+ ... + p + (p +1) = \sum_{k=1}^{p} k + (p+1)[/tex]

According to our assumption, it follows that

[tex]\sum_{k=1}^{p} k + (p+1) = \frac{n(n+1)}{2} + (p + 1)[/tex]

If it can be show that

[tex]\frac{p(p+1)}{2} + (p + 1) = \frac{(p+1)(p+2)}{2}[/tex]

then the first equality is taken care of satisfactory. A trivial calculation shows that this is indeed the case.

For the second equality, the assumption is that

[tex]\sum_{k=0}^{p} (-1)^{p+k} k^{2} = \frac{p(p+1)}{2}[/tex]

Here is it where it gets a bit tricky for me.

Now,

[tex]\sum_{k=0}^{p} (-1)^{p+k} k^{2} = (-1)^{p+1} + (-1)^{p+1} \cdot 4 + (-1)^{p+2} \cdot 8 + ... + (-1)^{2p} \cdot p^{2}[/tex]

[tex]\sum_{k=0}^{p+1} (-1)^{p+k} k^{2} = (-1)^{p+1} + (-1)^{p+1} \cdot 4 + (-1)^{p+2} \cdot 8 + ... + (-1)^{2p} \cdot p^{2} + (-1)^{2p+2} \cdot (p+1)^{2} = \sum_{k=0}^{p} (-1)^{p+k} k^{2} + (-1)^{2p+2} \cdot (p+1)^{2}[/tex]

Given our assumption, we get

[tex]\sum_{k=0}^{p} (-1)^{p+k} k^{2} + (-1)^{2p+2} \cdot (p+1)^{2} = \frac{p(p+1)}{2} + (-1)^{2p+2} \cdot (p+1)^{2}[/tex]

So if it can be shown that

[tex]\frac{p(p+1)}{2} + (-1)^{2p+2} \cdot (p+1)^{2} = \frac{(p+1)(p+1)}{2}[/tex]

then the second inequality is also taken care of satisfactory and part (2) is done.

[tex]\frac{p(p+1)}{2} + (-1)^{2p+2} \cdot (p+1)^{2} = \frac{p(p+1)}{2} + \frac{2(p+1)^{2}}{2} = \frac{p^{2} + p + 2(p^{2} +2p+1)}{2} = \frac{p^{2} + p + 2p^{2} + 4p + 2}{2}[/tex]

But this does not equal [tex]\frac{(p+1)(p+1)}{2}[/tex], so I must have made one or more mistakes somewhere, but I am at a loss as to where it is.