Evaluate the sum:
$$\sum_{i=1}^{25} 2i(i-1)$$
All I could do is:
$$2 \sum_{i=1}^{25} i (i-1)$$
What can I do after this?
Is there a way to evaluate without inserting every single integers?
Thank you
Evaluate the sum:
$$\sum_{i=1}^{25} 2i(i-1)$$
All I could do is:
$$2 \sum_{i=1}^{25} i (i-1)$$
What can I do after this?
Is there a way to evaluate without inserting every single integers?
Thank you
Expanding on @Kenny Lau's comment, $$ \begin{align} 2\sum_{i=1}^{n} i(i - 1) &= 2\bigg(\sum_{i=1}^{n} i^2 - \sum_{i=1}^{n} i\bigg) \\ &= 2\bigg(\frac{n(n+1)(2n+1)}{6} - \frac{n(n+1)}{2}\bigg) \\ &= 2\bigg(\frac{n(n+1)(2n+1 - 3)}{6}\bigg) \\ &= \frac{n(n+1)(2n - 2)}{3} \end{align}$$
You can plug in $n = 25$ for the answer.
There are general formulas which can be proven by induction.
You can use $\sum_{i=1}^n i = \frac{n(n+1)}{2}$ and $\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$, which are well-known.
With a little shift in perception, you can also see this as the sum of the triangular numbers, which is the tetrahedral numbers: $$2 \sum_{i=1}^{25} i (i-1) = 4\sum_{i=1}^{24} \frac{i (i+1)}{2}$$ (note the shift in limits)
The triangular numbers are the second column of Pascal's triangle, ${n+1 \choose 2}$, and the tetrahedral numbers are the third column, ${n+2 \choose 3}$. So your sum is: $$4\cdot{26 \choose 3} = 4\cdot\frac{26\times 25\times 24}{3 \times 2 \times 1}$$