Binary To Octal:: Clar, Steve E. Exercise 1
Binary To Octal:: Clar, Steve E. Exercise 1
Exercise 1
1. Convert the following binary numbers into octal and hexadecimal numbers:
a. 1101011100101
b. 11000011100110000011
Binary Octal Hexadecimal
1101011100101 153458 1AE516
11000011100110000011 30346038 C398316
Solution:
Binary to Octal:
We can split the binary number from left to right, 3 bits per group. If the rightmost group
is not in the 3-bit format, we can add zero to fill in the lacking bits. Then we can evaluate each
group with its equivalent value from 0 to seven since we are converting binary number to
octal.
a. 1 101 011 100 101
001 101 011 100 101
1 5 3 4 5
Binary to Hexadecimal:
We can split the binary number from left to right, 4 bits per group. Same in Octal, if the
rightmost group is not in the 4-bit format, we can add zero to fill in the lacking bits. Then we
can evaluate each group with its equivalent value from 0 to 15 (0-9, A, B, C, D, E, F) since we
are converting binary number to hexadecimal.
c. 1 1010 1110 0101
0001 1010 1110 0101
1 A E 5
1|Page
CLAR, STEVE E.
Exercise 1
a. 15210 = 100110002
Remainder
152/2 = 76 0
76/2 = 38 0
38/2 = 19 0 Read from bottom to top
19/2 = 9 1
9/2 = 4 1
4/2 = 2 0
2/2 = 1 0
1/2 = 0 1
b. 34310 = 1010101112
Remainder
343/2 = 76 1
171/2 = 85 1
85/2 = 42 1 Read from bottom to top
42/2 = 21 0
21/2 = 10 1
10/2 = 5 0
5/2 = 2 1
2/2 = 1 0
1/2 = 0 1
a. 184310 = 34638
Remainder
1843/8 = 230 3
230/8 = 28 6
28/8 = 3 4 Read from bottom to top
3/8 = 0 3
b. 176610= 33468
Remainder
1766/8 = 220 6
220/8 = 27 4
27/8 = 3 3 Read from bottom to top
3/8 = 0 3
2|Page
CLAR, STEVE E.
Exercise 1
4. Convert the following binary numbers into octal and hexadecimal numbers:
a. 198710= 7C316
b. Remainder
1987/16 = 124 3
124/16 = 7 C Read from bottom to top
7/16 = 0 7
c. 307210= C0016
a. Remainder
3072/16 = 192 0
192/16 = 12 0 Read from bottom to top
12/16 = 0 C
3|Page