Number Bases
Senior 3 · Mathematics
Number Bases
Lesson 1 of 5
22 min
The photograph below shows a small clay tablet from Mesopotamia (in modern Iraq), written in the Old Babylonian period, more than 3,500 years ago. Across the diagonal of the square the writer pressed four groups of wedge marks, which modern scholars read as 1, 24, 51 and 10. They are the digits of a number written in base sixty:
which is correct to five decimal places. We still use sixties when we tell the time: 60 seconds make a minute and 60 minutes make an hour. Grouping in tens is only one choice. This unit studies numerals written with other groupings, above all base 2, the language of every computer and phone.

Definition
Number, numeral and digit. A number is an amount or quantity. A numeral is a written name for a number. A digit is one of the single symbols used to write numerals.
Notation: the same number can have many numerals: , , and the Roman VII all name the number of days in a week.
Example: the numeral 305 is made of the digits 3, 0 and 5.
Definition
Base (or radix) of a place-value system: the number of units of one place that are exchanged for one unit of the next place to the left. A system in base uses exactly digits: .
Notation: the base is written as a small subscript after the numeral. is read "two four three, base five". A numeral with no subscript is in base ten.
Example: base five uses only the digits 0, 1, 2, 3 and 4; base two (binary) uses only 0 and 1.
To write 23 counters in base five, put them in groups of five. There are 4 full groups and 3 counters left over, so 23 is written : 4 fives and 3 ones.
With more counters, five groups of five are bundled into one "twenty-five", five twenty-fives into one "hundred and twenty-five", and so on. So in base the places, from the right, are worth , , , , …
| Base | Digits used | |||||
|---|---|---|---|---|---|---|
| 2 | 16 | 8 | 4 | 2 | 1 | 0, 1 |
| 5 | 625 | 125 | 25 | 5 | 1 | 0 to 4 |
| 8 | 4096 | 512 | 64 | 8 | 1 | 0 to 7 |
| 10 | 10000 | 1000 | 100 | 10 | 1 | 0 to 9 |
| 16 | 65536 | 4096 | 256 | 16 | 1 | 0 to 9, A to F |
Important
Rule (value of a numeral in base ). The numeral in base stands for
Why: units of any place are exchanged for 1 unit of the next place, so each place is worth times the place on its right. Starting from 1 on the right, the places are worth , and each digit says how many of that place there are.
Definition
Hexadecimal digits: base sixteen needs sixteen single digits, so after 0 to 9 it uses letters: , , , , , .
Notation: means 2 sixteens and 15 ones.
Example: .
Worked example 1: converting to base ten
Write each numeral in base ten: (a) (b) (c) (d) .
Solution Multiply each digit by its place value and add.
In (b) only the places holding a 1 count: , , and .
Worked example 2: a faster way, digit by digit
Convert to base ten without working out powers of 5.
Solution Start with the first digit. Repeatedly multiply by the base and add the next digit:
So . Check with place values: . ✓ This is the same "multiply and add" pattern as synthetic division in the unit on quadratic equations, with in place of .
Worked example 3: which numerals are possible?
(a) Which of , , and are valid numerals? (b) What is the smallest base in which could be a numeral?
Solution
(a) A digit must be smaller than the base. contains 5, and contains 2, so both are invalid. is valid (all digits are below 8). is invalid, because the hexadecimal digits stop at F.
(b) The largest digit is 6, so the base must be at least .
Warning
"10" is the base itself. In every base , the numeral means one and no ones, that is : , , . So never read as "one hundred and one"; it is five.
Tip
Read the digits one at a time. Say "one zero one, base two", not "one hundred and one". Words like "hundred" and "thousand" belong to base ten only, and using them in another base leads to wrong values.
Khan Academy: Introduction to number systems and binary (10 min). Watch how the place values of base ten are rebuilt as powers of 2 for binary, and how a binary numeral is turned into its base-ten value.
Practice
The last three questions are harder.
Sources and credits
The Rwandan worked examples, the diagrams, the practice items and the quiz questions were written by Ganzaa.