Galileo's Paradox of Infinity Calculator

Count natural numbers and perfect squares in a finite interval. Explore Galileo’s pairing between each natural number and its square.

Result
—

How to calculate

Take the lowest integer at or above the square root of the first endpoint and the highest integer at or below the square root of the last endpoint. Count the integer roots between those limits. For the infinite sets, send each natural number n to n².

Worked example

Use First natural number 1 · Last natural number 100. The result is 10 perfect squares among 100 natural numbers.

Input and result notes

Both endpoints are included. Enter nonnegative whole numbers with up to 100 digits. Zero is both a natural number and a perfect square in this calculator.

Omni explanation of finite counts and infinite cardinality

Related calculators