Galileo noticed in 1638 that every natural number has a square, so there are as many squares as numbers, yet most numbers are not squares. The resolution came with Cantor: infinite sets can be put in one-to-one correspondence with proper subsets of themselves.
How to use the Galileo’s Paradox Calculator
- From
- To
Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.
How it works
Enter the range of natural numbers. The calculator counts how many there are, how many are perfect squares and lists the squares.
Formula
Squares between a and b: ⌊√b⌋ − ⌈√a⌉ + 1; share ≈ 1/√n up to n
Worked example
Inputs: From: 1; To: 100.
Results: Natural numbers in the range = 100; Perfect squares in the range = 10; Share of squares = 10% of the numbers are perfect squares; The squares = 1, 4, 9, 16, 25, 36, 49, 64, 81, 100.
Key terms
- Bijection
- A one-to-one correspondence.
Frequently asked questions
What is Galileo's paradox?
Squares are a "small" part of the numbers, yet they can be paired one-to-one with all of them.
How was it resolved?
Cantor defined infinite sets of equal size by one-to-one correspondence.
Are squares rare?
Up to n there are only about √n of them.
What is a Dedekind-infinite set?
One that is the same size as one of its proper subsets.