7.2: Number Bases
- Page ID
- 7608
Definition
A number base is the number of digits or combination of digits that a system of counting uses to represent numbers. A base can be any whole number greater than 0. The most commonly used number system is the decimal system, commonly known as base 10. Its popularity as a system of counting is most likely due to the fact that we have 10 fingers.
Example \(\PageIndex{1}\):
The base of any number may be written beside the number. For example, 17_{8} is read as 17 base 8, which is 15 in base 10.
Example \(\PageIndex{2}\):
Binary is the most commonly used non-base 10 system. It is used for coding in computers. Binary is also known as Base 2. This means it is composed of only 0's and 1's. For example 9 in binary/base 2 is 1001. Let's see how this works.
Base 10 | Base 2 | 2^{4} | 2^{3} | 2^{2} | 2^{1} | 2^{0} |
1 | 1 | 0 | 0 | 0 | 0 | 1 |
9 | 1001 | 0 | 1 | 0 | 0 | 1 |
16 | 10000 | 1 | 0 | 0 | 0 | 0 |
Column 2 in the table above represents the binary representation of the decimal number shown in column 1. Columns 3-7 show the expansion of base 2. Note that leading zeros are not normally shown. The Binary system works similarly to the same way base 10 does, only smaller, therefore, requires more digits to make up the same number as in base 10. To illustrate, 16_{10} = 1(10^{1}) + 6(10^{0}) = 1(2^{4}) + 0(2^{3}) + 0(2^{2}) + 0(2^{1}) + 0(2^{0}).
Example \(\PageIndex{3}\):
Let's look at Base 16, also known as the hexadecimal system, another common base when coding and using computer systems. In this case, we use the digits \(0-9\) and the letters representing two digits \(A(10), B(11), C(12), D(13), E(14), F(15).\)
Base 10 | Base 16 | 16^{2} | 16^{1} | 16^{0} |
100 | 064 | 0 | 6 | 4 |
42 | 02A | 0 | 2 | A (10) |
124 | 07C | 0 | 7 | C (12) |
269 | 10D | 1 | 0 | D (13) |
Example \(\PageIndex{4}\):
Addition in Base 2:
Cheat Table to help with Addition:
0+0=0
0+1=1
1+0=1
1+1=10
Let's try it:
110
+ 101
1011
=====
Check: 110_{2 }= 6_{10}
101_{2} = 5_{10}
1011_{2 }= 11_{10}
Therefore our addition is correct as 6 + 5 = 11 in base 10.
Let's try another one:
10101_{2}
+ 11101_{2}
110010_{2}
======
Check: 10101_{2 }= 21
11101_{2 }= 29
110010_{2 }= 50
Therefore our addition in correct as 21 + 29 = 50 in base 10.
Example \(\PageIndex{5}\):
Subtraction in Base 2:
Cheat table to help with subtraction:
1-1=0
0-0=0
1-0=1
0-1=1 * This requires a carry 10-1=1 as you will remember 10 in base 2 is 2.
Let's try it:
10111_{2}
- 10101_{2}
00010_{2}
=====
Check: 10111_{2 }= 23_{10}
10101_{2 }= 21_{10}
00010_{2 }= 2_{10}
Therefore out subtraction is correct as 23 - 21 = in base 10.
Example \(\PageIndex{6}\):
What if we were to make our own number system, that only had even numbers and 1. Let's call it, only even system. What would this look like?
Let us use {1, 2, 4, 6, 8, ... } with multiplication.
1 | 2 | 4 | 6 | 8 | |
1 | 1 | 2 | 4 | 6 | 8 |
2 | 2 | 4 | 8 | 12 | 16 |
4 | 4 | 8 | 16 | 24 | 32 |
6 | 6 | 12 | 24 | 36 | 48 |
8 | 8 | 16 | 32 | 48 | 64 |
If we are only working in a number system that has even numbers and 1, what numbers would be prime?
Examples of prime numbers in the only even number system would be 2, 6, 10, 14, 18, 22. Notice how numbers that are not usually prime become prime as in the base 10 system they would be made up of odd numbers.
In this system is unique prime factorization possible? No, in an only even number system not all numbers would be made up of prime numbers.
The prime divisibility theorem fails.
Counter example:
\(36=(6)(6)=(2)(18)\).
Practical Uses
- Coding
- Time (24 hours) or (60)
- Baking (Dozen)
- Imperial or Metric measurement systems