Rational Numbers
[This post is targeted at a Level 2 student.]
When we first started to learn how to count, we learned the numbers , which are referred to as the natural numbers, and often denoted by
. Then, we got around to learning about subtraction, which led to the negative numbers
Together with the natural numbers, these are called integers or whole numbers, and denoted by
. Eventually, we learned about division, and bravely explored fractions. The rational numbers are numbers of the form
, where
and
are integers and
. They are denoted by
. We also learned about the real numbers, denoted by
, which are often represented by the number line.
Formally, the rational numbers are defined as an equivalence class of all ordered pairs , where
is an integer and
is a non-zero integer, and the equivalence relation
if
. We have previously seen another equivalence relation in Modulo Arithmetic. Similarly, we have to show that this equivalence relation is well defined, and that we can add and multiply rational numbers. This will be set aside (or left for the adventurous reader), and we will believe that rational numbers follow the rules of arithmetic. Moreover, we know that every rational number can be expressed in its simplest form, which occurs when
.
How do we know that there is a difference between the set of real numbers and the set of rational numbers? Certainly, every rational number is a real number, but is every real number also a rational number? Below, we will show that is not rational, through the classic proof by contradiction.
Proof: Suppose that is rational. This means that there exists integers
and
such that
and
. Squaring both sides and cross multiplying yields
. Then, by Parity, since the LHS is even, so is the RHS, and thus
is even. Set
, where
is an integer, and substitute this into the equation. This gives
. Repeating the above argument, since the RHS is even, so is the LHS, and thus
is even. Set
, where
is an integer. However, this means that
, which contradicts the initial assumption that
.
In fact, using the same argument, we can actually show that is not rational if
is not a perfect square. This gives us a lot of numbers that are real numbers, but not rational numbers, and they are called irrational numbers.
This post is continued in Rational Numbers II.
Worked Examples
1. Show that the sum, difference, and product of 2 rational numbers is also rational.
Note: The division of 2 rational numbers need not be rational. [Pop Quiz: Why not?]
2. Determine the value of . The line over
denotes that it is a repeating decimal, of the form
.
Hence, .
3. Show that is not rational.
4. Show that, if is a positive rational such that
is an integer then
must be an integer.
Test Yourself
1. Show that any repeating decimal is rational.
2. How many integers are there such that
is rational? Hint: Show that
and
both have to be rational.
3. Show that is not rational.
4. (*) (Rational Approximation Theorem) Show that if we are given any irrational number and a positive integer
, then there exists a rational number
with
such that
. Hint: Pigeonhole Principle.

0 is not a natural number, right? Natural numbers and positive integers like 1, 2, 45…