When you first learnt to count, every num­ber you used was a count­ing num­ber. Later you met zero, then neg­a­tive num­bers, then frac­tions and dec­i­mals, and then num­bers such as 2\sqrt{2} and π\pi whose dec­i­mals never end. Each new kind of num­ber was needed for a new job. Math­e­mati­cians sort all these num­bers into groups called sets. In this les­son you will learn the six sets, see how they fit inside one another, and learn the sym­bol that says a num­ber belongs to a set.

The six sets

A set is writ­ten inside curly brack­ets { }\{\ \}. The num­bers inside are its mem­bers. Three dots mean "and so on", the list never ends.

1. Nat­ural num­bers, N

The nat­ural num­bers are the count­ing num­bers. They start at 11.

N={1,2,3,4,…}N = \{1, 2, 3, 4, \ldots\}

2. Whole num­bers, W

The whole num­bers are the nat­ural num­bers with 00 added.

W={0,1,2,3,4,…}W = \{0, 1, 2, 3, 4, \ldots\}

3. Inte­gers, Z

The inte­gers are the whole num­bers together with their neg­a­tives. This set is writ­ten ZZ or some­times II.

Z={…,−2,−1,0,1,2,3,…}Z = \{\ldots, -2, -1, 0, 1, 2, 3, \ldots\}

The dots at both ends show that the list runs on for ever in both direc­tions.

4. Ratio­nal num­bers, Q

A ratio­nal num­ber is a num­ber that can be writ­ten in the form pq\displaystyle \frac{p}{q}, where pp and qq are inte­gers and q≠0q \neq 0. The sign ≠\neq means "is not equal to".

Q={pq:p,q are integers and q≠0}\displaystyle Q = \left\{ \frac{p}{q} : p, q \text{ are integers and } q \neq 0 \right\}

Exam­ples are 12\displaystyle \frac{1}{2}, 35\displaystyle \frac{3}{5}, −32\displaystyle -\frac{3}{2}, −14\displaystyle -\frac{1}{4}, 00, 11, 55 and −7-7.

Why are 00, 11 and 55 in the list? Because every inte­ger can be writ­ten over 11: 0=01\displaystyle 0 = \frac{0}{1}, 1=11\displaystyle 1 = \frac{1}{1} and −7=−71\displaystyle -7 = \frac{-7}{1}.

The bot­tom can never be 00, because you can­not share some­thing into 00 parts.

5. Irra­tional num­bers, Q*

The irra­tional num­bers are the num­bers that can­not be writ­ten in the form pq\displaystyle \frac{p}{q}, where pp and qq are inte­gers and q≠0q \neq 0. We write this set as Q∗Q^{*}.

Exam­ples are 2\sqrt{2}, 3\sqrt{3}, 5\sqrt{5} and 6\sqrt{6}. The num­bers π=3.14…\pi = 3.14\ldots and e=2.71…e = 2.71\ldots are irra­tional too.

2=1.41421…\sqrt{2} = 1.41421\ldots

The dec­i­mal of an irra­tional num­ber is non-ter­mi­nat­ing and non-recur­ring: it never stops and it never repeats.

Dec­i­mals tell you which kind

Remem­ber. Ter­mi­nat­ing dec­i­mals and non-ter­mi­nat­ing recur­ring dec­i­mals are ratio­nal num­bers, for exam­ple 1.21.2 and 1.3‾1.\overline{3}. Non-ter­mi­nat­ing non-recur­ring dec­i­mals are irra­tional num­bers, for exam­ple π\pi, ee, 2\sqrt{2} and 3\sqrt{3}.

6. Real num­bers, R

The ratio­nal num­bers and the irra­tional num­bers together make the real num­bers, RR.

Exam­ples are 11, 00, −1-1, −5-5, 12\displaystyle \frac{1}{2}, 3\sqrt{3}, π\pi, ee and −57\displaystyle -\frac{5}{7}. Every num­ber you meet in this course is a real num­ber.

A real number line from −4 to 7 with points marked at −4, 0, 2/5, √2 ≈ 1.414, π ≈ 3.142 and 7; the irrational ones are orange.
Ratio­nal and irra­tional num­bers sit together on the same num­ber line.

Ratio­nal and irra­tional num­bers sit side by side on the same num­ber line. Every point on the line is a real num­ber.

A note on pi and 22 over 7

π\pi is irra­tional, but 227\displaystyle \frac{22}{7} is ratio­nal. They are close, but not equal: 227=3.142857‾\displaystyle \frac{22}{7} = 3.\overline{142857}, while π=3.14159…\pi = 3.14159\ldots. We say π\pi is approx­i­mately equal to 227\displaystyle \frac{22}{7} and write

π≈227\displaystyle \pi \approx \frac{22}{7}

How the sets fit together

