Answer on Question #60859 – Math – Discrete Mathematics
Question
For the following decimal numbers, determine its binary representation. (Show full working)
a. 200
b. 300
c. 85
d. 77
Solution
Method 1
Divide downwards, dividing each new quotient by two and writing the remainders to the right. The quotient is the integer number under the long division symbol. Stop when the quotient is 0.
Starting with the bottom remainder, read the sequence of remainders upwards to the top and write out the binary representation.
a. 2)200 Remainder
2)100 0
2)50 0
2)25 0
2)12 1
2)6 0
2)3 0
2)1 1
So 20010=110010002.
b. 2)300 Remainder
2)150 0
2)75 0
2)37 1
2)18 1
2)9 0
2)4 1
2)2 0
2)1 0
1
So 30010=1001011002.
c.
2)85 Remainder
2)42 1
2)21 0
2)10 1
2)5 0
2)2 1
2)1 0
So 8510=10101012 .
d.
2)77 Remainder
2)38 1
2)19 0
2)9 1
2)4 1
2)2 0
2)1 0
So 7710=10011012 .
Answer:
a. 110010002 ; b. 1001011002 ; c. 10101012 ; d. 10011012 .
Method 2
Table 1

Represent the decimal as the sum of powers of 2 and apply formulae from Table 1. Finally we obtain the binary representation.
a.
200=128+64+8=1⋅27+1⋅26+1⋅23==1⋅27+1⋅26+0⋅25+0⋅24+1⋅23+0⋅22+0⋅21+0⋅20=110010002.
b.
300=256+32+8+4=1⋅28+1⋅25+1⋅23+1⋅22==1⋅28+0⋅27+0⋅26+1⋅25+0⋅24+1⋅23+1⋅22+0⋅21+0⋅20=1001011002.
c.
85=64+16+4+1=1⋅26+1⋅24+1⋅22+1⋅20==1⋅26+0⋅25+1⋅24+0⋅23+1⋅22+0⋅21+1⋅20=10101012.
d.
77=64+8+4+1=1⋅26+1⋅23+1⋅22+1⋅20==1⋅26+0⋅25+0⋅24+1⋅23+1⋅22+0⋅21+1⋅20=10011012.
Answer:
a. 110010002 ; b. 1001011002 ; c. 10101012 ; d. 10011012 .
Method 3
Table 2

Using division first we convert the decimal representation to hexadecimal one. Starting with the bottom remainder, read the sequence of remainders upwards to the top.
Then we shall convert the hexadecimal representation to binary one using formulae from Table 2.
The first digit in the binary representation should be non-zero.
a. 16)200 Remainder
16)12 8
12
So 20010=16⋅12+8=12⋅161+8⋅160=C816=110010002 .
b. 16)300 Remainder
16)18 12
16)1 2
1
So 30010=1⋅162+2⋅161+12⋅160=12C16=1001011002 .
c. 16)85 Remainder
16)5 5
5
So 8510=5⋅161+5⋅160=5516=10101012 .
d. 16)77 Remainder
16)4 13
4
So 7710=4⋅161+13⋅160=4D16=10011012.
Answer:
a. 110010002; b. 1001011002; c. 10101012; d. 10011012.
www.AssignmentExpert.com