Definition 9.2.1 Base \(b\) representation.
Β
-
For a fixed integer \(b > 1\) and nonnegative integer \(n\text{,}\) the base b representation of \(n\) is\begin{equation*} n=\left(a_ka_{k-1}\cdots a_3a_2a_1a_0\right)_b \end{equation*}if\begin{equation*} n=\sum_{i=0}^ka_ib^i = a_kb^k + \dots + a_3b^ 3+a_2b^2+a_1b^1+a_0b^0 \end{equation*}for some integer \(k\) where each integer \(a_i = 0,1, \ldots, b-1\text{.}\) For example, in base three we have \(3-1=2\) and so the coefficients can be \(a_i=0,1,2\text{.}\) The integer 15 is represented in base three as\begin{equation*} 15=(120)_3 \end{equation*}because\begin{align*} (120)_3 \amp = \underline{1} \cdot 3^2 + \underline{2}\cdot 3^1 + \underline{0} \cdot 3^0\\ \amp = \underline{1} \cdot 9 + \underline{2}\cdot 3 + \underline{0} \cdot 1\\ \amp = 9 + 3 + 3\\ \amp = 15\text{.} \end{align*}Notice how we need to include zero.
-
Base 10 is the usual decimal representation where each digit \(a_i = 0, 1, 2, 3, 4, 5, 6, 7, 8\text{,}\) or \(9\text{.}\) We omit the subscript and write \(n = a_ka_{k-1}\cdots a_3a_2a_1a_0\text{.}\) For example, 528 in decimal representation stands for\begin{align*} 528 \amp = 500+20+8\\ \amp = 100+100+100+100+100+10+10+1+1+1+1+1+1+1+1\\ \amp = \underline{5} \cdot 100 + \underline{2} \cdot 10 + \underline{8} \cdot 1\\ \amp = \underline{5} \cdot 10^2 + \underline{2} \cdot 10^1 + \underline{8} \cdot 10^0\text{.} \end{align*}
-
The most common base systems after base 10 are base two (binary) and base 16 (hexadecimal). Other base systems such as base three (ternary) and base five (quinary) are used mainly to understand base representations. Base eight (octal) was used historically as a shorthand for binary.
-
Often \(k\) is chosen so that \(a_k > 0\text{,}\) but there are occasions where we write zero in front of a number. For example, we might enter 03 for the month March instead of 3. If we require \(a_k > 0\text{,}\) then the base \(b\) representation of a positive integer is unique.
