Skip to main content
Logo image

Section A.6 Set Notation and Types of Numbers

When we talk about how many or how much of something we have, it often makes sense to use different types of numbers. For example, if we are counting dogs in a shelter, the possibilities are only \(0,1,2,\ldots\text{.}\) (It would be difficult to have \(\frac{1}{2}\) of a dog.) On the other hand if you were weighing a dog in pounds, it doesnā€™t make sense to only allow yourself to work with whole numbers. The dog might weigh something like \(28.35\) pounds. These examples highlight how certain kinds of numbers are appropriate for certain situations. Weā€™ll classify various types of numbers in this section.
Figure A.6.1. Alternative Video Lesson

Subsection A.6.1 Set Notation

What is the mathematical difference between these three ā€œlistsā€?
\begin{equation*} 28, 31, 30\qquad\{28, 31, 30\}\qquad(28, 31, 30) \end{equation*}
To a mathematician, the last one, \((28, 31, 30)\) is an ordered triple. What matters is not merely the three numbers, but also the order in which they come. The ordered triple \((28, 31, 30)\) is not the same as \((30, 31, 28)\text{;}\) they have the same numbers in them, but the order has changed. For some context, February has \(28\) days; then March has \(31\) days; then April has \(30\) days. The order of the three numbers is meaningful in that context.
With curly braces and \(\{28, 31, 30\}\text{,}\) a mathematician sees a collection of numbers and does not particularly care in which order they are written. Such a collection is called a set. All that matters is that these numbers are part of a collection. Theyā€™ve been written in some particular order because thatā€™s necessary to write them down. But you might as well have put the three numbers in a bag and shaken up the bag. For some context, maybe your favorite three NBA players have jersey numbers \(30\text{,}\) \(31\text{,}\) and \(28\text{,}\) and you like them all equally well. It doesnā€™t really matter what order you use to list them.
So we can say:
\begin{align*} \{28, 31, 30\}\amp=\{30, 31, 28\}\amp(28, 31, 30)\amp\neq(30, 31, 28) \end{align*}
What about just writing \(28, 31, 30\text{?}\) This list of three numbers is ambiguous. Without the curly braces or parentheses, itā€™s unclear to a reader if the order is important. Set notation is the use of curly braces to surround a list/collection of numbers, and we will use set notation frequently in this section.

Checkpoint A.6.2. Set Notation.

Practice using (and not using) set notation.
According to Google, the three most common error codes from visiting a web site are 403, 404, and 500.

(a)

Without knowing which error code is most common, express this set mathematically.
Explanation.
Since we only have to describe a collection of three numbers and their order doesnā€™t matter, we can write {403,404,500}.

(b)

Error code 500 is the most common. Error code 403 is the least common of these three. And that leaves 404 in the middle. Express the error codes in a mathematical way that appreciates how frequently they happen, from most often to least often.
Explanation.
Now we must describe the same three numbers and we want readers to know that the order we are writing the numbers matters. We can write (500,404,403).

Subsection A.6.2 Different Number Sets

In the introduction, we mentioned how different sets of numbers are appropriate for different situations. Here are the basic sets of numbers that are used in basic algebra.
Natural Numbers
When we count, we begin: \(1, 2, 3, \dots\) and continue on in that pattern. These numbers are known as natural numbers.
\(\mathbb{N}=\{1,2,3,\dots \}\)
Whole Numbers
If we include zero, then we have the set of whole numbers.
\(\{0,1,2,3,\dots \}\) has no standard symbol, but some options are \(\mathbb{N}_0\text{,}\) \(\mathbb{N}\cup\{0\}\text{,}\) and \(\mathbb{Z}_{\geq0}\text{.}\)
Integers
If we include the negatives of whole numbers, then we have the set of integers.
\(\mathbb{Z}=\{\dots,-3,-2,-1,0,1,2,3,\dots \}\text{.}\)
A \(\mathbb{Z}\) is used because one word in German for ā€œnumbersā€ is ā€œZahlenā€.
Rational Numbers
A rational number is any number that can be written as a fraction of integers, where the denominator is nonzero. Alternatively, a rational number is any number that can be written with a decimal that terminates or that repeats.
\(\mathbb{Q}=\left\{0,1,-1,2,\frac{1}{2},-\frac{1}{2},-2,3,\frac{1}{3},-\frac{1}{3},-3,\frac{3}{2},\frac{2}{3}\ldots\right\}\)
\(\mathbb{Q}=\left\{0,1,-1,2,0.5,-0.5,-2,3,0.\overline{3},-0.\overline{3},-3,1.5,0.\overline{6}\ldots\right\}\)
A \(\mathbb{Q}\) is used because fractions are quotients of integers.
Irrational Numbers
Any number that cannot be written as a fraction of integers belongs to the set of irrational numbers. Another way to say this is that any number whose decimal places goes on forever without repeating is an irrational number. Some examples include \(\pi\approx3.1415926\ldots\text{,}\) \(\sqrt{15}\approx3.87298\ldots\text{,}\) \(e\approx2.71828\ldots\)
There is no standard symbol for the set of irrational numbers.
Real Numbers
Any number that can be marked somewhere on a number line is a real number. Real numbers might be the only numbers you are familiar with. For a number to not be real, you have to start considering things called complex numbers, which are not our concern right now.
The set of real numbers can be denoted with \(\mathbb{R}\) for short.
Figure A.6.3. Types of Numbers

