Alice and Bob wants to send a binary number (base 2) with 2400 digits to Chris. However, the internet speed is ridiculously slow and transmit such a long number can take forever. In order to shorten the length of the number, each of them propose a plan :
Alice: we should convert the number to base 64.
Bob: we should convert the number to base 16.
Let the number generated by Alice and Bob be A and B respectively, and d ( x ) denote the number of digits in x .
Which option best describe the value of d ( B ) d ( A ) ?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The number of different things (read numbers ) that one can describe with 2400 binary digits is 2 2 4 0 0 .
To describe the same number of things using hexadecimal digits, we just need l o g 1 6 2 2 4 0 0 . And similarly, with base 64, we need l o g 6 4 2 2 4 0 0
So, the answer is lo g 1 6 2 2 4 0 0 lo g 6 4 2 2 4 0 0 = lo g 1 6 2 lo g 6 4 2 = 4 1 lo g 2 6 1 lo g 2 = 3 2
Problem Loading...
Note Loading...
Set Loading...
A way to think about this is to notice that to translate a number from binary to hexadecimal, 4 bits collapse into a single hexadecimal digit. But, to translate a number from binary to base-64, 6 bits collapse into a single digit.
To see why, notice that 4 bits describe 1 6 distinct numbers, which can be done with just one hexadecimal digit. And similarly for base-64 numerals
This is why 6 4 times the space is needed.