2.1 Real numbers and their decimal representations

Definition 2.1 (Real number).

A real number is a point on the real line.

5-54-43-32-21-101122334455\cdots\cdots

The numbers 0, 11, 1-1, 17-\frac{1}{7}, 2\sqrt{2}, π\pi, ee, 0.10.1 and 0.3330.333\ldots are examples of real numbers. There are numbers that are not real. For example, you will study complex numbers later in your degree programme. We begin by discussing different types of real number and different ways of representing them.

Definition 2.2 (Integer).

An integer is any one of the numbers 0,1,1,2,2,3,3,0,1,-1,2,-2,3,-3,\ldots.

The most common way of writing integers is the decimal numeral system. This is also known as the Hindu–Arabic numeral system due to its origins in those civilisations. We will now define terms. Please check that you understand each definition and that it agrees with what you already know.

In the decimal numeral system, a non-negative real number xx (meaning x0x\geq 0) is written as a sum

x=k=0nak10k+k=1bk110k,x=\sum_{k=0}^{n}a_{k}10^{k}+\sum_{k=1}^{\infty}b_{k}\frac{1}{10^{k}},

where each of a0,a1,a2,ana_{0},a_{1},a_{2}\ldots,a_{n} and b1,b2,b3b_{1},b_{2},b_{3}\ldots is a digit (meaning one of 0,1,2,,90,1,2,\ldots,9).11 1 You may find this definition circular, since we use an integer written in decimal (namely 1010) to define what it means to write an integer in decimal. However, the ‘1010’ here really means the integer obtained by adding together ten lots of 11.

We abbreviate the sum above to ‘anan1a2a1a0.b1b2a_{n}a_{n-1}\ldots a_{2}a_{1}a_{0}.b_{1}b_{2}\ldots’, which is called a decimal representation of xx. We also say that xx is written in decimal notation. Observe that we allow infinitely many digits to the right of the decimal point.

The integer k=0nak10k\sum_{k=0}^{n}a_{k}10^{k} (denoted by ‘anan1a1a0a_{n}a_{n-1}\ldots a_{1}a_{0}’) is called the integer part of xx. The real number k=1bk110k\sum_{k=1}^{\infty}b_{k}\frac{1}{10^{k}} (denoted by ‘0.b1b2b_{1}b_{2}\ldots’) is called the fractional part of xx.

For example, the decimal representation 14781478 means 8×100+7×101+4×102+1×1038\times 10^{0}+7\times 10^{1}+4\times 10^{2}+1\times 10^{3}. The integer part of 14781478 is 14781478 and the fractional part is 0.

The following examples demonstrate different properties that decimal representations can have.

  • 12\frac{1}{2} has decimal representation 0.50000.5000\ldots, but usually we do not write the tail of 0s and instead write 0.50.5. We say that the decimal representation terminates.

  • 13\frac{1}{3} has decimal representation 0.3330.333\ldots (with 33 repeating indefinitely to the right).

  • 111\frac{1}{11} has decimal representation 0.0909090.090909\ldots, and we shall write 0.09¯0.\overline{09} to mean that the block "09" of two digits repeats indefinitely to the right.

  • π\pi has decimal representation 3.1415926535897933.141592653589793, to 15 decimal places. π\pi has no repeating pattern in the fractional part. This requires proof and is not obvious.

Note that above we only defined the decimal representation of a non-negative real number xx. For completeness, if xx is a negative real number then x-x is positive and so has some decimal representation x=anan1a2a1a0.b1b2-x=\text{`$a_{n}a_{n-1}\ldots a_{2}a_{1}a_{0}.b_{1}b_{2}\ldots$'}. Then xx has integer part k=0nak10k-\sum_{k=0}^{n}a_{k}10^{k} and fractional part k=1bk110k-\sum_{k=1}^{\infty}b_{k}\frac{1}{10^{k}}.