I am trying to solve this double sigma but my answer doesn't seem right. $$\sum\limits_{i=1}^n \sum\limits_{j=i}^{n^2}1=-i\sum\limits_{i=1}^n n^2 = -in^3$$
Asked
Active
Viewed 146 times
2 Answers
1
Second term should be $$\sum_{i=1}^n (n^2 - i+1) = n^3+n - \sum_{i=1}^n i = n^3+n - \frac{n(n+1)}2$$
Ant
- 21,098
-
You have an off by one error. Double check that index on the inner sum – Stella Biderman Apr 05 '16 at 14:11
-
1
Yeah, I'm not sure what you're doing, but if you wind up with the index of summation outside the summation you're doing something wrong. "$i,j$" are not variables here, they are placeholder symbols that is used to compactify notation. As a result, they have no meaning on their own and can't exist outside the summation. This is similar to how the "dummy variable" of integration isn't a real variable and can't exist outside the integral.
Isolating the inside give us $$\sum_{j=i}^{n^2}j^0=n^2-i+1$$ and now we plug this into the outside sum to get $$\sum_{i=1}^{n}(n^2-i+1)=n^3-\frac{n^2+n}{2}+n$$
Stella Biderman
- 31,155