Sums of powers, read off a staircase
Worth reading first: Every square is a stack of odd numbers.
The odd numbers stack into squares, two triangles make a rectangle, six stepped pyramids make a box, and the cubes add up to the square of a triangular number. Each of those identities gives a sum of powers — , or , or the cubes — as a closed formula, and each has its own picture. By the fourth powers the pictures run out: a sum of fourth powers would need a five-dimensional stack, and nobody draws those.
The formulas do not run out. For every power the sum is a polynomial in of degree , and there is a single picture that explains all of them at once. It is not a stack. It is a staircase standing on a curve.
The staircase and the curve
Draw a bar of width one and height over each interval from to . The bars’ total area is the sum. Draw the curve across the same interval from to . The curve passes through the top right-hand corner of every bar, and between those corners it bends under the bars’ flat tops.
For the first powers the picture is exact and familiar. The region under from to is a triangle of area . Each bar pokes above the line by a small triangle of area , and there are of them, so the slivers hold . The sum is , which is the triangular number — the same formula the doubled staircase gave, now read as area under the line plus the slivers above it.
For squares the curve bends and the slivers are no longer triangles.
The area under from to is , which is the dominant part of 91. The slivers hold 19. Half the last bar is 18, which accounts for almost all of them. And the leftover 1 is a sixth of 6. Put together:
which is , the pyramid formula, multiplied out. The three terms are three different things: the area under the curve, a correction of half a step, and a correction to the correction.
Why the second term is always one half
The slivers above the curve are nearly triangles, and their size can be estimated without knowing the power.
Over the interval from to the bar’s top is at height and the curve rises from to . If the curve were straight across that interval, the sliver would be a triangle of base one and height , with area half of that. Adding those half-differences from to telescopes: everything cancels except . So the slivers hold about half the last bar, for any power, and the second term of every formula is .
The approximation is that the curve is straight across each unit interval, and it is not quite. A curve that bends upward — as does for — sags below its chord, so each sliver is slightly larger than the triangle, by an amount that depends on how sharply the curve bends. That excess is the third term, and it is where the power starts to matter.
For cubes the numbers are 441 in the bars, 324 under the curve, 117 in the slivers and 108 for the half-step, leaving 9. The polynomial is
and . The picture of the cubes as the square of a triangular number is still true — multiplies out to exactly this — but now it has a second reading: an integral, a half-step, and a curvature correction.
Every coefficient, exactly
The pattern continues for every power, and the coefficients can be computed exactly as fractions.
Three diagonals of the table are forced. The leading coefficient is , the area under . The next is , the half-step. The third is — for squares , for cubes , for fourth powers . After that the coefficients alternate between nought and a fraction, and the fractions look unrelated: , , , .
They are related. Every coefficient in the table is a binomial coefficient times one of a single sequence of numbers:
where , , , , , , , and so on. Those are the Bernoulli numbers. Johann Faulhaber had worked out the polynomials up to the seventeenth power by 1631 without recognising the pattern in their coefficients; Jacob Bernoulli found it and published it in 1713, remarking that he had computed the sum of the tenth powers of the first thousand numbers in under half a quarter of an hour.
The number he got is 91,409,924,241,424,243,424,241,924,242,500, and its strange near-repetitions are the polynomial showing through. With each power of is a one followed by threes of zeros, so the terms of the degree-eleven polynomial land in overlapping blocks of digits, and the answer is the decimal expansions of the coefficients , , , , , and laid over one another, each shifted three digits for every power of it drops. A sum that would take thousands of multiplications becomes the coefficients of one row of the table written out side by side. Seki Takakazu found the same numbers independently in Japan, in a book published in 1712, a year before Bernoulli’s.
The third term is curvature
The picture says what each term is, and it says it most clearly for the third.
The sliver over the interval from to exceeds the chord’s triangle by the area between the chord and the curve. For a smooth curve that area is about times the curve’s second derivative there — the familiar error of the trapezium rule. The second derivative of is , and adding from to gives, to leading order, . The third coefficient is the trapezium rule’s error summed along the staircase, and is what it comes to.
The general statement is the Euler–Maclaurin formula. For any smooth function , the sum equals the integral of , plus half the difference of its end values, plus times the difference of its first derivative at the ends, plus times the difference of its third derivative, and so on — one term for each odd derivative, weighted by a Bernoulli number, plus a remainder. For the derivatives run out after steps, the remainder vanishes, and the formula is Faulhaber’s polynomial exactly. For any other function the derivatives never run out and the formula is an infinite series of corrections.
The odd-indexed Bernoulli numbers past are all nought for a reason the picture also supplies. The function , whose Taylor coefficients generate the Bernoulli numbers, is even — and an even function has no odd powers. In the staircase that symmetry is the observation that a correction for curvature cannot depend on which way the staircase is read, so only even derivatives of the error can appear.
The corrections that eventually grow
The corrections for a polynomial stop. For a function like or they do not, and whether an infinite list of corrections converges depends on how big the Bernoulli numbers get.
They get very big. After a few small values the sizes grow like , which outruns every exponential because of the factorial. So in the Euler–Maclaurin series for a function like , the terms first shrink — each correction smaller than the last — reach a smallest term, and then grow without limit. The series diverges for every function that is not a polynomial.
That does not make it useless; it makes it an asymptotic series. Stopping at the smallest term gives an approximation whose error is about the size of that term, and for large that error is fantastically small. Euler used exactly this to compute the constant — the amount by which the harmonic series exceeds — to sixteen decimal places, adding ten terms by hand and correcting with a handful of Bernoulli numbers, at a time when adding up enough terms directly would have taken longer than the age of the universe.
The twelve in Stirling’s formula
The same corrections, applied to a function whose sum everybody needs, produce a constant that is usually presented as a mystery.
The logarithm of is , a staircase over the curve . The integral of from 1 to is . The half-step is . The curvature correction involves the first derivative of , which is , weighted by . Putting the pieces together, and collecting everything that does not depend on into one constant,
The constant turns out to be , which is where the in Stirling’s formula comes from, and the is the first correction that makes the formula accurate enough to use for small . That twelve is the same twelve as in the of the table — the trapezium rule’s curvature error — and the after it is . Stirling’s series is the Euler–Maclaurin series for the logarithm, and like every such series for a non-polynomial it diverges: its terms shrink for a while at any fixed and then grow, with the turning point further out the larger is.
That series is what sits behind the in the average room at which a shared birthday first appears, where factorials in the all-distinct product had to be estimated. A problem about people and days reaches its through a staircase over a logarithm.
Who needed these sums, and for what
The formulas were not wanted for their own sake. Every one of them was first needed to find an area or a volume, and the history runs exactly parallel to the picture.
Archimedes needed the sum of the squares to find the area inside a spiral and the area of a parabolic segment, and he proved it by the same kind of bounding from above and below that he used to pin the area of a circle between two sequences. Around the year 1000 Ibn al-Haytham needed the sum of the fourth powers to find the volume of a paraboloid, and derived it — an argument that, written in modern notation, is the step from one power to the next that Faulhaber’s table encodes. In the seventeenth century Cavalieri, Fermat and Pascal each used sums of powers to find the area under , and it was the recognition that the answer is for every that became one of the first general theorems of integration, and the slicing method Cavalieri built on it.
The picture reverses the direction of that history. Those mathematicians found the sums of powers in order to compute areas under curves. Once the areas were known the relationship could be run the other way, and the area became the leading term of the sum, with the Bernoulli numbers keeping the accounts for the difference.
Where the dashed curve comes from
The dashed curve in the figure is not a fit, and the reason it matches the Bernoulli numbers to within two per cent from on is one of the more surprising connections in elementary mathematics.
The exact relation is
The sum is between 1 and , and it tends to 1 quickly as grows, because the terms after the first become negligible. So the Bernoulli numbers are the factorial curve times a factor that barely differs from one. Read the other way, the relation gives the values of the zeta function at even integers: , which Fourier’s coefficients deliver by a completely different route, , and every as a rational multiple of with a Bernoulli number in it.
So the coefficients that correct a staircase for its corners are the same numbers that sum the reciprocals of the even powers. The in the formula is there because the generating function has poles at , which set the radius of convergence of its Taylor series and therefore the growth rate of its coefficients — a fact about complex numbers controlling the size of rational numbers that were first met adding up whole-number powers.
What nothing drawn here establishes
The staircases are drawn for powers one, two and three at six to eight steps, and the table checks each polynomial against direct sums for up to 25. That is evidence that the formulas are right and a proof of nothing: the polynomial identity for a given power is proved by induction on , or by the telescoping of , and no finite table does that work.
The explanation of the second and third terms as a half-step and a curvature correction is an argument about areas, and it is exact only in the limit. At six steps the slivers are visibly not triangles, and the decomposition of 19 into 18 and 1 is a statement about the polynomial rather than something the drawn shapes can be measured to show.
And the divergence of the Euler–Maclaurin series cannot be seen in any picture of a staircase, because it concerns the corrections for a non-polynomial function continued to very high order. The Bernoulli numbers’ growth is the evidence, and it is shown only up to .
A curve that explains the triangular numbers again
The staircase reading also connects back to the figurate numbers where this started. The triangular number is the first staircase, and the eight-triangles picture that turns every odd square into eight triangles and a dot is a statement about how staircases of that kind fit inside squares. The pyramid numbers are the second staircase, and the six pyramids in a box are the polynomial multiplied by six and read as a solid. Each dimension has its own trick, and the tricks stop at three.
What the staircase over a curve replaces them with is a single mechanism: an integral for the bulk, a half-step for the edge, and an infinite family of corrections for the corners, each one a finer measurement of how the flat top of a bar differs from the curve it sits on. It works for every power and extends to every smooth function, and the same comparison of bars with a curve that defines the integral turns out, carried to its corrections, to be the thing that computes the sums the integral was defined to approximate.
Still open: whether the odd zeta values are like the even ones
The even zeta values are rational multiples of powers of , with a Bernoulli number fixing the rational, and all of them are transcendental because is. Nothing like that is known for the odd values. was proved irrational by Roger Apéry in 1978, in an argument so unexpected that it was checked line by line before anyone believed it. Since then it has been shown that infinitely many of are irrational, and that at least one of is.
Nobody knows whether is irrational, and nobody knows whether is a rational multiple of — the analogue of the even case — though it is universally expected not to be. The Bernoulli numbers answer the even half of the question completely, and there is no known sequence of rational numbers that plays their part for the odd half.
The polynomial in every staircase
A sum of whole-number powers looks like the most discrete thing imaginable, a list of integers added up. Its formula turns out to be a continuous object — the area under a curve — with a sequence of corrections, and the corrections are organised by one list of rational numbers that shows up again in the zeta function, in the trapezium rule, and in the Taylor series of .
The staircase is the reason. A bar has a flat top and a curve does not, and every term after the first is a more precise account of that one difference: half a step, then the bend, then the bend of the bend — a list that stops for polynomials and, for everything else, first shrinks and then grows past every bound.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A rectangle grown on two sides — both name approximation, integral
- A series that converges nowhere — both name approximation, asymptotic series
- Averaging down the triangle — both name approximation, polynomial
- Counting what has no formula — both name approximation, integral
- The staircase that is not the diagonal — both name approximation, riemann sum
Named objects
A dashed tag is an object no other essay names yet.
ApproximationAsymptotic seriesError termFigurate numbersIntegralPolynomialRiemann sumTriangular numbers