ZeroLimits

Infinities are weird and fun

Given the name of my site is ZeroLimits, I figured it was about time we talk about infinities.

You've probably heard of infinity before as the "largest number" or something along those lines. That might make sense at first glance, but the definition breaks down pretty quickly if you think about it. How can there be a largest number? Can't you just add 1?

Indeed, you can:

∞+1=∞

That makes no sense. Using normal arithmetic, that would mean you could subtract ∞ from both sides and get:

∞+1=∞∞+1−∞=∞−∞1=0

which we know is nonsensical. So what's going on?

Well we made a pretty strong assumption about the nature of ∞, which is that ∞−∞=0, which we can very clearly see from the first line that isn't true:

∞+1=∞1=∞−∞

But we could have replaced 1 with any number, including infinity, and the equation would've held true. So clearly infinity isn't like most numbers.

In fact, infinity is not a number at all, but the idea that something goes on forever and ever and ever.

Countable infinity

But how do we know something truly goes on forever, rather than just going for a really long time and then stopping. Well one option would be to start counting it, and if we stop counting at some point then whatever we were counting must be finite. Let's start with the whole (or natural) numbers, denoted ℕ:

ℕ={0,1,2,3,4,...}

These are probably the numbers you're most familiar with, and you're probably aware that they go on forever. The size of the set of natural numbers |ℕ|=∞, meaning this set is infinite. Specifically, this set is countably infinite, because you can count the elements in the set by, well, the numbers in the set. We can map the elements of this set to the natural numbers, which just means we can list them out in an ordered list. Pretty easy given these are the natural numbers.

ℕ↦ℕ0↦01↦12↦23↦34↦4⋮n↦n

The real fun begins when we try finding the size of the set of even numbers, let's call it ℰ︀:

ℰ︀={0,2,4,6,8,10,...}

You'd think this would be half the size of the natural number set, given we're only including half the natural numbers by excluding all the odd numbers. However, we can map every element in ℰ︀to a natural number:

ℕ↦ℰ︀0↦01↦22↦43↦6⋮n↦2n

That's just multiplying by two. However, it also means that the size of the set of even numbers is exactly equal to the size of the set of natural numbers. There are just as many even numbers as natural numbers! Isn't that crazy? It's the same thing for the odd numbers:

0↦11↦32↦53↦7⋮n↦2n+1

Again, there are exactly the same amount of odd numbers as natural numbers! If you do the arithmetic directly:

size of ℕ=∞size of ℰ︀=ℕ2=∞2=∞

If we now add the negative numbers, we get the set of integers:

ℤ={...,−3,−2,−1,0,1,2,3,...}

Again, it might seem intuitive to say this is twice as big as the natural number set, given we have a whole negative number line to cover. We also can't really start counting it from the smallest number, given we'd have to go all the way to negative infinity. So is this still countably infinite?

Yes! We just have to get slightly creative with how we count:

0↦01↦−12↦13↦−24↦2⋮n↦(−1)n⌈n2⌉

There are just as many integers are there are whole numbers as there are even numbers! The next biggest common set is the set of rational numbers ℚ, which is basically just all the possible combinations of two integers in disguise since nm can be written as a pair (n,m), where n and m are integers.

We can simplify this a bit by considering only the positive rational numbers (meaning n and m are natural numbers), and just interpolating them with the negative ones like we did for the integers. But how do you go about counting a pair of infinite sets?

First, let's make a table to generate all the rational numbers:

123456...n
11/12/13/14/15/16/1...n/1
21/22/23/24/25/26/2...n/2
31/32/33/34/35/36/3...n/3
41/42/43/44/45/46/4...n/4
51/52/53/54/55/56/5...n/5
61/62/63/64/65/66/6...n/6
...........................
m1/m2/m3/m4/m5/m6/m...n/m

Then we just snake through the numbers from the top left to get our list:

{11,12,21,31,22,13,14,23,32,41,...}

which we can then map to the natural numbers, showing that the rational numbers are countably infinite! Remember, this means that there are just as many rational numbers as there are natural numbers, integers, even numbers and odd numbers:

|ℕ|=|{even numbers}|=|{odd numbers}|=|ℤ|=|ℚ|

Uncountable infinity

We're on such a hot streak, surely we can easily take on the next challenge, the real numbers ℝ! These are any decimal number, even those that can't be represented by rational numbers, like 2, but that shouldn't be a problem for us. So let's start!

Uh... where do we start? Okay let's write 0. But then what? We can't write 0.1 because there's 0.01 before it. We can't write 0.01 because there's 0.001 before that, and so on. The next step up from 0 is 0. following by an infinite number of zeroes and then a 1 but, as we'll soon see, that's just equal to 0.

We can't count the real numbers, it's uncountably infinite. The complex numbers ℂ are therefore also uncountably infinite, as they're a superset of the real numbers.

Some different sets of numbers as a Venn diagram. Red means they're countably infinite, blue means they're uncountably infinite.
Some different sets of numbers as a Venn diagram. Red means they're countably infinite, blue means they're uncountably infinite.

