Think about the different jobs numbers do in one ordinary day. You count 3 people in line ahead of you. The morning temperature is −8 degrees. You and two friends split a pizza, so each person gets of it. A square tile is 30 cm on each side, and the diagonal across it is cm, about 42.4 cm, a length whose decimal never ends and never repeats. Each of those numbers belongs to a different "family." Mathematicians sort numbers into number sets because each set allows something the smaller sets cannot: whole numbers cannot show a temperature below zero, and integers cannot show a third of a pizza. Knowing which set a number belongs to tells you what it can describe and what you can safely do with it.
The number sets, one inside the next
| Set | Symbol | What it contains | Examples |
|---|---|---|---|
| Natural numbers | The counting numbers 1, 2, 3, 4, … | 1, 7, 250 | |
| Whole numbers | The natural numbers and 0 | 0, 1, 7, 250 | |
| Integers | The whole numbers and their opposites: …, −2, −1, 0, 1, 2, … | −15, −1, 0, 42 | |
| Rational numbers | Any number that can be written as , where and are integers and | , , , | |
| Irrational numbers | Numbers that cannot be written as a fraction of integers; as decimals they never end and never repeat | , , | |
| Real numbers | All the rational numbers and all the irrational numbers together | every number on the number line |
The first four sets nest inside each other like boxes: every natural number is also a whole number, every whole number is also an integer, and every integer is also rational, because any integer can be written over 1 (for example ). We write this as , where means "is inside." The irrational numbers are different: they sit beside the rational numbers, not inside them. A real number is either rational or irrational, never both. In this course the natural numbers start at 1; some mathematicians include 0, so check how a question defines them.
Rational or irrational? Look at the decimal
Every rational number has a decimal that either terminates (stops) or repeats a block of digits forever. For example, terminates, and repeats (the bar marks the repeating block). An irrational number has a decimal that does neither: and go on forever with no repeating block. Be careful with two traps. First, a calculator screen shows only about 10 digits, so it cannot tell you whether a decimal repeats; on a screen looks like it stops, but it does not. Second, and are rational approximations of , not itself.
Density: there is always another number in between
There is no integer between 3 and 4, and no integer between and 0. The integers have gaps. The rational numbers do not: between any two different rational numbers you can always find another one. The easiest way is to take their average (add them and divide by 2), which lands exactly halfway. Between and sits . Then between and sits , and you can keep going forever. This property is called density, and it means there are infinitely many rational numbers between any two different rational numbers, even very close ones like 0.1 and 0.11.
Infinity and limits through patterns
Infinity () is not a number you can reach; it describes a process that never ends, like counting 1, 2, 3, … with no last number. Patterns that go on forever can still settle down. Picture walking toward a wall 1 m away: first you walk half the distance, then half of what is left, then half again. Your total distance is . After each step you are closer to 1 m, and you never pass it. We say the running total approaches the limit 1. No running total with a finite number of terms ever equals 1, but the value of the endless sum is defined to be its limit, so exactly. The same idea explains why (nines forever) equals exactly 1: it is the limit of , whose gaps to 1 are . A quick check: since , multiplying both sides by 3 gives .
| Terms added | Running total | Decimal | Distance still left to 1 |
|---|---|---|---|
| 1 | 0.5 | ||
| 2 | 0.75 | ||
| 3 | 0.875 | ||
| 4 | 0.9375 | ||
| 10 | about 0.999 |