Warning A.6.4. Rational Numbers in Other Forms.

Any number that can be written as a ratio of integers is rational, even if itā€™s not written that way at first. For example, these numbers might not look rational to you at first glance: \(-4\text{,}\) \(\sqrt{9}\text{,}\) \(0\pi\text{,}\) and \(\sqrt[3]{\sqrt{5}+2}-\sqrt[3]{\sqrt{5}-2}\text{.}\) But they are all rational, because they can respectively be written as \(\frac{-4}{1}\text{,}\) \(\frac{3}{1}\text{,}\) \(\frac{0}{1}\text{,}\) and \(\frac{1}{1}\text{.}\)

Example A.6.5. Determine If Numbers Are This Type or That Type.

Determine which numbers from the set \(\left\{-102, -7.25, 0, \frac{\pi}{4}, 2, \frac{10}{3}, \sqrt{19}, \sqrt{25}, 10.\overline{7} \right\}\) are natural numbers, whole numbers, integers, rational numbers, irrational numbers, and real numbers.
Explanation.
All of these numbers are real numbers, because all of these numbers can be positioned on the real number line.
Each real number is either rational or irrational, and not both. \(-102\text{,}\) \(-7.25\text{,}\) \(0\text{,}\) and \(2\) are rational because we can see directly that their decimal expressions terminate. \(10.\overline{7}\) is also rational, because its decimal expression repeats. \(\frac{10}{3}\) is rational because it is a ratio of integers. And last but not least, \(\sqrt{25}\) is rational, because thatā€™s the same thing as \(5\text{.}\)
This leaves only \(\frac{\pi}{4}\) and \(\sqrt{19}\) as irrational numbers. Their decimal expressions go on forever without entering a repetitive cycle.
Only \(-102\text{,}\) \(0\text{,}\) \(2\text{,}\) and \(\sqrt{25}\) (which is really \(5\)) are integers.
Of these, only \(0\text{,}\) \(2\text{,}\) and \(\sqrt{25}\) are whole numbers, because whole numbers exclude the negative integers.
Of these, only \(2\) and \(\sqrt{25}\) are natural numbers, because the natural numbers exclude \(0\text{.}\)

Checkpoint A.6.6.

  1. Give an example of a whole number that is not an integer.
  2. Give an example of an integer that is not a whole number.
  3. Give an example of a rational number that is not an integer.
  4. Give an example of a irrational number.
  5. Give an example of a irrational number that is also an integer.
Explanation.
  1. Since all whole numbers belong to integers, we cannot write any whole number which is not an integer. Type DNE (does not exist) for this question.
  2. Any negative integer, like \(-1\text{,}\) is not a whole number, but is an integer.
  3. Any terminating decimal, like \(1.2\text{,}\) is a rational number, but is not an integer.
  4. \(\pi\) is the easiest number to remember as an irrational number. Another constant worth knowing is \(e\approx2.718\text{.}\) Finally, the square root of most integers are irrational, like \(\sqrt{2}\) and \(\sqrt{3}\text{.}\)
  5. All irrational numbers are non-repeating and non-terminating decimals. No irrational numbers are integers.

Checkpoint A.6.7.

In the introduction, we mentioned that the different types of numbers are appropriate in different situation. Which number set do you think is most appropriate in each of the following situations?

(a)

The number of people in a math class that play the ukulele.
This number is best considered as a
  • natural number
  • whole number
  • integer
  • rational number
  • irrational number
  • real number
.
Explanation.
The number of people who play the ukulele could be \(0,1,2,\dots\text{,}\) so the whole numbers are the appropriate set.

(b)

The hypotenuseā€™s length in a given right triangle.
This number is best considered as a
  • natural number
  • whole number
  • integer
  • rational number
  • irrational number
  • real number