Repeating decimals

I mentioned earlier that the next step after 0 would be 0. followed by an infinite number of 0s and then a 1. Of course, there can't be a 1 at the end because there's an infinite number of 0s, so it's effectively

0.000...=0.0_

which we can pretty obviously say is equal to 0.

It gets a bit more confusing when you look at something like

0.999...=0.9_

This looks like its less than 1 by a very very very small amount. I claim this is equal to 1. My proof?

x=0.9_10x=9.9_10x−x=9.9_−0.9_9x=9x=1

That 9.9_−0.9_=9 step works because there are an infinite number of 9s which all perfectly cancel out.

9.999999...−0.999999...9.000000...

Like the 0.0_ case, the 9s never stop. The actual mathematical series here is:

∑i=1N910i=910+9100+91000+⋯+910N

Which gets closer and closer to 1 as N goes to infinity. This is also why there are no irrational numbers with repeating decimals, since you can always use this trick to simplify the decimal into a rational. For instance:

x=0.142857_1000000x=142857.142857_1000000x−x=142857.142857_−0.142857_999999x=142857x=142857999999=17

Another example:

x=0.1234_10000x=1234.1234_9999x=1234x=12349999

Natural series

And for my final trick, I'd like to leave you with this:

1+2+3+···=−112

Bizarre, I know. Before I explain this, I want to first explain what a series is, and the difference from a sequence.

Sequences and series

In short, a sequence is a list of numbers following some rule. For example, the Fibonacci sequence:

0,1,1,2,3,5,8,13,21,34,55,89,...

which follows the rule:

F0=0F1=1Fn=Fn−1+Fn−2

which means that the nth Fibonacci number is the sum of the previous two Fibonacci numbers, with the sequence starting at 0 and 1. Similarly, the natural number sequence is:

0,1,2,3,4,5,6,7,8,9,...

where:

N0=0Nn=Nn−1+1

On the other hand, a series is the sum of a sequence. The natural number series is then:

0+1+2+3+4+5+6+7+8+9+⋯

or in more concise notation:

∑n=0∞n

Convergence and divergence

Logically, you can see that the natural number series keeps getting larger and larger as we add more numbers. This is called a divergent series, because it never "collapses" toward a single value. Another divergent series is:

∑n=0∞(−1)n

which flip-flops between 0 and 1. You can see this pretty easily if you write it out:

1+(−1)+1+(−1)+1+(−1)+1+(−1)+...=1−1+1−1+1−1+1−1+...

We can group these summations in two ways and get two different answers:

(1−1)+(1−1)+(1−1)+(1−1)+...=01+(−1+1)+(−1+1)+(−1+1)+...=1

On the other hand, we have something like Zeno's dichotomy paradox. Let's say we have a 2 meter racetrack. To go across the length of the racetrack, you first have to go half the distance, so 1 m. Then you have to go half the remaining distance, so 0.5 m. Then half the remaining distance again, 0.25 m, and so on. You'll forever be covering half the remaining distance without ever reaching the end. What you effectively have is a sum that looks like:

1+12+14+18+116+···=∑n=0∞12n

On one hand, this is an infinite series, so it should sum to infinity since you're adding positive numbers forever, even if they're getting smaller and smaller. On the other hand, you know the length of that racetrack is 2, so the sum of the distances should be 2 m.

Your second intuition is correct, this is a series that converges to 2, an aptly named convergent series:

∑n=0∞12n=2
The graph of {}y=\sum_{n=0}^{x} \frac{1}{2^{n}}{}. The red line gets closer and closer to {}y=2{} but never reaches it.
The graph of y=∑n=0x12n. The red line gets closer and closer to y=2 but never reaches it.

What about something like this:

∑n=1∞1n

That looks about the same, a sum of ever decreasing fractions. Would it ever converge? Surprisingly, no; this goes on to infinity, albeit very slowly; it's a divergent series.

Now that we know about convergent and divergent series, we can go back to our initial problem:

1+2+3+4+5+6+7+···=−112

We saw earlier that this was a divergent series, so how are we converging it, and to a negative fraction no less? I'll give you a proof by Srinivas Ramanujan. We start with:

c=1+2+3+4+5+6+⋯

This looks pretty similar to the power series expansion:

1(1+x)2=1−2x+3x2−4x3+⋯

with x=1. A power series expansion is basically a way to write a complicated expression in polynomial form (a+bx+cx2+dx3+⋯) so its easier to compute or at least approximate. That gives us:

1(1+1)2=1−2+3−4+⋯=122=14

To get c to be in this form, we can just subtract 4 from the +2, 8 from the +4 and so on. So we just need to subtract 4c from c:

c=1+2+3+4+5+6+⋯4c=4+8+12+⋯c−4c=1−2+3−4+5−6+⋯

We now have:

−3c=1−2+3−4+5−6+⋯

Using our earlier result for that power series expansion, we can then do:

−3c=14⟹c=14×−3=−112

Therefore:

1+2+3+4+5+6+⋯=−112

Wacky stuff, right?