Index shifting in summation FORMULAS

Click For Summary

Discussion Overview

The discussion revolves around deriving summation formulas starting from different indices, specifically focusing on the transition from summing from 1 to n to summing from 0 to n-1. Participants explore the implications of changing indices on the resulting formulas and clarify the calculations involved in these transformations.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant attempts to derive a new formula for the sum of integers starting from 0, suggesting a change of index from i to k.
  • Another participant points out an error in the calculation of the second sum, emphasizing the importance of correctly counting the number of terms being summed.
  • There is a discussion about whether the sum of 1's should equal n or n-1, with different interpretations presented by participants.
  • Some participants clarify that the summand being summed affects the outcome, particularly when the lower limit is zero.
  • One participant proposes a formula for the squared sum and seeks confirmation on its correctness, which is affirmed by another participant.

Areas of Agreement / Disagreement

Participants express differing views on the implications of changing the starting index and the resulting calculations, indicating that the discussion remains unresolved in some aspects. However, there is agreement on the correctness of the derived formula for the squared sum.

Contextual Notes

Participants highlight the importance of understanding how changes in indices affect summation results, particularly in terms of the number of terms and the values being summed. There are unresolved questions regarding the treatment of specific summation cases.

Who May Find This Useful

This discussion may be useful for individuals interested in mathematical summation techniques, particularly in the context of changing indices and deriving related formulas.

Xyius
Messages
501
Reaction score
4
So I am trying to derive a formula from one of the standard summation formulas except starting at a different index. So if I have the series..

\sum i = \frac{n(n+1)}{2}

Where "i" runs from 1 to n. (I don't know how to put it in the code.) If I want to make the series start from zero, I would use another index equal to, "k=i-1" And now my upper limit will be "n-1" So now I can replace "i" in the sum with "k+1", Shouldn't the new formula for the partial sums be..

\sum k+1 = \frac{(n-1)(n)}{2} + (n-1)
Problem is, it isnt. A simple test will prove this. Whats wrong?
 
Physics news on Phys.org
Your new formula is wrong. (By the way, you can click on the equations below to see the Latex code for putting the indices on the sum.)

The original sum is equivalent to

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

Note that the sum starts with k=0, not k=1.

This can be rewritten as

\sum_{k=0}^{n-1}k + \sum_{k=0}^{n-1} 1

The first sum is the same whether it starts with k=0 or k=1, but the second sum is not.

Your mistake is in your calculation of the second sum. How many 1's are being added?
 
Last edited:
You can also change the "starting point" by changing the index.

Given
\sum_{i= 0}^{n-1} i

Let k= i+1 so that when i= 0, k= 0+1= 1 so the lower limit is i= 1. Then when i= n-1, k= (n-1)+ 1= 1 so the upper limit is k= n. Finally, of course, since k= i+ 1, i= k- 1. There's your error- your sum should be of k- 1, not k+ 1:
\sum_{k=1}^n k-1
 
jbunniii said:
This can be rewritten as

\sum_{k=0}^{n-1}k + \sum_{k=0}^{n-1} 1

The first sum is the same whether it starts with k=0 or k=1, but the second sum is not.

Your mistake is in your calculation of the second sum. How many 1's are being added?

Hmm I think I still have some issues. Since the original formula for the partial sums is..

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

Since "n" represents the upper limit, the new formula for the series I am after should be just replacing all the "n" with "n-1."
\sum_{k=0}^{n-1} k+1 =\frac{(n-1)(n)}{2} + \sum_{k=0}^{n-1} 1

Now you say up until this part is correct? For the second sum, shouldn't the sum of this be just the upper limit? For example..

\sum_{i=1}^{3} 1 = 3(1) = 3

Shouldn't the same thing apply for this sum? Shouldn't it therefore be..
\sum_{k=0}^{n-1} 1 = 1(n-1) = n-1

Or should it equal "n" because the index is zero?
 
Xyius said:
Since "n" represents the upper limit, the new formula for the series I am after should be just replacing all the "n" with "n-1."
\sum_{k=0}^{n-1} k+1 =\frac{(n-1)(n)}{2} + \sum_{k=0}^{n-1} 1

Actually both the lower and the upper limit have changed, right? You are now summing from 0 to n-1, whereas the original formula sums from 1 to n.

Now it happens that

\sum_{k=0}^{n-1}k = \sum_{k=1}^{n-1}k

i.e. it doesn't matter whether you start summing from k=0 or k=1 in THIS PARTICULAR SUM. That is because the summand is k, so the k=0 term is 0: it has no effect on the value of the sum. You can therefore start summing from k=1 and get the same answer.

Now you say up until this part is correct?

Yes, it's correct up to this point.

For the second sum, shouldn't the sum of this be just the upper limit? For example..

\sum_{i=1}^{3} 1 = 3(1) = 3

Shouldn't the same thing apply for this sum? Shouldn't it therefore be..
\sum_{k=0}^{n-1} 1 = 1(n-1) = n-1

Or should it equal "n" because the index is zero?

The summand is 1, and you are summing it n times. The k=0 term DOES matter in this case, because that term is not zero.

Therefore

\sum_{k=0}^{n-1} 1 = n

Think of it as having n marbles with labels on them. It doesn't matter if the labels read 0 through n-1 or 1 through n, there are still n marbles.

I could just as well write

\sum_{k=1000}^{1000+n-1} 1

and the sum would still be n.
 
Last edited:
Makes complete sense! Thanks a lot!

So if I wanted to derive a formula for the squared sum. The normal formula is.

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

So therefore the new sum should be..

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

Would this be correct?
 
Xyius said:
Makes complete sense! Thanks a lot!

So if I wanted to derive a formula for the squared sum. The normal formula is.

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

So therefore the new sum should be..

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

Would this be correct?

Yes, it looks right to me. And I tried plugging in n = 20 and verified that the two formulas give the same answer. Of course they're really the same formula, in the sense that if you carry out the addition of the three terms in your expression by putting them over a common denominator and simplifying, you should end up with the original formula.
 
Thanks a lot man! :D!
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K