Daniel C.
asked 03/16/148-bit representation question
a) 111 + 45
b) 67 + 67
5 Answers By Expert Tutors
Eric Y. answered 03/16/14
SAT Prep
Cecilia P.
03/17/14
Steve S.
03/17/14
Daniel C.
03/17/14
Steve S. answered 03/17/14
Tutoring in Precalculus, Trig, and Differential Calculus
a) 111 + 45
b) 67 + 67
a)
111
55 1
27 1
13 1
6 1
3 0
1 1
0 1
111_10 = 01101111_2
45
22 1
11 0
5 1
2 1
1 0
0 1
45_10 = 00101101_2
1101111
111_10 = 01101111_2
45_10 = 00101101_2
–––––––––––––––––––
156_10 = 10011100_2
check:
1 = 1
)2+0 = 2
)2+0 = 4
)2+1 = 9
)2+1 = 19
)2+1 = 39
)2+0 = 78
)2+0 = 156 √
b)
67
33 1
16 1
8 0
4 0
2 0
1 0
0 1
67_10 = 01000011_2
1 1 11
67_10 = 01000011_2
67_10 = 01000011_2
–––––––––––––––––––
134_10 = 10000110_2
check:
1 = 1
)2+0 = 2
)2+0 = 4
)2+0 = 8
)2+0 = 16
)2+1 = 33
)2+1 = 67
)2+0 = 134 √
Notice that if 01000011_2 is left shifted by 1 bit you get 10000110_2; so a left shift of n bits is the same as multiplying by 2^n.
Deanna L. answered 03/17/14
Electrical engineering major and music lover with MIT degree
Parviz F. answered 03/17/14
Mathematics professor at Community Colleges
Parviz F.
03/17/14
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Philip P.
03/17/14