Zeta and the Prime Numbers
Whenever my kids ask a good question, I like to do my best to give them a good answer. So I was pretty frustrated when Gunnar asked me
If I take one half, plus one third, plus one fifth, plus for all of the prime numbers, will that make one?
The answer is no, the sum just keeps growing, getting larger than any number you can think of. But I have no idea how to explain it to him.
Here I’ll give the simplest proof I can think of, relying only on a little bit of Algebra II. If anyone can do better, please let me know! I’m not aiming for rigor here, although I’m happy to provide rigor on request. I’m just thinking about how I can get my boys interested in this stuff when the time comes. Or at least explain to them why I love it.
Adding All the Numbers
I want to start by playing some games with multiplication and addition.
First, notice that
For the moment, don’t try to add the numbers. Just think of addition as a way to write a list of numbers. This example shows how we can use multiplication to take two short lists and make a longer list.
What if we want a 4 to show up in the list? We can just write
Now we are missing 5, so we fix it like this
We can keep going like this: multiply by (1 + 7) to put 7 in the list, multiply by (1 + 2 + 4 + 8 ) instead of (1 + 2 + 4) to get 8 in the list, multiply by (1 + 3 + 9) instead of (1 + 3) to put 9 in the list. Play around with it, and you’ll see that
We can keep going like this, and will hit a hole in our list every time we hit either (1) a new prime number, or (2) a power of a prime number that we’ve already seen. We know how to fill in those holes
- When we hit a new prime number,
, multiply by
- When we hit a power of a prime number that we’ve already seen, say
, we will already have a term in our product that looks like
, so just add
to this term, giving you
If we keep going this way, we’ll put every number in our long list and no number will show up twice (this is another way to say that numbers can be uniquely factored into primes). We’ll end up with this interesting equation
Of course this is meaningless. Interesting, but meaningless. But interesting is good enough for me, so let’s charge forward.
In my first post in this series I introduced the Sigma notation for sums, so we didn’t have to write out all of those +-signs and ‘…’ marks. We can use that to make our formula a little more concise and precise here:
But we still have an infinite number of multiplications cluttering up the equation. We can use the Greek capital Pi, , just like we used Sigma before to take care of this. So, for example
is just a shorthand way to write
Using the Pi notation, we can write
Still meaningless, but it looks impressive!
Back to the zeta function
Now let’s make it meaningful. We weren’t interested in adding up whole numbers anyway. In our last post we found that when we can define the Riemann zeta function
Well we can play the same sort of list-making games with the numbers that we did with the whole numbers. For example
And so on. Try it.
This happens because the function is a homomorphism:
. [Excercise: Verify this.] If we repeat our argument from above, we’ll be able to write down a very fancy looking formula that actually means something
But wait a minute. Look at all of those sums on the left hand side — the ones that look like . These are just geometric series, and we know that this just equals
! So we can simplify the expression and write
This is called Euler’s product formula for the zeta function.
This is starting to look good. We’ve found a way to write the zeta function that only involves the prime numbers. And it is a neat expression, an analytic way to say that every number can be uniquely factored into primes. Any number that can’t be factored wouldn’t show up in our list-building exercises, and any number that can be factored two ways would have shown up in our list twice. I never proved that this can’t happen, so you might want to think about it a little more.
Turning products into sums
The problem is that we have an infinite product, and I had set out to study an infinite sum of primes. Luckily there is a function called the logarithm that turns multiplication into addition: . I’m going to use the natural logarithm because, well, it’s natural. (Unless you’re doing computer science, when it’s natural to let e = 2.) Applying logs gives us the equation
But it’s easy to check that (just look at
), so we can now write
Approximate, simplify, and control the error
Now as p gets big, the value is going to get really small. We know that
, so we would expect
to be really close to zero. If we knew how fast the logarithm function was changing near zero, we could get a pretty good estimate for these terms in the sum. Well here is a graph of the function
and the function
near
.
It turns out that is a pretty good approximation. If we could just swap this function for the log function it would be great! We’d have
Which is just the sort of sum we wanted to study. This is why we used the natural logarithm instead of , say a base 10 or base 2 logarithm: the natural logarithm is the only one that is well approximated by a line with slope 1. If we used a different logarithm, we’d get some messy looking constants in our approximation.
Now we should make sure that our approximation is good enough!
To do that, let’s plot the error we make when we swap for
and compare it to the function
.
Notice that if x is close to 1, our error is much bigger than , but as long as
, the error we make is certainlyless than
. For prime numbers p,
is always going to be less than a half, so we can write
But now we know that because the second sum ranges over all of the numbers, not just the primes. We also know, from our last post, that
So we can write
And we have a pretty good idea how big our sum over the primes must be.
Now here is the fun part: , as we saw in our last post. This means that
This can only happen if is infinite.
Earlier I said this means that there are “a lot” of primes — enough to make this sum go to infinity. In a later post I’ll go into some more detail about exactly what that means, but this is enough for today.
Now how do I explain that to a 5-year-old?


