We have to show that the hexadecimal expansion of a positive integer can be obtained from its
binary expansion by grouping together blocks of four binary digits adding initial zeros if
necessary, and translating each block of four binary digits into a single hexadecimal digit.
The binary number is given as
(…b13b12b11b10b03b02b01b00)2
Adding up to 3 leading zeros if necessary, write the binary expansion as
(…bi3bi2bi1bi0…)2
The binary expansion is expressed as
(…b11b10b03b02b01b00)2(…b11b10b03b02b01b00)2=(20b00+21b01+22b02+23b03)+(24b10+25b11+26b12+27b13)+(28b20+29b21+210b22+211b23)+…=(20b00+21b01+22b02+23b03)+24(20b10+21b11+22b12+23b13)+28(20b20+21b21+22b22+23b23)+…
We know that
(20bi0+21bi1+22bi2+23bi3)=bi0+2bi1+4bi2+8bi3(20bi0+21bi1+22bi2+23bi3)=hi
Where hi is a hexadecimal digit
Therefore
(…b13b12b11b10b03b02b01b00)2=(h0)+24(h1)+28(h2)+…(…b13b12b11b10b03b02b01b00)2=160(h0)+161(h1)+162(h2)+…
This is the hexadecimal expansion for
(…h3h2h1h0)16
Hence proved that the hexadecimal expansion of a positive integer can be obtained from its
binary expansion by grouping together blocks of four binary digits adding initial zeros if
necessary, and translating each block of four binary digits into a single hexadecimal digit.