S = n*(n+1)*(2n+1)/6

We're going to use that in a derivation of the formula for the volume of a cone. To start with, we slice the cone horizontally. In the limit as the number of slices gets very large and each individual slice gets very thin, the triangular shaped wedge pieces and the little bit at the top won't contribute significantly to the volume.

Here is the diagram from the post:

As Dr. Peterson explains

If the cone has base radius R and height H, and we've cut it into N slices (including that empty slice at the top, with radius r0 = 0), then each cylinder will have height h = H/N, and radius r[k] = kR/N, where k is the number of the cylinder, starting with 0 at the top and ending with N-1 for the bottom cylinder.

The only thing that's tricky about this is the numbering. The triangle at the top will be ignored. This includes the cylinder numbered k = 0 with radius = kR/N = 0. The next section below it contains a cylinder with h for its height and r1 for its radius. Since we started counting at 0, the last of the N segments has k = N-1.

The volume of each individual cylinder will be:

The total volume will be the sum of these, for all k from 0 to N-1; since only k is different from one cylinder to the next, we can factor everything else out from the sum and get:

Use our formula from last time:

Divide by N

^{3}:

As N gets very large this converges to 2/6 = 1/3, so we have finally:

Very nice.