.
Explanation.
A hypotenuseā€™s length could be \(1\text{,}\) \(1.2\text{,}\) \(\sqrt{2}\) (which is irrational), or any other positive number. So the real numbers are the appropriate set.

(c)

The proportion of people in a math class that have a cat.
This number is best considered as a
  • natural number
  • whole number
  • integer
  • rational number
  • irrational number
  • real number
.
Explanation.
This proportion will be a ratio of integers, as both the total number of people in the class and the number of people who have a cat are integers. So the rational numbers are the appropriate set.

(d)

The number of people in the room with you who have the same birthday as you.
This number is best considered as a
  • natural number
  • whole number
  • integer
  • rational number
  • irrational number
  • real number
.
Explanation.
We know that the number of people must be a counting number, and since you are in the room with yourself, there is at least one person in that room with your birthday. So the natural numbers are the appropriate set.

(e)

The total revenue (in dollars) generated for ticket sales at a Timbers soccer game.
This number is best considered as a
  • natural number
  • whole number
  • integer
  • rational number
  • irrational number
  • real number
.
Explanation.
The total revenue will be some number of dollars and cents, such as \(\$631{,}897.15\text{,}\) which is a terminating decimal and thus a rational number. So the rational numbers are the appropriate set.

Subsection A.6.3 Converting Repeating Decimals to Fractions

We have learned that a terminating decimal number is a rational number. Itā€™s easy to convert a terminating decimal number into a fraction of integers: you just need to multiply and divide by one of the numbers in the set \(\{10,100,1000,\ldots\}\text{.}\) For example, when we say the number \(0.123\) out loud, we say ā€œone hundred and twenty-three thousandthsā€. While thatā€™s a lot to say, it makes it obvious that this number can be written as a ratio:
\begin{equation*} 0.123=\frac{123}{1000}\text{.} \end{equation*}
Similarly,
\begin{equation*} 21.28=\frac{2128}{100}=\frac{532\cdot4}{25\cdot4}=\frac{532}{25}\text{,} \end{equation*}
demonstrating how any terminating decimal can be written as a fraction.
Repeating decimals can also be written as a fraction. To understand how, use a calculator to find the decimal for, say, \(\frac{73}{99}\) and \(\frac{189}{999}\) You will find that
\begin{equation*} \frac{73}{99}=0.73737373\ldots=0.\overline{73}\qquad\frac{189}{999}=0.189189189\ldots=0.\overline{189}\text{.} \end{equation*}
The pattern is that dividing a number by a number from \(\{9,99,999,\ldots\}\) with the same number of digits will create a repeating decimal that starts as ā€œ\(0.\)ā€ and then repeats the numerator. We can use this observation to reverse engineer some fractions from repeating decimals.

Checkpoint A.6.8.

(a)

Write the rational number \(0.772772772\ldots\) as a fraction.
Explanation.
The three-digit number \(772\) repeats after the decimal. So we will make use of the three-digit denominator \(999\text{.}\) And we have \(\frac{772}{999}\text{.}\)

(b)

Write the rational number \(0.69696969\ldots\) as a fraction.
Explanation.
The two-digit number \(69\) repeats after the decimal. So we will make use of the two-digit denominator \(99\text{.}\) And we have \(\frac{69}{99}\text{.}\) But this fraction can be reduced to \(\frac{23}{33}\text{.}\)
Converting a repeating decimal to a fraction is not always quite this straightforward. There are complications if the number takes a few digits before it begins repeating. For your interest, here is one example on how to do that.

Example A.6.9.

Can we convert the repeating decimal \(9.134343434\ldots=9.1\overline{34}\) to a fraction? The trick is to separate its terminating part from its repeating part, like this:
\begin{equation*} 9.1+0.034343434\ldots\text{.} \end{equation*}
Now note that the terminating part is \(\frac{91}{10}\text{,}\) and the repeating part is almost like our earlier examples, except it has an extra \(0\) right after the decimal. So we have:
\begin{equation*} \frac{91}{10}+\frac{1}{10}\cdot0.34343434\ldots\text{.} \end{equation*}
With what we learned in the earlier examples and basic fraction arithmetic, we can continue:
\begin{align*} 9.134343434\ldots\amp=\frac{91}{10}+\frac{1}{10}\cdot0.34343434\ldots\\ \amp=\frac{91}{10}+\frac{1}{10}\cdot\frac{34}{99}\\ \amp=\frac{91}{10}+\frac{34}{990}\\ \amp=\frac{91\multiplyright{99}}{10\multiplyright{99}}+\frac{34}{990}\\ \amp=\frac{9009}{990}+\frac{34}{990}=\frac{9043}{990} \end{align*}
Check that this is right by entering \(\frac{9043}{990}\) into a calculator and seeing if it returns the decimal we started with, \(9.134343434\ldots\text{.}\)

