How to show this statement by induction

  • Thread starter Thread starter Moridin
  • Start date Start date
  • Tags Tags
    Induction
AI Thread Summary
The discussion revolves around proving the statement that the sum of the first n natural numbers equals n(n+1)/2 and that the alternating sum of squares also holds true. The proof by induction begins by verifying the base case for n=1 and then assuming it holds for n=p to show it for n=p+1. Participants identify mistakes in the manipulation of sums, particularly in handling the alternating signs and terms. A hint is provided to simplify the expression by breaking down terms, leading to the conclusion that the induction step can be completed correctly. The conversation concludes with acknowledgment of understanding the proof process and the importance of careful term management in induction proofs.
Moridin
Messages
692
Reaction score
3

Homework Statement



Show that

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

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

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

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

Assume that

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

Now,

\sum_{k=1}^{p} k = 1 + 2 + 3 + ... + p

\sum_{k=1}^{p+1} k = 1 + 2 + 3+ ... + p + (p +1) = \sum_{k=1}^{p} k + (p+1)

According to our assumption, it follows that

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

If it can be show that

\frac{p(p+1)}{2} + (p + 1) = \frac{(p+1)(p+2)}{2}

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

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

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

Now,

\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}

\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}

Given our assumption, we get

\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}

So if it can be shown that

\frac{p(p+1)}{2} + (-1)^{2p+2} \cdot (p+1)^{2} = \frac{(p+1)(p+1)}{2}

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

\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}

But this does not equal \frac{(p+1)(p+1)}{2}, so I must have made one or more mistakes somewhere, but I am at a loss as to where it is.
 
Physics news on Phys.org
when you split the sum \sum_{k=0}^{p+1}(-1)^{k+1+p}k^{2} you should find you can get -(\sum_{k=0}^{p}k) + (-1)^{2p +2}(p+1)^2
 
Last edited:
Hi Moridin! :smile:

Alternatve proof for second part …

Hint: what is (2k)² - (2k - 1)² ? :smile:
 
tiny-tim said:
Hi Moridin! :smile:

Alternatve proof for second part …

Hint: what is (2k)² - (2k - 1)² ? :smile:

4k - 1?

You lost me.
 
Sorry about my last advice...I didn't identify exactly where you had gone wrong.

Your mistake stems from this line:
\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}

you should be starting with \sum_{k=0}^{p+1} (-1)^{p+1+k} k^{2} =... not \sum_{k=0}^{p+1} (-1)^{p+k} k^{2} = ...
 
Last edited:
Can you show that \sum^{n+1}_{k=0} (-1)^{n+k+1}k^2 = -\sum^{n}_{k=0} (-1)^{n+k} k^2 \ + \ (-1)^{2(n+1)} (n+1)^2?

Note that the last term of the summation is always positive, and given that the terms alternate between positive and negative, this amounts to multiplying the entire summation by -1 to "shift" the summation backwards by one index to accommodate the last summand which must be positive.
 
Moridin said:
4k - 1?

You lost me.

Hint: split 4k - 1 into two parts. :smile:
 
Defennder said:
Can you show that \sum^{n+1}_{k=0} (-1)^{n+k+1}k^2 = -\sum^{n}_{k=0} (-1)^{n+k} k^2 \ + \ (-1)^{2(n+1)} (n+1)^2?

Note that the last term of the summation is always positive, and given that the terms alternate between positive and negative, this amounts to multiplying the entire summation by -1 to "shift" the summation backwards by one index to accommodate the last summand which must be positive.

I understand that equality now, since the multiplier of negative one shifts the exponents one step back according the the power laws. Here is what I got so far.

\sum^{p+1}_{k=0} (-1)^{p+k+1}k^2 = -\sum^{p}_{k=0} (-1)^{p+k} k^2 \ + \ (-1)^{2(p+1)} (p+1)^2 = - \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2

However,

- \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2 = - \frac{p(p+1)}{2} \ - \ (p+1)^2 = \frac{-(p^{2} + p) - 2(p^{2} +2p +1)}{2} = \frac{-p^{2} - p - 2p^{2} - 2p - 1}{2}

I seem to have made a sign error, because if the last three subtractions where additions, I would be home free.
 
tiny-tim said:
Hint: split 4k - 1 into two parts. :smile:

Hint: 4k - 1 = 2k + (2k - 1).

So ∑(4k - 1) over even k = … ? :smile:
 
  • #10
tiny-tim said:
Hint: 4k - 1 = 2k + (2k - 1).

So ∑(4k - 1) over even k = … ? :smile:

7 + 15 + 23 + ... + ?

:confused:
 
  • #11
Moridin said:
7 + 15 + 23 + ... + ?

:confused:

Well, yes, but we're trying to avoid summing that, since it's too difficult.

It equals ∑2k + ∑(2k - 1) over even k, which we can express as a sum over all k, as … ? :smile:
 
  • #12
Moridin said:
- \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2 = - \frac{p(p+1)}{2} \ - \ (p+1)^2 = \frac{-(p^{2} + p) - 2(p^{2} +2p +1)}{2} = \frac{-p^{2} - p - 2p^{2} - 2p - 1}{2}

I seem to have made a sign error, because if the last three subtractions where additions, I would be home free.

- \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2 \neq - \frac{p(p+1)}{2} \ - \ (p+1)^2
 
  • #13
GregA said:
- \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2 \neq - \frac{p(p+1)}{2} \ - \ (p+1)^2

I thought I made a mistake around there. Oh right, it is 2m + 1 that gives an odd exponent, but 2m+ 2 gives an even exponent for all positive m? So it should actually be

- \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2 = - \frac{p(p+1)}{2} \ + \ (p+1)^2

That simplifies to what we're looking for namely

\frac {(p+1)(p+2)}{2}

Then it just a matter of applying the axiom of induction right?
 
  • #14
Moridin said:
I thought I made a mistake around there. Oh right, it is 2m + 1 that gives an odd exponent, but 2m+ 2 gives an even exponent for all positive m? So it should actually be

- \frac{p(p+1)}{2} \ + \ (-1)^{2(p+1)} (p+1)^2 = - \frac{p(p+1)}{2} \ + \ (p+1)^2

That simplifies to what we're looking for namely

\frac {(p+1)(p+2)}{2}

Then it just a matter of applying the axiom of induction right?

indeed :smile:
 
  • #15
Thank you all so much for your time and help! :smile:
 

Similar threads

Back
Top