Number Theory
Intermediate
Sum of First n Cubes
The sum of the first n cubes equals the square of the sum.
Formula
Variables
nUpper limit
Example
1³ + 2³ + 3³ = 36 = 6² = (1+2+3)² — always a perfect square.
Did You Know?
The sum of the first n cubes equals the square of the nth triangular number — a beautiful coincidence.