☰ Year plan · Communication Technology

Hexadecimal and binary together

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.

DivisionQuotientRemainder
4000 ÷ 162500
250 ÷ 161510 = A
15 ÷ 16015 = F
Worked examples
DivisionQuotientRemainder
9000 ÷ 165628
562 ÷ 16352
35 ÷ 1623
2 ÷ 1602
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.
DivisionQuotientRemainder
2749 ÷ 1617113 = D
171 ÷ 161011 = B
10 ÷ 16010 = 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.
2
Convert 1234 to hexadecimal and check it.
3
A student says that 480 is 1D0 in hexadecimal. Check it.
4
Why must the 0 at the end of FA0 be written?