I have a weakness for beautiful math formulae. If you share this admittedly nerdy interest, this post is for you, else just browse through or read my next post. 🙂
What I’m going to do today is share a powerful formula arising in number theory. The formula is (for nerds) a joy to behold. I will state the formula and the steps leading to it (which is beautiful in itself). You don’t to have a background in advanced math to understand the derivation. All that’s required is a bit of algebra, and some degree of patience on your part. That’s all.
The formula relates to a numerical series called Sums of Powers which pop up regularly in science and engineering. So it isn’t just eye candy; sum of power series have real practical value.
Let’s begin.
The simplest example of a sum of power series is the following:
where denotes the sum of the first n terms which are all natural numbers (i.e., positive whole numbers or integers). To compute , you can manually add up the first n terms in the expression, which is tedious and uncool. Alternatively, you could get it in one second by using the following nifty formula:
The next power of sum series is one where the nth term (now denoted by ) is obtained by adding up the squares of consecutive integers.
Again, there is a neat formula for this sum:
To see how useful this formula is, suppose you want to compute the value of
You could do that by adding 10000 terms which is boring and tedious, or you could use the formula for .
Where did this wonderful formula come from? To find out, we will run through some algebra. The derivation will also point the way to a more general formula – one that allows us to compute the nth term of a power of sums involving any integer. Here goes.
Derivation of
Recall,
For reasons that will become apparent in a moment, we will look at the following telescoping sum involving cubes:
Using summation notation, we can write this as
Next, expand the expression using the binomial formula:
and substitute this into the telescoping sum to get
Now we split the sum into three pieces and add each piece individually.
=
But we already know that is equal to , so we can solve for :
That was a lot of algebra, but the reward is the beautiful formula
The General Formula
The next problem we are going to tackle is to derive a formula similar in spirit to but where the series involve adding sums of powers for general . Note: if you want to skip the derivations below, that’s fine. Just head over to the last section under “Theorem” and admire the general formula.
I will use to denote the general series we are interested in. We write
We bring in the telescoping sum method that worked so well earlier and write
,
which, using summation notation, becomes
As before, we expand using the binomial formula to get
The last term (the term) is , so it cancels the in the telescoping sum, leaving
Now switch the order of the two sums, and lo and behold, we find the power sums appearing
You may ask, what good is a formula like this, which involves all sorts of quantities that we don’t know? The answer is that it relates each of with the previous ones.
To make this clear, we pull off the last term in the sum, i.e., the term with , and move all the other terms to the other side. We now have
Now, , so dividing by k gives the recursive formula
We call this a recursive formula for the ‘s because it expresses each in terms of the previous ones. Let’s use the recursive formula to find a new power sum formula. Taking in the recursive formula gives
We already know from earlier that
and
while the value of
Substituting these values into yields
Thus
For example,
= 2,500,500,025,000,000.
Huge numbers arising from sums of high powers is the reason why recursive formulas for calculating them are so powerful.
Its time to summarize everything we’ve done in the form of a theorem:
Sum of Powers Theorem Let be an integer. There is a polynomial of degree k+1 such that for every value of . These polynomials can be computed using the recursive formula
Reference to the polynomial comes from the fact that each successive power sum is simply the polynomial term added to some multiples of the previous power sums. Special cases of this formula, for the low powers of k = 0, 1, 2, 3, and 4, were given earlier.