Happy Pi Day!
One half plus one third plus one fifth is already larger than one. So proved.
Uncle Scott
March 14, 2008 at 5:33 pm
Show off.
I guess they teach you that fancy stuff in the School of Foreign Service, eh?
I should have said that I had no idea how to explain that it was not only bigger than one, but it was bigger than any other number he could think of. Careless. I edited it. He already had me start adding the fractions by hand while we were waiting for his last karate class. I told him I had to stop at 13. It’s like the fraction excercise from hell.
What is Pi day?
Rolfe Schmidt
March 15, 2008 at 7:22 am
That is a great explanation and I’m going to bookmark it or perhaps even print it out.
Rolfe, my greatest problem with self-education is that I can’t stick with any one topic long enough to learn the technical details of what it takes to get it right. This is very true in math where it may take months of study to figure something out. About two years ago I really became fascinated with why PI is transcendental and my husband told me that if I worked my way through an Abstract Algebra book that I’d have my answer. I took him at his word, but as it turns out I can’t pick up on the concepts as quick as a math major can and so I’m going to have to stop and learn set theory and logic first. That is a whole lot of delay of gratification just to get to the answer to one question! Maybe I will do it though.
Myrtle
March 17, 2008 at 3:55 pm
Thanks Myrtle, I’m glad you enjoyed it. I thoroughly enjoy reading your blog, so the complement means even more.
I understand the problem you have with self-education, and I imagine a lot of people have it. I certainly do. I find that even though I rarely end up answering the questions that get me started, I learn a surprising amount of stuff on the way. Eventually the technical details accumulate. Let the Math majors be fast, I want to take my time and enjoy.
Why is PI transcendental? That’s a good question — you’ll have to dig deep into your algebra book for that. I know I don’t have a quick answer, although I’d like to. And logic can be a lot of fun too. So hopefully you’ll get some gratification on the way!
Rolfe Schmidt
March 17, 2008 at 8:13 pm
it’s worse than you think.
you’ll probably only get to
a proof that pi is *irrational*
in a first course in abstract algebra …
kibrolv
March 25, 2008 at 8:48 am
I just pulled out a couple of my Algebra books, and noticed that Hungerford punts on the question, he just says “See Herstein”.
Herstein gives a nice, if sort of magical, proof that e is transcendental. It doesn’t really require the infrastructure of Algebra, just a bit of Calculus and some patience with special polynomials. He doesn’t prove the result for
, he says it is hard and refers you to:
Niven’s A Simple Proof the
is Irrational to see why it is irrational, and
Transcendental Numbers by C.L. Siegel and Irrational Numbers by I.Niven
Now I’m curious.
By the way, thanks for the plug, V. I like the manifold pun.
Rolfe Schmidt
March 25, 2008 at 9:51 am
[...] A primer on the zeta function: you know this person knows how to break something down and present it in a clear way. It builds up, from smaller simple examples to build intuition, to a grand finish. [...]
And the blogosphere keeps marching on… « Continuous Everywhere but Differentiable Nowhere
March 27, 2008 at 6:01 pm
I got interested with studying the zeta function when I came across the strange result of getting sums for divergent series. For example 1+1+1+1+… = -1/2 or 1+2+3+4+…= -1/12.
I’m still clueless what it means exactly but hopefully not for long. Things should be clear once I get to understand your explanation.
supermario
May 12, 2008 at 7:04 am
supermario- Those are interesting sums, but you won’t find the explanation in this post. I only have a couple of minutes online right now. When I get a chance I give you a link to some good explanations…
Rolfe Schmidt
May 19, 2008 at 12:30 am