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)

◀️ Back to the task


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:

DivisionQuotientRemainder
14 = E
9

Read from bottom to top, the remainders give back ✓

f)

Check by repeated division by 16:

DivisionQuotientRemainder
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)

DivisionQuotientRemainder
1 (LSB)
1
0
1
1
1
0
1 (MSB)

Read from bottom to top:

Check: ✓

h)

DivisionQuotientRemainder
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)

DivisionQuotientRemainder
1
1
3

Read from bottom to top:

Check: ✓

j)

DivisionQuotientRemainder
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)

DivisionQuotientRemainder
14 = E
13 = D

Read from bottom to top:

Check: ✓

l)

DivisionQuotientRemainder
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 bits010011101
Octal digits235

(with one leading zero in the leftmost group)

Check via the decimal value: and ✓

n)

Groups of three bits111010110001
Octal digits7261

Check via the decimal value: and ✓

Octal → binary

Replace each octal digit by its group of three bits.

o)

Octal digits365
Groups of three bits011110101

Without the leading zero and grouped in nibbles for readability:

Check via the decimal value: and ✓

p)

Octal digits3042
Groups of three bits011000100010

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 bits10100111
Hexadecimal digitsA7

Check via the decimal value: and ✓

r)

Groups of four bits110100111000
Hexadecimal digitsD38

Check via the decimal value: and ✓

Hexadecimal → binary

Replace each hexadecimal digit by its group of four bits.

s)

Hexadecimal digits5B
Groups of four bits01011011

The leading zero may also be omitted: .

Check via the decimal value: and ✓

t)

Hexadecimal digits8F2
Groups of four bits100011110010

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 digits315
Groups of three bits011001101

Step 2: without leading zeros, the bits are . Grouped from the right in groups of four:

Groups of four bits11001101
Hexadecimal digitsCD

Check via the decimal value: and ✓

v)

Step 1: each octal digit becomes its group of three bits.

Octal digits6524
Groups of three bits110101010100

Step 2: without leading zeros, the bits are . Grouped from the right in groups of four:

Groups of four bits110101010100
Hexadecimal digitsD54

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 digitsE9
Groups of four bits11101001

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 bits011101001
Octal digits351

Check via the decimal value: and ✓

x)

Step 1: each hexadecimal digit becomes its group of four bits.

Hexadecimal digitsA7E
Groups of four bits101001111110

Step 2: without leading zeros, the bits are . Grouped from the right in groups of three:

Groups of three bits101001111110
Octal digits5176

Check via the decimal value: and ✓