Hilbert's Hotel Paradox Calculator
Simulate how a fully occupied hotel with infinitely many rooms can still accommodate one guest, a finite group, or an infinite bus.
About Hilbert's Hotel paradox
Hilbert's Hotel examples
| Arrival | Assignment rule | Space created |
|---|---|---|
| One new guest | Guest n moves to room n + 1 | Room 1 is free for the arrival. |
| Five new guests | Guest n moves to room n + 5 | Rooms 1 through 5 become available. |
| One infinite bus | Old guest n goes to 2n; passenger n goes to 2n - 1 | Even rooms hold old guests and odd rooms hold bus passengers. |
How to use the infinite hotel simulator
- Choose whether one guest, a finite group, or one infinite bus arrives.
- Enter the positive whole-number index of the guest or passenger you want to trace.
- Select Simulate room assignment to apply the scenario's one-to-one mapping.
- Compare the old-guest and new-arrival assignments in the result panel.
Hilbert's Hotel FAQ
How can a full hotel accept another guest?
Each current guest moves from room n to room n plus 1. This preserves a room for every existing guest while freeing room 1.
Can the hotel accept infinitely many new guests?
Yes, if the arrivals are countably infinite. Existing guests move to even rooms and the new passengers take odd rooms, producing a unique room for everyone.
Does the reassignment ever finish?
The argument describes a complete mathematical mapping rather than people moving one after another in real time. Every numbered guest has an immediately defined destination, so no last move is needed.
What does countably infinite mean?
A set is countably infinite when its members can be paired one-to-one with the positive whole numbers. The natural numbers, even numbers, and integers are standard examples.
Why do the even numbers have the same size as all natural numbers?
The rule n maps to 2n and pairs every natural number with exactly one even number. Infinite sets can therefore have the same cardinality as a proper subset of themselves.