Number Bases
Senior 3 · Mathematics
Number Bases
Lesson 3 of 5
25 min
Inside every phone and computer, numbers are added in base two, billions of times a second, by the same column method you learned in primary school. The only change from base ten is the moment you carry: in base you carry as soon as a column reaches , not 10. Subtraction changes in the same way: a borrowed 1 is worth , not 10.
Definition
Carry: when the digits in a column add up to the base or more, write (sum ) in that column and add 1 to the next column on the left.
Notation: the carried 1 is written small, above the next column.
Example: in base five, : write 2 and carry 1.
Definition
Borrow: when a top digit is smaller than the digit below it, take 1 from the next column on the left. In base that 1 is worth units of the column you are working on.
Notation: cross out the digit you borrowed from and write it one smaller.
Example: in base five, for , borrow: , and .
Important
Why the base is the trigger. In base , each place is worth times the place on its right. So units of one column can always be exchanged for 1 unit of the next column (a carry), and 1 unit of a column can be exchanged for units of the column on its right (a borrow). Neither exchange changes the value of the number.
In base five, any sum of 5 or more is written with two digits. Learn to use this table, as you once learned the base-ten addition facts.
| 0 | 1 | 2 | 3 | 4 | |
|---|---|---|---|---|---|
| 0 | 0 | 1 | 2 | 3 | 4 |
| 1 | 1 | 2 | 3 | 4 | 10 |
| 2 | 2 | 3 | 4 | 10 | 11 |
| 3 | 3 | 4 | 10 | 11 | 12 |
| 4 | 4 | 10 | 11 | 12 | 13 |
For example, (one five and two ones) and .
Worked example 1: adding in base five
Work out .
| carry | 1 | 1 | 1 | |
| 3 | 4 | 2 | ||
| 1 | 4 | 3 | ||
| 1 | 0 | 4 | 0 |
So . Check in base ten: , and . ✓
Worked example 2: adding in base two
Work out .
| carry | 1 | 1 | 1 | 1 | 1 | |
| 1 | 0 | 1 | 1 | 1 | ||
| 1 | 1 | 0 | 1 | |||
| 1 | 0 | 0 | 1 | 0 | 0 |
In base two the only facts you need are and .
So the sum is . Check: . ✓
Worked example 3: adding in base eight and in base sixteen
(a)
| carry | 1 | 1 | 1 | 1 | |
| 5 | 6 | 7 | 4 | ||
| 2 | 3 | 5 | 7 | ||
| 1 | 0 | 2 | 5 | 3 |
Ones: : write 3, carry 1. Eights: : write 5, carry 1. Next: : write 2, carry 1. Next: : write 0, carry 1. Answer . Check: . ✓
(b)
| carry | 1 | 1 | ||
| 9 | C | 7 | ||
| 4 | A | 9 | ||
| E | 7 | 0 |
Ones: : write 0, carry 1. Sixteens: : write 7, carry 1. Next: : write E. Answer . Check: . ✓
Worked example 4: subtracting in base five, with a chain of borrows
Work out .
| top after borrowing (in base ten) | 3 | 4 | 5 | 7 |
| 4 | 0 | 1 | 2 | |
| 1 | 2 | 4 | 3 | |
| 2 | 2 | 1 | 4 |
So . Check: . ✓
Worked example 5: subtracting in base two and in base sixteen
(a)
| top after borrowing (in base ten) | 0 | 2 | 1 | 1 | 2 | 2 |
| 1 | 1 | 0 | 0 | 1 | 0 | |
| 1 | 0 | 1 | 1 | 1 | ||
| 1 | 1 | 0 | 1 | 1 |
Each borrow in base two brings 2 into the column: for example becomes . Answer . Check: . ✓
(b)
| top after borrowing (in base ten) | 10 | 15 | 20 |
| B | 0 | 4 | |
| 3 | E | 7 | |
| 7 | 1 | D |
Ones: ; the sixteens digit is 0, so borrow from B: it becomes A, the sixteens column gets 16 and lends 1, keeping 15. Ones: , . Sixteens: . Last column: . Answer . Check: . ✓
Warning
Do not think in base ten by accident. In base eight, in base ten, which is written : write 4 and carry 1, not "write 2, carry 1". And a borrow in base five adds 5, not 10. When in doubt, work the column out in base ten, then change the result into the base.
Tip
Check a subtraction by adding. The answer plus the number you subtracted must give the number you started with, and that check uses the same base: .
Jen Laughlin: Subtracting in Bases (4 min). Watch how each borrow adds the base, not 10, to the column that needs to be made bigger.
Practice
Show the carries and borrows. Check each answer in base ten. The last three are harder.
Sources and credits
The Rwandan worked examples, the diagrams, the practice items and the quiz questions were written by Ganzaa.