Question #60859

For the following decimal numbers, determine its binary representation. (Show full working)

a. 200
b. 300
c. 85
d. 77

Expert's answer

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=110010002200_{10} = 11001000_{2}.

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=1001011002300_{10} = 100101100_{2}.

c.

2)85 Remainder

2)42 1

2)21 0

2)10 1

2)5 0

2)2 1

2)1 0

So 8510=1010101285_{10} = 1010101_{2} .

d.

2)77 Remainder

2)38 1

2)19 0

2)9 1

2)4 1

2)2 0

2)1 0

So 7710=1001101277_{10} = 1001101_{2} .

Answer:

a. 11001000211001000_{2} ; b. 1001011002100101100_{2} ; c. 101010121010101_{2} ; d. 100110121001101_{2} .

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=127+126+123==127+126+025+024+123+022+021+020=110010002.\begin{array}{l} 2 0 0 = 1 2 8 + 6 4 + 8 = 1 \cdot 2 ^ {7} + 1 \cdot 2 ^ {6} + 1 \cdot 2 ^ {3} = \\ = 1 \cdot 2 ^ {7} + 1 \cdot 2 ^ {6} + 0 \cdot 2 ^ {5} + 0 \cdot 2 ^ {4} + 1 \cdot 2 ^ {3} + 0 \cdot 2 ^ {2} + 0 \cdot 2 ^ {1} + 0 \cdot 2 ^ {0} = 1 1 0 0 1 0 0 0 _ {2}. \\ \end{array}


b.


300=256+32+8+4=128+125+123+122==128+027+026+125+024+123+122+021+020=1001011002.\begin{array}{l} 3 0 0 = 2 5 6 + 3 2 + 8 + 4 = 1 \cdot 2 ^ {8} + 1 \cdot 2 ^ {5} + 1 \cdot 2 ^ {3} + 1 \cdot 2 ^ {2} = \\ = 1 \cdot 2 ^ {8} + 0 \cdot 2 ^ {7} + 0 \cdot 2 ^ {6} + 1 \cdot 2 ^ {5} + 0 \cdot 2 ^ {4} + 1 \cdot 2 ^ {3} + 1 \cdot 2 ^ {2} + 0 \cdot 2 ^ {1} + 0 \cdot 2 ^ {0} = 1 0 0 1 0 1 1 0 0 _ {2}. \\ \end{array}


c.


85=64+16+4+1=126+124+122+120==126+025+124+023+122+021+120=10101012.\begin{array}{l} 8 5 = 6 4 + 1 6 + 4 + 1 = 1 \cdot 2 ^ {6} + 1 \cdot 2 ^ {4} + 1 \cdot 2 ^ {2} + 1 \cdot 2 ^ {0} = \\ = 1 \cdot 2 ^ {6} + 0 \cdot 2 ^ {5} + 1 \cdot 2 ^ {4} + 0 \cdot 2 ^ {3} + 1 \cdot 2 ^ {2} + 0 \cdot 2 ^ {1} + 1 \cdot 2 ^ {0} = 1 0 1 0 1 0 1 _ {2}. \\ \end{array}


d.


77=64+8+4+1=126+123+122+120==126+025+024+123+122+021+120=10011012.\begin{array}{l} 7 7 = 6 4 + 8 + 4 + 1 = 1 \cdot 2 ^ {6} + 1 \cdot 2 ^ {3} + 1 \cdot 2 ^ {2} + 1 \cdot 2 ^ {0} = \\ = 1 \cdot 2 ^ {6} + 0 \cdot 2 ^ {5} + 0 \cdot 2 ^ {4} + 1 \cdot 2 ^ {3} + 1 \cdot 2 ^ {2} + 0 \cdot 2 ^ {1} + 1 \cdot 2 ^ {0} = 1 0 0 1 1 0 1 _ {2}. \\ \end{array}


Answer:

a. 11001000211001000_{2} ; b. 1001011002100101100_{2} ; c. 101010121010101_{2} ; d. 100110121001101_{2} .

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=1612+8=12161+8160=C816=110010002200_{10} = 16 \cdot 12 + 8 = 12 \cdot 16^{1} + 8 \cdot 16^{0} = C8_{16} = 11001000_{2} .

b. 16)300 Remainder

16)18 12

16)1 2

1

So 30010=1162+2161+12160=12C16=1001011002300_{10} = 1 \cdot 16^{2} + 2 \cdot 16^{1} + 12 \cdot 16^{0} = 12C_{16} = 100101100_{2} .

c. 16)85 Remainder

16)5 5

5

So 8510=5161+5160=5516=1010101285_{10} = 5 \cdot 16^{1} + 5 \cdot 16^{0} = 55_{16} = 1010101_{2} .

d. 16)77 Remainder

16)4 13

4

So 7710=4161+13160=4D16=1001101277_{10} = 4 \cdot 16^{1} + 13 \cdot 16^{0} = 4D_{16} = 1001101_{2}.

Answer:

a. 11001000211001000_{2}; b. 1001011002100101100_{2}; c. 101010121010101_{2}; d. 100110121001101_{2}.

www.AssignmentExpert.com


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS