Skip to content
Study Hall
Lesson 1 of 4Number Sets and Powers
Unit 1 · Lesson 1 of 4

Number Sets: Natural to Real

Numbers come in families that fit inside each other: natural, whole, integers, rational and real, with the irrational numbers filling the gaps. Learn to classify any number, and see why there is always another number in between and what it means to get closer and closer to a limit.

7 min read5 quick checks11 practice questionsAsk AI about this →

Key things to remember

  1. 1; the irrational numbers are real but sit outside .
  2. 2Rational: can be written as with integers , and . Its decimal terminates or repeats.
  3. 3Irrational: its decimal never ends and never repeats (e.g. , ).
  4. 4For a whole number , is rational only when is a perfect square.
  5. 5Density: between any two different rational numbers there is another, such as their average .
  6. 6The running totals of approach the limit 1 without ever passing it; the endless sum equals 1.

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

SetSymbolWhat it containsExamples
Natural numbersThe counting numbers 1, 2, 3, 4, …1, 7, 250
Whole numbersThe natural numbers and 00, 1, 7, 250
IntegersThe whole numbers and their opposites: …, −2, −1, 0, 1, 2, …−15, −1, 0, 42
Rational numbersAny number that can be written as , where and are integers and , , ,
Irrational numbersNumbers that cannot be written as a fraction of integers; as decimals they never end and never repeat, ,
Real numbersAll the rational numbers and all the irrational numbers togetherevery number on the number line
The six number sets used in this course. Each row from natural to rational contains the row above it.

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.

Real numbers (R)Rational numbers (Q)Integers (Z)Whole (W)Natural (N)3/4−2.50.333…−7/3−1−15−200017250Irrationalnumbers√2π√101.010010001…never ends,never repeats
Fig 1Nested boxes for the natural, whole, integer and rational numbers, with the irrational numbers in a separate box, all inside the real numbers, each with sample members.
Quick checkTry it before you read on
1
Which statement is true?
VideoJensenMath, an Ontario math teacher, walks through the natural numbers, whole numbers, integers, rationals, irrationals and reals, showing how each set fits inside the next. Watch it to check your own picture of the nested number sets.Watch on YouTube

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.

Square roots of whole numbers
The square root of a whole number is rational only when the number is a perfect square (0, 1, 4, 9, 16, 25, …). So is rational (in fact a natural number), while and are irrational. A square root sign alone does not make a number irrational.
Subtracting removes the endless repeating tail, which proves a repeating decimal is rational.
Quick checkTry it before you read on
1
Which of these numbers is rational?
Quick checkTry it before you read on
2
Write as a fraction in lowest terms.
VideoKhan Academy uses the same trick as this lesson: multiply the repeating decimal by a power of 10 and subtract so the endless tail cancels. It shows why every repeating decimal is a fraction, and so rational.Watch on YouTube

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.

Pick two rationals: 1/2 and 3/401/41/23/41Zoom in. Their average: (1/2 + 3/4) ÷ 2 = 5/81/20.55/80.6253/40.75Zoom in again: (1/2 + 5/8) ÷ 2 = 9/161/20.59/160.56255/80.625Keep averaging and zooming: there is always another rational number in between.
Fig 2Three number lines, each zooming in on part of the one above: from 0 to 1, then from 1/2 to 3/4 with their average 5/8 marked, then from 1/2 to 5/8 with their average 9/16 marked.
Quick checkTry it before you read on
1
What number is exactly halfway between 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 addedRunning totalDecimalDistance still left to 1
10.5
20.75
30.875
40.9375
10about 0.999
Running totals of one half plus one quarter plus one eighth and so on. The gap to 1 halves each time.
Each step covers half of the distance that is left0wall: 1 m1 term: 1/21/2 left2 terms: 3/41/4 left3 terms: 7/81/8 left4 terms: 15/161/16 left5 terms: 31/321/32 leftForever: 1the limit: the endless sum is exactly 10 left
Fig 3Bars for the walk toward a wall 1 m away after 1 to 5 steps, each step covering half of the distance left. The newest step is in solid colour and the dashed gap to the wall halves each time; only the endless sum reaches the wall.
Infinity is not a real number
You will not find on the number line, and it does not follow ordinary arithmetic rules. Use it to describe "no end" or "gets bigger without limit," not as a value to substitute into a calculation.
Quick checkTry it before you read on
1
After adding 5 terms of , how far is the running total from 1?

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Classify each number by listing every set it belongs to: , , , , , .
Example 2
Find three rational numbers between and .
Example 3
Write the repeating decimal as a fraction in lowest terms.
Example 4
In the sum , how many terms must you add before the running total is within 0.001 of 1?

Where marks get lost

  • Thinking every square root is irrational. is a natural number; only square roots of non-perfect squares (like ) are irrational.
  • Treating as rational because "" or "." Both are only approximations; itself is irrational.
  • Putting a number in only one set. The number 5 is natural and whole and an integer and rational and real.
  • Calling 0 a natural number in this course, or calling a whole number. Natural numbers start at 1; whole numbers include 0 but no negatives.
  • Deciding a decimal terminates because the calculator screen stops. The screen rounds to about 10 digits; looks like 1.732050808 but continues forever.

Flashcards 9

Natural numbers
Whole numbers
Integers
Rational number
+ 5 more

Practice

1
Which number is irrational?
2
What is the smallest number set that contains ?
3
Order the number sets from the smallest (innermost) to the largest (outermost).
  1. 1Real numbers
  2. 2Rational numbers
  3. 3Integers
  4. 4Natural numbers
  5. 5Whole numbers
4
Match each number to the SMALLEST set it belongs to.
7
0
−4
5
Find the number exactly halfway between and . Give it as a fraction or an exact decimal.
6
Find the exact value of . Give a fraction or an exact decimal.
7
Which statement is true?
8
How many rational numbers are there between 0 and 1?
9
Write as a fraction.
10
Which number lies between 3 and 4 AND is irrational?
11
As you keep adding terms of , what happens to the running total?

Spot a mistake on this page? Let us know