Section1.5Set 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.
Subsection1.5.1Set Notation
What is the mathematical difference between these three “lists?”
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:
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.
Checkpoint1.5.2Set Notation
Practice using (and not using) set notation.
Subsection1.5.2Different 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.
Warning1.5.3Rational 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{.}\)
Example1.5.5Determine 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.
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 excludes the negative integers.
Of these, only \(2\) and \(\sqrt{25}\) are natural numbers, because the natural numbers exclude \(0\text{.}\)
Checkpoint1.5.6
Checkpoint1.5.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?
Subsection1.5.3Converting 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 twentythree thousandths.” While that's a lot to say, it makes it obvious that this number can be written as a ratio:
Similarly,
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
The pattern is that diving 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.
Checkpoint1.5.8
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.
Example1.5.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:
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:
With what we learned in the earlier examples and basic fraction arithmetic, we can continue:
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{.}\)
SubsectionExercises
These exercises examine set notation.
1
There are two numbers that you can square to get \(4\text{.}\) Express this collection of two numbers using set notation.
2
There are four positive, even, onedigit numbers. Express this collection of four numbers using set notation.
3
There are six twodigit perfect square numbers. Express this collection of six numbers using set notation.
4
There is a set of three small positive integers where you can square all three numbers, then add the results, and get \(14\text{.}\) Express this collection of three numbers using set notation.
These exercises examine different types of numbers.
5
Which of the following are whole numbers? There may be more than one correct answer.
\(1.6\overline{16}\)
\(74272\)
\(7.101001000100001\ldots\)
\(0\)
\({\frac{5}{61}}\)
\(3\)
\(57941\)
\(\sqrt{11}\)
6
Which of the following are whole numbers? There may be more than one correct answer.
\(\pi\)
\(17860\)
\(0\)
\(\sqrt{36}\)
\(6.7\overline{51}\)
\(\sqrt{11}\)
\({\frac{3}{73}}\)
\(9\)
7
Which of the following are integers? There may be more than one correct answer.
\(4.341\)
\(6.101001000100001\ldots\)
\(4\)
\(\sqrt{2}\)
\(8967\)
\({\frac{6}{59}}\)
\(41337\)
\(0\)
8
Which of the following are integers? There may be more than one correct answer.
\(98\)
\(0\)
\(74\)
\(9\)
\(1.5\overline{62}\)
\(\pi\)
\({\frac{6}{79}}\)
\(\sqrt{11}\)
9
Which of the following are rational numbers? There may be more than one correct answer.
\(24733\)
\({\frac{7}{32}}\)
\(0\)
\(5.101001000100001\ldots\)
\(11772\)
\(\pi\)
\(7.161\)
\(9\)
10
Which of the following are rational numbers? There may be more than one correct answer.
\(\sqrt{13}\)
\(82287\)
\(0\)
\({\frac{1}{47}}\)
\(4.429\)
\(0.101001000100001\ldots\)
\(9\)
\(\sqrt{4}\)
11
Which of the following are irrational numbers? There may be more than one correct answer.
\(73394\)
\(4\)
\(1.9\overline{31}\)
\(\sqrt{7}\)
\({\frac{10}{83}}\)
\(8129\)
\(2.101001000100001\ldots\)
\(0\)
12
Which of the following are irrational numbers? There may be more than one correct answer.
\(59\)
\(6.101001000100001\ldots\)
\(9\)
\({\frac{1}{73}}\)
\(0\)
\(3.4\overline{96}\)
\(64501\)
\(\pi\)
13
Which of the following are real numbers? There may be more than one correct answer.
\(5.101001000100001\ldots\)
\(7.401\)
\(\sqrt{6}\)
\(4\)
\(\sqrt{25}\)
\(55608\)
\(6.6\overline{41}\)
\(0\)
14
Which of the following are real numbers? There may be more than one correct answer.
\(4.6\overline{90}\)
\(0\)
\(4.101001000100001\ldots\)
\(9\)
\(\pi\)
\(33174\)
\(46715\)
\({\frac{3}{65}}\)
15
Determine the validity of each statement by selecting True or False.
The number \(\pi\) is irrational
The number \(\frac{\pi}{2}\) is rational
The number \(61\) is an integer, but not a whole number
The number \(0\) is an integer
The number \(\sqrt{17}\) is rational
16
Determine the validity of each statement by selecting True or False.
The number \(\sqrt{\frac{4}{81}}\) is rational, but not an integer
The number \(2\) is an integer that is also a natural number
The number \(\frac{31}{16}\) is rational, but not a natural number
The number \(\sqrt{31}\) is a real number, but not an irrational number
The number \(\sqrt{23^2}\) is a real number, but not a rational number
17
Give examples of each type of number. If no such number exists, enter DNE
or NONE
.
Give an example of a whole number that is not an integer.
Give an example of an integer that is not a whole number.
Give an example of a rational number that is not an integer.
Give an example of a irrational number.
Give an example of a irrational number that is also an integer.
18
In each situation, which number set do you think is most appropriate?

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

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

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

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

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

The number of people eating in a nonempty restaurant.
This number is best considered as a
natural number
whole number
integer
rational number
irrational number
real number
Convert decimal numbers into fractions.
19
Write the rational number \(1.12\) as a fraction.
20
Write the rational number \(29.638\) as a fraction.
21
Write the rational number \(0.\overline{35}=0.353535\ldots\) as a fraction.
22
Write the rational number \(0.\overline{442}=0.442442442\ldots\) as a fraction.
23
Write the rational number \(1.2\overline{57}=1.2575757\ldots\) as a fraction.
24
Write the rational number \(5.9\overline{564}=5.9564564564\ldots\) as a fraction.