Whether you're a student or a professional, IDNLearn.com has answers for everyone. Get accurate and detailed answers to your questions from our dedicated community members who are always ready to help.

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

Sagot :

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.