Exercises A.6.4 Exercises

Review and Warmup.

1.

Write the decimal number as a fraction.
\(0.35\) =

2.

Write the decimal number as a fraction.
\(0.45\) =

3.

Write the decimal number as a fraction.
\(5.95\) =

4.

Write the decimal number as a fraction.
\(6.55\) =

5.

Write the decimal number as a fraction.
\(0.718\) =

6.

Write the decimal number as a fraction.
\(0.884\) =

Exercise Group.

7.

Write the fraction as a decimal number.
  1. \({{\frac{17}{25}}}\) =
  2. \({{\frac{11}{16}}}\) =

8.

Write the fraction as a decimal number.
  1. \({{\frac{3}{4}}}\) =
  2. \({{\frac{3}{8}}}\) =

Exercise Group.

9.

Write the mixed number as a decimal number.
  1. \({3 {\textstyle\frac{3}{5}}}\) =
  2. \({4 {\textstyle\frac{3}{20}}}\) =

10.

Write the mixed number as a decimal number.
  1. \({9 {\textstyle\frac{4}{5}}}\) =
  2. \({6 {\textstyle\frac{3}{8}}}\) =

Set Notation.

11.

There are two numbers that you can square to get \(16\text{.}\) Express this collection of two numbers using set notation.

12.

There are four positive, even, one-digit numbers. Express this collection of four numbers using set notation.

13.

There are six two-digit perfect square numbers. Express this collection of six numbers using set notation.

14.

There is a set of three small positive integers where you can square all three numbers, then add the results, and get \(42\text{.}\) Express this collection of three numbers using set notation.

Types of Numbers.

15.

Which of the following are whole numbers? There may be more than one correct answer.
  • \(\displaystyle 6.3\overline{49}\)
  • \(\displaystyle 72\)
  • \(\displaystyle 8.019\)
  • \(\displaystyle -6\)
  • \(\displaystyle 0\)
  • \(\displaystyle \sqrt{7}\)
  • \(\displaystyle -5.101001000100001\ldots\)
  • \(\displaystyle -98939\)

16.

Which of the following are whole numbers? There may be more than one correct answer.
  • \(\displaystyle 0\)
  • \(\displaystyle -9.725\)
  • \(\displaystyle 6.101001000100001\ldots\)
  • \(\displaystyle -46088\)
  • \(\displaystyle -9\)
  • \(\displaystyle \sqrt{7}\)
  • \(\displaystyle {\frac{1}{51}}\)
  • \(\displaystyle \sqrt{100}\)

Exercise Group.

17.

Which of the following are integers? There may be more than one correct answer.
  • \(\displaystyle 0\)
  • \(\displaystyle -81153\)
  • \(\displaystyle \pi\)
  • \(\displaystyle -5.101001000100001\ldots\)
  • \(\displaystyle \sqrt{4}\)
  • \(\displaystyle 1.801\)
  • \(\displaystyle -6\)
  • \(\displaystyle {\frac{9}{2}}\)

18.

Which of the following are integers? There may be more than one correct answer.
  • \(\displaystyle \sqrt{11}\)
  • \(\displaystyle -2\)
  • \(\displaystyle -9.101001000100001\ldots\)
  • \(\displaystyle 0\)
  • \(\displaystyle -{\frac{2}{43}}\)
  • \(\displaystyle -72260\)
  • \(\displaystyle 4.107\)
  • \(\displaystyle 25502\)

Exercise Group.

19.

Which of the following are rational numbers? There may be more than one correct answer.
  • \(\displaystyle -63366\)
  • \(\displaystyle -1.7\overline{68}\)
  • \(\displaystyle 33\)
  • \(\displaystyle \sqrt{13}\)
  • \(\displaystyle -6\)
  • \(\displaystyle \pi\)
  • \(\displaystyle 0\)
  • \(\displaystyle -3.865\)

20.

Which of the following are rational numbers? There may be more than one correct answer.
  • \(\displaystyle \sqrt{2}\)
  • \(\displaystyle \pi\)
  • \(\displaystyle -83587\)
  • \(\displaystyle 0\)
  • \(\displaystyle -4.283\)
  • \(\displaystyle -5\)
  • \(\displaystyle -{\frac{3}{31}}\)
  • \(\displaystyle \sqrt{16}\)

Exercise Group.

21.

