Westonci.ca is your go-to source for answers, with a community ready to provide accurate and timely information. Get immediate and reliable solutions to your questions from a knowledgeable community of professionals on our platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

What is the smallest number of bits that would be needed to store the number '50' in binary?​

Sagot :

tonb

Answer:

6 bits

Explanation:

5 bits gets you 2^5=32 possibilities (values 0-31), which is not enough for 50.

6 bits gets you 2^6=64 possibilities (values 0-63), which is enough.

To calculate for an arbitrary number, take the 2-log, and round up:

[tex]\log_2(50) \approx 5.64[/tex]

rounded up is 6.