Prof. Dr. Thorsten Jungmann (last updated 2026-11-02)
Relates to DET-01 Introduction to the module and its content
Task
Convert each of the following numbers into the stated number system.
Binary → decimal: a) , b)
Octal → decimal: c) , d)
Hexadecimal → decimal: e) , f)
Decimal → binary: g) , h)
Decimal → octal: i) , j)
Decimal → hexadecimal: k) , l)
Binary → octal: m) , n)
Octal → binary: o) , p)
Binary → hexadecimal: q) , r)
Hexadecimal → binary: s) , t)
Octal → hexadecimal: u) , v)
Hexadecimal → octal: w) , x)
Solution
Given
Given explicitly:
- Binary → decimal: ,
- Octal → decimal: ,
- Hexadecimal → decimal: ,
- Decimal → binary: ,
- Decimal → octal: ,
- Decimal → hexadecimal: ,
- Binary → octal: ,
- Octal → binary: ,
- Binary → hexadecimal: ,
- Hexadecimal → binary: ,
- Octal → hexadecimal: ,
- Hexadecimal → octal: ,
Known:
- Into the decimal number system (DET-01, 7.1 to 7.3): multiply each digit by its weight and add up the products
- From the decimal number system (DET-01, 7.4 to 7.6): repeated division by the base of the target system; the remainders, read from bottom to top, form the result
- Between binary, octal and hexadecimal (DET-01, 7.7): one octal digit stands for three bits, one hexadecimal digit for four bits; group the bits from the right; between octal and hexadecimal, the way leads via binary
- Weights: to ; , , , ; , ,
- Values of the hexadecimal digits: A = 10, B = 11, C = 12, D = 13, E = 14, F = 15
Required
a) to x) each number in the stated number system
Binary → decimal
Multiply each digit by its weight and add up the products. In binary, a 0 contributes nothing and a 1 contributes its weight.
a)
Check via hexadecimal: in groups of four bits, , and ✓
b)
Check via hexadecimal: in groups of four bits, , and ✓
Octal → decimal
Multiply each digit by its weight and add up the products.
c)
Check via binary and hexadecimal: , and ✓
d)
Check via binary and hexadecimal: , and ✓
Hexadecimal → decimal
Multiply each digit by its weight and add up the products. The letters count with their values.
e)
Check by repeated division by 16:
| Division | Quotient | Remainder |
|---|---|---|
| 14 = E | ||
| 9 |
Read from bottom to top, the remainders give back ✓
f)
Check by repeated division by 16:
| Division | Quotient | Remainder |
|---|---|---|
| 10 = A | ||
| 3 | ||
| 12 = C |
Read from bottom to top, the remainders give back ✓
Decimal → binary
Divide the number repeatedly by 2 and note the remainders until the quotient is 0. The first remainder is the least significant digit; read from bottom to top, the remainders form the result.
g)
| Division | Quotient | Remainder |
|---|---|---|
| 1 (LSB) | ||
| 1 | ||
| 0 | ||
| 1 | ||
| 1 | ||
| 1 | ||
| 0 | ||
| 1 (MSB) |
Read from bottom to top:
Check: ✓
h)
| Division | Quotient | Remainder |
|---|---|---|
| 0 (LSB) | ||
| 1 | ||
| 1 | ||
| 0 | ||
| 0 | ||
| 1 | ||
| 0 | ||
| 0 | ||
| 1 | ||
| 1 | ||
| 0 | ||
| 1 (MSB) |
Read from bottom to top:
Check: ✓
Alternatively: subtracting powers of two
Subtract the largest power of two that fits and write a 1 at its position; repeat with the rest. Here, , i.e. 1s at the positions 11, 9, 8, 5, 2, 1 and 0s at all others.
Decimal → octal
Divide the number repeatedly by 8 and note the remainders until the quotient is 0. The first remainder is the least significant digit; read from bottom to top, the remainders form the result.
i)
| Division | Quotient | Remainder |
|---|---|---|
| 1 | ||
| 1 | ||
| 3 |
Read from bottom to top:
Check: ✓
j)
| Division | Quotient | Remainder |
|---|---|---|
| 2 | ||
| 6 | ||
| 4 | ||
| 7 |
Read from bottom to top:
Check: ✓
Decimal → hexadecimal
Divide the number repeatedly by 16 and note the remainders until the quotient is 0. The first remainder is the least significant digit; read from bottom to top, the remainders form the result. Remainders from 10 to 15 are written as A to F.
k)
| Division | Quotient | Remainder |
|---|---|---|
| 14 = E | ||
| 13 = D |
Read from bottom to top:
Check: ✓
l)
| Division | Quotient | Remainder |
|---|---|---|
| 4 | ||
| 14 = E | ||
| 10 = A |
Read from bottom to top:
Check: ✓
Binary → octal
Group the bits from the right in groups of three, add leading zeros to fill the leftmost group, and replace each group by its octal digit.
m)
| Groups of three bits | 010 | 011 | 101 |
|---|---|---|---|
| Octal digits | 2 | 3 | 5 |
(with one leading zero in the leftmost group)
Check via the decimal value: and ✓
n)
| Groups of three bits | 111 | 010 | 110 | 001 |
|---|---|---|---|---|
| Octal digits | 7 | 2 | 6 | 1 |
Check via the decimal value: and ✓
Octal → binary
Replace each octal digit by its group of three bits.
o)
| Octal digits | 3 | 6 | 5 |
|---|---|---|---|
| Groups of three bits | 011 | 110 | 101 |
Without the leading zero and grouped in nibbles for readability:
Check via the decimal value: and ✓
p)
| Octal digits | 3 | 0 | 4 | 2 |
|---|---|---|---|---|
| Groups of three bits | 011 | 000 | 100 | 010 |
Without the leading zero and grouped in nibbles for readability:
Check via the decimal value: and ✓
Binary → hexadecimal
Group the bits from the right in groups of four, add leading zeros to fill the leftmost group, and replace each group by its hexadecimal digit.
q)
| Groups of four bits | 1010 | 0111 |
|---|---|---|
| Hexadecimal digits | A | 7 |
Check via the decimal value: and ✓
r)
| Groups of four bits | 1101 | 0011 | 1000 |
|---|---|---|---|
| Hexadecimal digits | D | 3 | 8 |
Check via the decimal value: and ✓
Hexadecimal → binary
Replace each hexadecimal digit by its group of four bits.
s)
| Hexadecimal digits | 5 | B |
|---|---|---|
| Groups of four bits | 0101 | 1011 |
The leading zero may also be omitted: .
Check via the decimal value: and ✓
t)
| Hexadecimal digits | 8 | F | 2 |
|---|---|---|---|
| Groups of four bits | 1000 | 1111 | 0010 |
Check via the decimal value: and ✓
Octal → hexadecimal
The way leads via binary: replace each octal digit by its three bits, then group the bits from the right in groups of four and replace each group by its hexadecimal digit.
u)
Step 1: each octal digit becomes its group of three bits.
| Octal digits | 3 | 1 | 5 |
|---|---|---|---|
| Groups of three bits | 011 | 001 | 101 |
Step 2: without leading zeros, the bits are . Grouped from the right in groups of four:
| Groups of four bits | 1100 | 1101 |
|---|---|---|
| Hexadecimal digits | C | D |
Check via the decimal value: and ✓
v)
Step 1: each octal digit becomes its group of three bits.
| Octal digits | 6 | 5 | 2 | 4 |
|---|---|---|---|---|
| Groups of three bits | 110 | 101 | 010 | 100 |
Step 2: without leading zeros, the bits are . Grouped from the right in groups of four:
| Groups of four bits | 1101 | 0101 | 0100 |
|---|---|---|---|
| Hexadecimal digits | D | 5 | 4 |
Check via the decimal value: and ✓
Hexadecimal → octal
The way leads via binary: replace each hexadecimal digit by its four bits, then group the bits from the right in groups of three and replace each group by its octal digit.
w)
Step 1: each hexadecimal digit becomes its group of four bits.
| Hexadecimal digits | E | 9 |
|---|---|---|
| Groups of four bits | 1110 | 1001 |
Step 2: without leading zeros, the bits are . Grouped from the right in groups of three, with one leading zero in the leftmost group:
| Groups of three bits | 011 | 101 | 001 |
|---|---|---|---|
| Octal digits | 3 | 5 | 1 |
Check via the decimal value: and ✓
x)
Step 1: each hexadecimal digit becomes its group of four bits.
| Hexadecimal digits | A | 7 | E |
|---|---|---|---|
| Groups of four bits | 1010 | 0111 | 1110 |
Step 2: without leading zeros, the bits are . Grouped from the right in groups of three:
| Groups of three bits | 101 | 001 | 111 | 110 |
|---|---|---|---|---|
| Octal digits | 5 | 1 | 7 | 6 |
Check via the decimal value: and ✓
