bonjour
1 )
a.
(101)₂ = 1*2⁰+0*2¹+1*2² = 1+4
(101)₂ = (5)₁₀
b.
(10011)₂ = 1*2⁰+1*2¹+0*2²+0*2³+1*2⁴ = 1+2+16
(10011)₂ = (19)₁₀
c.
(10100)₂ = 0*2⁰+0*2¹+1*2²+0*2³+1*2⁴ = 4+16
(10100)₂ = (20)₁₀
2.a
3 = 1*2⁰+1*2¹
3 = (11)₂
b.
9 = 1*2³+0*2²+0*2¹+1*2⁰
9 = (1001)₂
c.
25 = 1*2⁴+1*2³+0*2²+0*2¹+1*2⁰
25 = (11001)₂
d.
254 = 1*2⁸+1*2⁷+1*2⁶+1*2⁵+1*2⁴+1*2³+1*2²+1*2¹+0*2⁰
254 = (11111110)₂