← Laboratorium Mathematics · experiment

Mathematics · sets, series, fractals

Infinity paradoxes that work

In a hotel with infinitely many rooms, even when every room is taken, there is always space for one more guest. Infinitely many steps can take a finite time, a curve with an infinite perimeter can enclose a finite area, and some infinities are bigger than others. Every paradox on this page can be explained: you will see what is merely surprising and what would be a genuine contradiction.

ℵ0 < 2ℵ0 = 𝔠 12 + 14 + 18 + ⋯ = 1 0.999… = 1 D = log 4log 3 ≈ 1.26
Q–Y modes Challenges 0/6

Laboratorium · Hilbert's Hotel

All rooms occupied

A full hotel, and still there's room

Every room has a guest. We don't throw anyone out — we just ask everyone to move to another room at the same time, following a simple rule.

Method for ∞ buses

View

every room taken

The hotel is full: room n holds guest no. n. A new guest arrives — what will the receptionist do?

Front-desk moves0
Free roomsnone

Who gets which room?

row = bus, column = seat

The zigzag runs along successive diagonals of the table. Every diagonal is finite, so every passenger on every bus eventually gets a room number — and no room is left empty.

Galileo's paradox (1638)

ResolutionThere are “fewer” squares in the sense that they get rarer and rarer. But there are just as many in the sense of pairs: n ↔ n². For infinite sets, a part can be the same size as the whole — that is not a contradiction but the very definition of an infinite set (Dedekind, 1888).

“Just as many” = pairs

Two sets have the same cardinality if their elements can be paired up so that nobody is left alone. Such a pairing is a bijection (a one-to-one correspondence). No counting needed — just match them up, like chairs and people in a room.

Countable sets

A set is countable if its elements can be numbered 1, 2, 3, … The cardinality of the natural numbers is aleph-null, ℵ0. The even numbers, the integers, the primes and — as you will see in the W tab — all fractions are countable.

What's the catch?

There is no contradiction: for finite hotels, “full” means “no vacancy.” For infinite ones that is simply false. Only our intuition, trained on a finite world, is surprised. A real hotel with infinitely many rooms can't be built, of course.

MathematicsHow to count infinity

Cardinality and bijection

Two sets have the same cardinality if there is a bijection between them — a one-to-one correspondence in which every element has exactly one partner. A set is infinite exactly when it is the same size as some proper part of itself (Dedekind's definition). Hilbert's Hotel and Galileo's paradox show exactly this.

n ↦ n + 1, n ↦ 2n, (b, k) ↦ d(d + 1)2 + j + 1

The last formula is the diagonal zigzag: passenger k from bus b (b = 0 means the original guests) lies on diagonal d = b + k − 1, at position j (counted alternately from the top and from the bottom). Everyone gets a single room of their own, and every room gets a guest.

Countable and uncountable

|ℕ| = |ℤ| = |ℚ| = ℵ0, |ℝ| = 2ℵ0 = 𝔠 > ℵ0, |P(A)| > |A|

The natural numbers, the integers and the rationals can be numbered — they are countable sets. The real numbers cannot: Cantor's diagonal turns any list into a number not on it. A segment, a line and a square all have the same number of points — the cardinality of the continuum.

Series: convergent and divergent

a + aq + aq² + ⋯ = a1 − q (|q| < 1), Hn = 1 + 12 + ⋯ + 1n ≈ ln n + γ

The sum of a series is the limit of its partial sums, if it exists — then the series is convergent. Achilles takes infinitely many steps, but their durations form a convergent series: 10 + 1 + 0.1 + ⋯ = 11.11… s. The harmonic series is divergent, even though its terms shrink to zero — it passes 10 only after 12,367 terms. The alternating harmonic series 1 − ½ + ⅓ − ⋯ = ln 2 converges only conditionally, so rearranging its terms changes its sum.

Fractals

Pn = P0·(43)n → ∞, An = A0·(85 − 35(49)n) → 85A0, D = log Nlog s

A fractal is a shape whose parts, when magnified, resemble the whole. Its fractal dimension D tells you how many (N) copies scaled down s times you need to rebuild the whole. Gabriel's horn combines a finite volume π with an infinite surface area.

Paradox or contradiction?

Most “paradoxes of infinity” are surprises: they defy intuition, but not logic (the hotel, Galileo, Zeno, Gabriel's horn, Banach–Tarski). Russell's paradox is a genuine contradiction — it was removed by building set theory on axioms. Thomson's lamp and Grandi's series show that not every infinite process has an outcome.

Simplifications on this page

The screen always shows a finite fragment: a few rooms, digits, list rows, steps or fractal levels. The coastline is computer-generated and has limited precision, so with a very short ruler the result would stop growing. The Banach–Tarski animation is only a metaphor — the real pieces can't be drawn. The tower of blocks assumes rigid, identical blocks and exact positions.

Did you know…?

  • There are exactly as many even numbers as natural numbers: just pair them up, n ↔ 2n. The same goes for the primes and for fractions.
  • Wacław Sierpiński (1882–1969), creator of the famous triangle, was one of the pillars of the Warsaw School of Mathematics. He wrote more than 700 papers, and a crater on the Moon is named after him.
  • Gabriel's horn has a finite volume π but an infinite surface area: there is enough paint to fill it, but not to coat its walls with a layer of constant thickness.

Challenges

  • Infinite busCheck an infinite busload into the full hotel.not completed
  • Not on the listBuild a number that is not on the list using the diagonal method.not completed
  • Twenty Zeno stepsTake Achilles through 20 Zeno steps.not completed
  • Rearranged seriesRearrange the series so that its sum is 2.not completed
  • Koch snowflakeDraw a level-5 Koch snowflake and compare the perimeter.not completed
  • Block over the abyssBy dragging the blocks, make a block stick out beyond the table edge by more than its own length.not completed

Challenges check themselves. Your progress is saved in this browser.

See also

Euclid proved that there are infinitely many primes; π can be written as an infinite series; and in “Limits and integrals” you can compute the area under 1/x² just as for Gabriel's horn.