Which of the following are irrational numbers? There may be more than one correct answer.
  • \(\displaystyle \sqrt{25}\)
  • \(\displaystyle 7.863\)
  • \(\displaystyle -6\)
  • \(\displaystyle 0\)
  • \(\displaystyle -45580\)
  • \(\displaystyle \pi\)
  • \(\displaystyle \sqrt{11}\)
  • \(\displaystyle -{\frac{7}{78}}\)

22.

Which of the following are irrational numbers? There may be more than one correct answer.
  • \(\displaystyle 3.101001000100001\ldots\)
  • \(\displaystyle 92195\)
  • \(\displaystyle -7.7\overline{81}\)
  • \(\displaystyle -2\)
  • \(\displaystyle -{\frac{7}{34}}\)
  • \(\displaystyle -36687\)
  • \(\displaystyle \pi\)
  • \(\displaystyle 0\)

Exercise Group.

23.

Which of the following are real numbers? There may be more than one correct answer.
  • \(\displaystyle -8.361\)
  • \(\displaystyle \pi\)
  • \(\displaystyle -3\)
  • \(\displaystyle {\frac{6}{97}}\)
  • \(\displaystyle \sqrt{5}\)
  • \(\displaystyle 0\)
  • \(\displaystyle 94\)
  • \(\displaystyle -61712\)

24.

Which of the following are real numbers? There may be more than one correct answer.
  • \(\displaystyle -5.101001000100001\ldots\)
  • \(\displaystyle \sqrt{49}\)
  • \(\displaystyle -{\frac{2}{29}}\)
  • \(\displaystyle \pi\)
  • \(\displaystyle -2\)
  • \(\displaystyle 0\)
  • \(\displaystyle -18901\)
  • \(\displaystyle 6.4\overline{90}\)

Exercise Group.

25.

Determine the validity of each statement by selecting True or False.
  1. The number \(\sqrt{(-30)^2}\) is irrational
  2. The number \(0\) is an integer
  3. The number \(-\frac{90}{25}\) is rational
  4. The number \(\sqrt{29}\) is rational
  5. The number \(\pi\) is irrational

26.

Determine the validity of each statement by selecting True or False.
  1. The number \(\sqrt{29}\) is a real number, but not an irrational number
  2. The number \(-45\) is an integer that is also a natural number
  3. The number \(0.2020202020...\) is rational
  4. The number \(\sqrt{\frac{25}{49}}\) is rational, but not an integer
  5. The number \(\frac{23}{2}\) is rational, but not an integer

27.

In each situation, which number set do you think is most appropriate?
  1. The number of dogs a student has owned throughout their lifetime.
    This number is best considered as a
    • ?
    • natural number
    • whole number
    • integer
    • rational number
    • irrational number
    • real number
    .
  2. The difference between the projected annual expenditures and the actual annual expenditures for a given company.
    This number is best considered as a
    • ?
    • natural number
    • whole number
    • integer
    • rational number
    • irrational number
    • real number
    .
  3. The length around swimming pool in the shape of a half circle with radius \(10\,\text{ft}\text{.}\)
    This number is best considered as a
    • ?
    • natural number
    • whole number
    • integer
    • rational number
    • irrational number
    • real number
    .
  4. The proportion of students at a college who own a car.
    This number is best considered as a
    • ?
    • natural number
    • whole number
    • integer
    • rational number
    • irrational number
    • real number
    .
  5. The width of a sheet of paper, in inches.
    This number is best considered as a
    • ?
    • natural number
    • whole number
    • integer
    • rational number
    • irrational number
    • real number
    .
  6. The number of people eating in a non-empty restaurant.
    This number is best considered as a
    • ?
    • natural number
    • whole number
    • integer
    • rational number
    • irrational number
    • real number
    .

28.

  1. Give an example of a whole number that is not an integer.
  2. Give an example of an integer that is not a whole number.
  3. Give an example of a rational number that is not an integer.
  4. Give an example of a irrational number.
  5. Give an example of a irrational number that is also an integer.

Writing Decimals as Fractions.

29.

Write the rational number \(4.08\) as a fraction.

30.

Write the rational number \(55.745\) as a fraction.

31.

Write the rational number \(0.\overline{52}=0.5252\ldots\) as a fraction.

32.

Write the rational number \(0.\overline{728}=0.728728\ldots\) as a fraction.

33.

Write the rational number \(5.5\overline{75}=5.57575\ldots\) as a fraction.

34.

Write the rational number \(9.2\overline{772}=9.2772772\ldots\) as a fraction.

Challenge.

35.

Imagine making up a number with the following pattern. After the decimal point, write the natural numbers 1, 2, 3, 4, 5, etc. The decimal digits will extend forever with this pattern: \(0.12345\ldots\text{.}\)
Is the number a rational number or an irrational number?
  • ?
  • rational
  • irrational