How to calculate following
$\sum_{i<j=1}^n i*j$
I am not able to understand how to even write the nth term of this sequence. Please help in this.
How to calculate following
$\sum_{i<j=1}^n i*j$
I am not able to understand how to even write the nth term of this sequence. Please help in this.
On
Expanding on J.G.'s answer:
I'll leave you to simplify$$\frac12\left(\left(\sum_ii\right)^2-\sum_ii^2\right)=\frac12\left(\frac14 n^2(n+1)^2-\frac16 n(n+1)(2n+1)\right).$$