Solving Double Summation

summation

I came across the following summation but I don't know how to solve it:
$\sum_{i=1}^n\sum_{j=i}^n (j + 1)$
I know how to do double summations, but I never saw double summations that are linked like this before though.

Best Answer

One way I haven't seen in the answers is to reverse the order of the summation

$$\sum_{i=1}^n\sum_{j=i}^n j+1 = \sum_{j=1}^n\sum_{i=1}^j j+1 = \sum_{j=1}^n j^2 + j $$

which we can use the usual formulas on

$$\frac{n(n+1)(2n+1)}{6}+ \frac{n(n+1)}{2}$$

This ends up being easier because the summand does not depend on $i$ at all, so it's the equivalent of "integrating" a constant.

Related Question