Sum of the First n Cubes
Nicomachus's theorem: the sum of the first cubes is the square of the -th triangular number. It is used in algebra contests, in algorithm analysis and for Riemann sums of x³.
LaTeX
\sum_{k=1}^{n}k^3=\left(\frac{n(n+1)}{2}\right)^2Variables
- number of terms
Example
Compute .
- .
Answer: .