Positional Numeral Systems#
Definition: Positional Numeral System
A positional numeral system or place value system consists of a natural number \(b \gt 1\) and a set of \(b-1\) distinct symbols \(D = \{d_0, d_1, \dotsc, d_{b-1}\}\).
We call \(b\) the base or radix and we call \(d_0, d_1, \dotsc, d_{b-1}\) digits.
Theorem: Representing Integers
Let \(b \gt 1\) be a natural number.
For every \(N \in \mathbb{N}_0\), there exists a finite sequence of [extended natural numbers] \(a_0, a_1, \dotsc, a_n\) such that \(0 \le a_k \lt b\) and
Proof
TODO
The above theorem tells us that we can use any positional numeral system to represent all non-negative integers by identifying the digits \(D = \{d_0, d_1, \dotsc, d_{b-1}\}\) with the first \(b\) numbers from \(\mathbb{N}_0\). Then, each finite string \(a_n a_{n-1} \cdots a_1 a_0\) represents a number \(N \in \mathbb{N}_0\).
Notation
When multiple positional numeral systems are used, it can be difficult to know in which system a particular number is given, especially when the systems use the same symbols for some digits. This is why we usually write the radix \(b\) as a subscript at the end:
Example: Base 2
Consider the positional numeral system with radix \(b = 2\) and digits \(D = \{0, 1\}\).
The string \(11011_2\) represents the number
Example: Base 5
Consider the positional numeral system with radix \(b = 5\) and digits \(D = \{0, 1, 2, 3, 4\}\).
The string \(3402_5\) represents the number
Example: Base 16
Consider the positional numeral system with radix \(b = 16\) and digits \(D = \{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \mathrm{A}, \mathrm{B}, \mathrm{C}, \mathrm{D}, \mathrm{E}, \mathrm{F}\}\).
The string \(\mathrm{2AF70}_{16}\) represents the number
Theorem: Representing Real Numbers
Let \(b \gt 1\) be a natural number.
For every real number \(r \ge 0\) there exists a finite sequence of [extended natural numbers] \(a_0, a_1, \dotsc, a_n\) and an infinite series of extended natural numbers \((c_k)_{k \in \mathbb{N}}\) such that \(0 \le a_k \lt b\) and \(0 \le c_k \lt b\) and
Proof
TODO
According to this theorem, we can use any positional numeral system to represent all real numbers by again identifying the digits \(D = \{d_0,\dotsc,d_{n-1}\}\) with the first \(b\) numbers from \(\mathbb{N}_0\).
Notation
Each each string of the form \(a_n a_{n-1} \cdots a_1 a_0.c_1 c_2 \cdots\) represents a real number \(r \ge 0\):
If there is some index \(p\) such that \(c_k = 0\) for all \(k \gt p\), then we can also omit the trailing zeros and just write \(a_n a_{n-1} \cdots a_1 a_0.c_1 c_2 \cdots c_p\).
When multiple positional numeral systems are used, it can be difficult to know in which system a particular number is given, especially when the systems use the same symbols for some digits. This is why we usually write the radix \(b\) as a subscript at the end: