Week 5 · Unit 1 Number systems (5): more decimal to hexadecimal, hexadecimal to binary and binary to hexadecimal · 3 lessons
1
One more division by 16, then check by multiplying back
ICT Secondary 3 Term 1, Unit 1, Topic 1: pp. 22–26
GoalConvert a larger decimal number to hexadecimal and check the answer by multiplying back.
New words
check by multiplying back · turning the answer into decimal again to see whether you get the starting numberzero remainder · a remainder of 0 is a real digit of the answer and must be writtencapital letters · in this course the hexadecimal letters are written A to F
Explanation
This lesson practises division by 16 once more with bigger numbers, and adds a habit: always check. Convert 4000: 4000 ÷ 16 = 250 remainder 0; 250 ÷ 16 = 15 remainder 10, written A; 15 ÷ 16 = 0 remainder 15, written F. Reading upwards gives (FA0)₁₆. The first remainder, 0, is a real digit and must be written: without it the answer would be FA, which is only 250. To check, multiply back: 15×256 + 10×16 + 0 = 3840 + 160 + 0 = 4000. If you do not get the number you started with, look for the mistake in the remainders, in their order or in the letters. Also remember that a hexadecimal answer may use only digits: (2328)₁₆ looks like an ordinary number but is not one, and the small 16 tells which system it is written in.
Division
Quotient
Remainder
4000 ÷ 16
250
0
250 ÷ 16
15
10 = A
15 ÷ 16
0
15 = F
Worked examples
Division
Quotient
Remainder
9000 ÷ 16
562
8
562 ÷ 16
35
2
35 ÷ 16
2
3
2 ÷ 16
0
2
Convert 9000. Four divisions give the remainders 8, 2, 3 and 2, with no letters, so the answer is (2328)₁₆. It is not the decimal number 2328. Check: 2×4096 + 3×256 + 2×16 + 8 = 8192 + 768 + 32 + 8 = 9000.
Division
Quotient
Remainder
2749 ÷ 16
171
13 = D
171 ÷ 16
10
11 = B
10 ÷ 16
0
10 = A
Convert 2749. The remainders are 13 (D), 11 (B) and 10 (A), so the answer is (ABD)₁₆. Check: 10×256 + 11×16 + 13 = 2560 + 176 + 13 = 2749.
Class activity
Choose a decimal number between 1000 and 3000. Convert it to hexadecimal, then check it by multiplying back. If the check gives a different number, find the mistake and correct it.
Practice
1
Convert 700 to hexadecimal and check it.
700 ÷ 16 = 43 r 12 (C); 43 ÷ 16 = 2 r 11 (B); 2 ÷ 16 = 0 r 2. The answer is 2BC. Check: 2×256 + 11×16 + 12 = 512 + 176 + 12 = 700.
2
Convert 1234 to hexadecimal and check it.
1234 ÷ 16 = 77 r 2; 77 ÷ 16 = 4 r 13 (D); 4 ÷ 16 = 0 r 4. The answer is 4D2. Check: 4×256 + 13×16 + 2 = 1024 + 208 + 2 = 1234.
3
A student says that 480 is 1D0 in hexadecimal. Check it.
1D0 = 1×256 + 13×16 + 0 = 464, not 480. The right answer is 1E0 (256 + 14×16 = 480).
4
Why must the 0 at the end of FA0 be written?
Without it the answer FA would be 250, a different number.