The value of $\sum ij$, where the summation is over all $i$ and $j$ such that $1 \leq i \leq j \leq 10$, is
- 1320
- 2640
- 3025
- None of the above
How do I organise the numbers so that I can make this extensible for any arbitrary $n$ and not just 10?
The value of $\sum ij$, where the summation is over all $i$ and $j$ such that $1 \leq i \leq j \leq 10$, is
- 1320
- 2640
- 3025
- None of the above
How do I organise the numbers so that I can make this extensible for any arbitrary $n$ and not just 10?
HINT Let $S_n = \sum_{i=1}^n i$. Then, $$ \sum_{i=1}^n \sum_{j = i}^n ij = \sum_{i=1}^n i \sum_{j = i}^n j = \sum_{i=1}^n i (S_n - S_{i-1}) = S_n \sum_{i=1}^n i - \sum_{i=1}^n i S_{i-1} = S_n^2 - \sum_{i=1}^n i S_{i-1} $$ Can you find $S_n$ and finish the simplification?
Hint:
Let $$S=\sum_{1\le i< j\le 10}ij$$ observe that $$(1+2+\ldots+10)^2=1^2+2^2+\ldots+10^2+2S$$ The sum you are looking for is $$\sum_{1\le i\le j\le 10}ij=S+1^2+2^2+\ldots+10^2$$
You can reorganize the sum as
$$ \sum_{1\leq i\leq j\leq n}ij=\sum_{j=1}^n j\sum_{i=1}^j i=\sum_{j=1}^n\frac{j^2(j+1)}{2}=\frac{1}{2}\sum_{j=1}^nj^3+\frac{1}{2}\sum_{j=1}^nj^2=\frac{n^2(n+1)^2}{8}+\frac{n(n+1)(2n+1)}{12} $$