Set Sym­bol A mem­ber
Nat­ural num­bers NN 77
Whole num­bers WW 00
Inte­gers ZZ −4-4
Ratio­nal num­bers QQ 25\displaystyle \frac{2}{5}
Irra­tional num­bers Q∗Q^{*} 2\sqrt{2}
Real num­bers RR all of the above
  • Every nat­ural num­ber is a whole num­ber.
  • Every whole num­ber is an inte­ger.
  • Every inte­ger is a ratio­nal num­ber.
  • Every ratio­nal num­ber is a real num­ber.

Pic­ture steel dab­bas packed one inside the next. NN sits inside WW, WW inside ZZ, ZZ inside QQ, and QQ inside RR. The irra­tional num­bers are also inside RR, but they stay out­side QQ, because no frac­tion can equal them.

Nested boxes: N holding 7 inside W holding 0, inside Z holding −4, inside Q holding 2/5; a separate box Q* holds √2 and π; all sit inside R.
N sits inside W, W inside Z, Z inside Q, and Q beside Q*; all of them sit inside R.

So 77 is in every set except Q∗Q^{*}, while 2\sqrt{2} is only in Q∗Q^{*} and RR.

The sym­bols for "belongs to"

The sym­bol ∈\in means belongs to. The sym­bol ∉\notin means does not belong to.

  • 5∈R\sqrt{5} \in R is read as "root 5 belongs to R". It is true, because 5\sqrt{5} is a real num­ber.
  • 20∉R\displaystyle \frac{2}{0} \notin R is read as "2 over 0 does not belong to R". Divid­ing by 00 has no mean­ing, so 20\displaystyle \frac{2}{0} is not a num­ber at all.

Exam­ple 1

Is 0∈N0 \in N true?

No. The nat­ural num­bers start at 11. So 0∈N0 \in N is false. But 0∈W0 \in W is true.

Exam­ple 2

Is −2∈W-2 \in W true?

No. Whole num­bers are never neg­a­tive. So −2∈W-2 \in W is false. But −2∈Z-2 \in Z is true.

Exam­ple 3

Is 12∈Z\displaystyle \frac{1}{2} \in Z true?

No. 12\displaystyle \frac{1}{2} is not an inte­ger. It is a ratio­nal num­ber, so 12∈Q\displaystyle \frac{1}{2} \in Q is true.

Exam­ple 4

Is 2∈Q\sqrt{2} \in Q true?

No. 2\sqrt{2} is irra­tional, so 2∈Q\sqrt{2} \in Q is false and 2∈Q∗\sqrt{2} \in Q^{*} is true.

All four num­bers, 00, −2-2, 12\displaystyle \frac{1}{2} and 2\sqrt{2}, are real num­bers.

Exam­ple 5: sim­plify first

Which sets does 16\sqrt{16} belong to?

16=4\sqrt{16} = 4. So it belongs to NN, WW, ZZ, QQ and RR. Always sim­plify a num­ber before you decide its sets.

Com­mon mis­takes

  • Putting 00 in NN. The nat­ural num­bers start at 11.
  • Think­ing a num­ber belongs to only one set. 77 is nat­ural, whole, an inte­ger, ratio­nal and real, all at once.
  • Call­ing every square root irra­tional. 9=3\sqrt{9} = 3 is ratio­nal.
  • Call­ing every long dec­i­mal irra­tional. 0.333…0.333\ldots repeats, so it is 13\displaystyle \frac{1}{3}, a ratio­nal num­ber.
  • Writ­ing π=227\displaystyle \pi = \frac{22}{7}. They are only approx­i­mately equal.

Prac­tice

  1. Write every set that 77 belongs to.
  2. Write every set that 00 belongs to.
  3. Write every set that −4-4 belongs to.
  4. Write every set that 25\displaystyle \frac{2}{5} belongs to.
  5. Write every set that π\pi belongs to.
  6. True or false: 0∈N0 \in N.
  7. True or false: −5∈W-5 \in W.
  8. True or false: 14∈Q\displaystyle \frac{1}{4} \in Q.
  9. True or false: 3∈R\sqrt{3} \in R.
  10. Is 1.3‾1.\overline{3} ratio­nal or irra­tional?
  11. Which sets does −124\displaystyle -\frac{12}{4} belong to?

Answers

Show answers
  1. NN, WW, ZZ, QQ and RR.
  2. WW, ZZ, QQ and RR.
  3. ZZ, QQ and RR.
  4. QQ and RR.
  5. Q∗Q^{*} and RR.
  6. False. Nat­ural num­bers start at 11.
  7. False. Whole num­bers are never neg­a­tive.
  8. True.
  9. True. 3\sqrt{3} is irra­tional, and every irra­tional num­ber is real.
  10. Ratio­nal. It is a non-ter­mi­nat­ing recur­ring dec­i­mal. (In fact 1.3‾=43\displaystyle 1.\overline{3} = \frac{4}{3}.)
  11. −124=−3\displaystyle -\frac{12}{4} = -3, so it belongs to ZZ, QQ and RR.