MathorynMathematical Formula Database

Sequences & Series

Sum of the First n Cubes

Nicomachus's theorem: the sum of the first nn cubes is the square of the nn-th triangular number. It is used in algebra contests, in algorithm analysis and for Riemann sums of x³.

∑k=1nk3=(n(n+1)2)2\sum_{k=1}^{n}k^3=\left(\frac{n(n+1)}{2}\right)^2
LaTeX\sum_{k=1}^{n}k^3=\left(\frac{n(n+1)}{2}\right)^2

Variables

nn
number of terms

Example

Compute 13+23+33+43+531^3+2^3+3^3+4^3+5^3.

  1. (5⋅62)2=152\left(\frac{5\cdot6}{2}\right)^2=15^2.

Answer: 225225.

Related formulas