Sums of squares and cubes of the first n natural numbers

Here are the formulas for the sums of squares and cubes of the first n natural numbers: Sum of squares: 1² + 2² + 3² + … + n² = n(n+1)(2n+1)/6 Sum of cubes: 1³ + 2³ + 3³ + … + n³ = (n(n+1)/2)² To understand how these formulas are derived, let’s look at…