Number Bases & Binary
Converting between base 10 and other bases, and binary arithmetic.
Number bases show that place value depends on the system being used. In base 10, each place is a power of 10; in base 2, each place is a power of 2; in base 5, each place is a power of 5.
CSEC questions on bases test careful conversion, not guesswork. Write the place values, expand the number, and then regroup if converting from base 10 to another base. Remember that a digit in a base must be smaller than the base itself.
So far, we've been working in base 10 (the decimal system) because we have 10 fingers. But numbers can be represented in ANY base, and computers use base 2 (binary).
Understanding Place Value in Different Bases
In base 10, we use digits 0-9, and each place value represents a power of 10:
| Thousands | Hundreds | Tens | Ones |
|---|---|---|---|
| 1000 | 100 | 10 | 1 |
So the number 2,345 in base 10 means:
In base 2 (binary), we use only digits 0 and 1, and each place value represents a power of 2:
| Sixteens | Eights | Fours | Twos | Ones |
|---|---|---|---|---|
| 16 | 8 | 4 | 2 | 1 |
Converting FROM Binary TO Decimal (Base 2 to Base 10)
This is the table method — write out place values in a table, then add up the values where there's a 1.
Convert (binary) to decimal
Step 1: Draw a table with powers of 2
| 16 | 8 | 4 | 2 | 1 |
Step 2: Write the binary digits in the table
| 1 | 0 | 1 | 1 | 0 |
| 16 | 8 | 4 | 2 | 1 |
Step 3: For each 1, take that place value. Ignore the 0s.
- Position : digit is 1, so count 16
- Position : digit is 0, so count 0
- Position : digit is 1, so count 4
- Position : digit is 1, so count 2
- Position : digit is 0, so count 0
Step 4: Add them up
Answer:
Convert to decimal
| 1 | 1 | 0 | 0 | 1 |
| 16 | 8 | 4 | 2 | 1 |
Add the values where digit is 1:
Answer:
Converting FROM Decimal TO Binary (Base 10 to Base 2)
Use the repeated division method: Keep dividing by 2 and track remainders.
Convert 22 (decimal) to binary
Step 1: Divide repeatedly by 2, writing down remainders
22 ÷ 2 = 11 remainder 0
11 ÷ 2 = 5 remainder 1
5 ÷ 2 = 2 remainder 1
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Step 2: Read the remainders from BOTTOM to TOP
Answer:
Check: Use the table method above to verify — ✓
Convert 35 to binary
35 ÷ 2 = 17 remainder 1
17 ÷ 2 = 8 remainder 1
8 ÷ 2 = 4 remainder 0
4 ÷ 2 = 2 remainder 0
2 ÷ 2 = 1 remainder 0
1 ÷ 2 = 0 remainder 1
Read remainders from bottom to top: 100011
Answer:
Check: ✓
Other Number Bases (Base 8 and Base 16)
While binary (base 2) is most important for computer science, you should know that other bases work the same way.
Base 8 (Octal): Uses digits 0-7, each place is a power of 8
| 512 | 64 | 8 | 1 |
Convert (octal) to decimal
| 2 | 5 | 3 |
| 64 | 8 | 1 |
Answer:
For CSEC: Focus on base 2 (binary), base 8 (octal), and base 10 (decimal). The method is always the same: draw the place value table, put in your digits, and add up using powers of the base.
Properties of Numbers and Operations
Numbers and mathematical operations have special properties that help us solve problems more efficiently.
Closure Property
A set is closed under an operation if performing that operation on numbers in the set always gives you a number also in that set.
Addition: Whole numbers are closed under addition (adding two whole numbers always gives a whole number)
- 3 + 4 = 7 ✓
Subtraction: Whole numbers are NOT closed under subtraction (2 - 5 = -3, which is not a whole number)
Multiplication: Whole numbers are closed under multiplication
- 4 × 6 = 24 ✓
Division: Whole numbers are NOT closed under division (5 ÷ 2 = 2.5, which is not a whole number)
Commutative Property
The order doesn't matter — you get the same answer either way.
Addition:
- 3 + 5 = 8 and 5 + 3 = 8 ✓
Multiplication:
- 4 × 7 = 28 and 7 × 4 = 28 ✓
Subtraction: NOT commutative (5 - 3 ≠ 3 - 5)
Division: NOT commutative (8 ÷ 4 ≠ 4 ÷ 8)
Associative Property
When you have multiple operations, you can group them differently and get the same answer.
Addition:
- ✓
Multiplication:
- ✓
Subtraction: NOT associative
Division: NOT associative
Distributive Property
Multiplication distributes over addition:
Calculate two ways:
Method 1 (do the parentheses first):
Method 2 (distribute the 5): ✓
Both give 35!
Identity Properties
Additive Identity: Adding 0 doesn't change the number.
Multiplicative Identity: Multiplying by 1 doesn't change the number.
Inverse Properties
Additive Inverse: For any number, there's another number that, when added, gives 0.
- 5 + (-5) = 0
Multiplicative Inverse: For any non-zero number, there's another number that, when multiplied, gives 1.