GRUEN INTERNATIONAL SCHOOLS, PORT HARCOURTINTRODUCTION TO NUMBER BASES
A number base tells us the number of digits used in a number system.
Base 10 is the common base and it uses the digits 0–9, base 2 (binary) uses only 0 and 1, base 4 uses the digits 0 - 3 and base 5 uses the digits 0–4.
Class Activity:
1. Which digits are used in base 2?
2. Which digits are used in base 5?
3. Is 1011 a valid base 2 number?
4. Is 506 a valid base 5 number? Give a reason.
CONVERSION FROM BASE 10 TO BINARY
Examples: Convert the following base 10 numbers into binary numbers
1) 26 (2) 39 (3) 47 (4) 71
Solution
1) 26 ÷ 2 = 13 remainder 0
13 ÷ 2 = 6 remainder 1
6 ÷ 2 = 3 remainder 0
3 ÷ 2 = 1 remainder 1
1 ÷ 2 = 0 remainder 1
Therefore, 26 base 10 = 11010 base 2
NOTE: Read the remainders from bottom to top
Class Activity: Convert these base 10 numbers to base 2
(a) 10 base 10 (b)15 base 10 (c) 20 base 10
CONVERSION FROM BINARY TO BASE 10
Examples: Convert these binary numbers to base 10
(1) 1101 base 2 (2) 111001 base 2
Solution
1)1101 base 2 = (1 × 2^3)+(1 × 2^2)+(0 × 2^1)+(1 × 2^0)
= 8 + 4 + 0 + 1
=13 base 10
2)111001 base 2 = (1 × 2^5)+(1 × 2^4)+(1 × 2^3)+(0 × 2^2) + (0 × 2^1) + (1 × 2^0)
= 32 + 16 + 8 + 0 + 0 + 1
= 57 base 10
Class Activity: Convert to base 10:
a. 101 base 2
b. 110 base 2
c. 1001 base 2
CONVERSION FROM BASE 10 TO OTHER BASES
Examples : Convert (a) 23 base 10 to base 5 (b) 23 base 10 to base 4
Solution
a) 23 ÷ 5 = 4 remainder 3
4 ÷ 5 = 0 remainder 4
Therefore, 2310 =435.
23 ÷ 4 = 5 remainder 3
5 ÷ 4 = 1 remainder 1
1 ÷ 4 = 0 remainder 1
Therefore, 23 base 10 = 113 base 4
Class Activity : Convert:
a. 18 base 10 to base 5
b. 24 base 10 to base 5
c. 31 base 10 to base 4
CONVERSION FROM OTHER BASES TO BASE 10
Example: Convert (a) 43 base 5 to base 10 (b) 313 base 4 to base 10
Solution
(a)43 base 5 = (4 × 5^1)+(3 × 5^0)
= 20 + 3
= 23 base 10
(b)313 base 4 = ( 3 × 4^2) + ( 1 × 4^1) + ( 3 × 4^0)
= 48 + 4 + 3
= 55 base 10
Class Activity : Convert to base 10
a. 32 base 5
b. 101 base 2
c. 123 base 4
Assignment :
1. Convert 1810 to base 2.
2. Convert 3010 to base 2.
3. Convert 4510 to base 5.
4. Convert 101012 to base 10.
5. Convert 1324 to base 10.