← All animations

๐Ÿจ Hilbert's Grand Hotel

Imagine a hotel with infinitely many rooms, numbered 1, 2, 3, โ€ฆ and tonight every single one is full. A weary traveller walks in asking for a room. At a normal hotel: "Sorry, no vacancy." But this hotel is infinite โ€” and that changes everything. It can always make room, even for infinitely many new guests at once. Scroll through to see how, and what it reveals about the strange arithmetic of infinity.

1. The hotel โ€” always room for more

The rooms run off forever to the right, toward โˆž, and every one is occupied (a guest dot sits in each). Yet there's always space. Run a scenario and watch the guests slide to new rooms, freeing exactly the space needed โ€” without ever evicting anyone or running out of rooms.

All rooms full.
n โ†’ n+1. One guest arrives. Ask the guest in room n to move to room n+1. Everyone still has a room (room n+1 always exists), and room 1 is now empty for the newcomer. โˆž + 1 = โˆž.

2. The point โ€” these infinities are the same size

The trick works because of bijection: a perfect one-to-one pairing. If you can pair every element of one set with exactly one element of โ„• = {1, 2, 3, โ€ฆ}, the two sets have the same size โ€” the same cardinality, called โ„ตโ‚€ ("aleph-null"). Below, each set is paired one-to-one with the counting numbers. The connecting lines never miss and never double up.

โ„• โ†” evens: half of infinity is still infinity.
Same size! The even numbers are a strict subset of โ„• โ€” yet pairing n โ†” 2n matches them up perfectly, so |evens| = |โ„•| = โ„ตโ‚€. Likewise all of โ„ค (โ€ฆ, โˆ’2, โˆ’1, 0, 1, 2, โ€ฆ) zig-zags into a single list, so |โ„ค| = โ„ตโ‚€. This is what "2 ร— โˆž = โˆž" really means: any set that can be listed out โ€” put in a row indexed by 1, 2, 3, โ€ฆ โ€” is countably infinite. But not every infinity is countable: Cantor showed the real numbers cannot be listed this way โ€” a strictly bigger infinity. More infinities lie beyond. ๐Ÿคฏ

3. So what does "countable" mean?

A set is countable if its members can be put in a one-to-one correspondence with the counting numbers โ„• โ€” equivalently, if you could (in principle) list them out as a 1st, 2nd, 3rd, โ€ฆ and reach any particular one in a finite number of steps.

The hotel's three rescues are exactly three such lists:

It feels like cheating, but every step is a legitimate, well-defined function. Infinity isn't a very large number โ€” it's a size, and arithmetic with it follows different (yet perfectly consistent) rules. The real surprise, from Georg Cantor, is that there are different sizes of infinity: the hotel can house every countable crowd, but there is no hotel โ€” countable or otherwise โ€” that can list all the real numbers.