### Formula

S

sum of the first n cubes

n

number of cubes

S

sum of the first n cubes

n

number of cubes

In arithmetic and algebra, the cube of a number n is its third power, the result of the number multiplying by itself three times. The sum of the first n cubes is the nth triangle number squared.

n

S

Precision

- C
- C#
- C++
- Java
- JavaScript
- LaTeX
- PHP