Answer:
a. 7 bits
b. 8 bits
c. 9 bits
d. 24 bits
Step-by-step explanation:
Required
Number of bits per word
The formula to get the number of bits per word is:
Where
n = bits
N = numbers
Solving (a) 0 to 100
There are 101 digits between 0 and 100 (inclusive)
So:
Substitute 101 for N in
101 can not be expressed as an exponent of 2.
So, we substitute 101 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 128 as an exponent of 2
Apply law of indices
Hence, 7 bits are required
Solving (b): 0 through 255
There are 256 digits between 0 and 255 (inclusive)
So:
Substitute 256 for N in
Express 256 as an exponent of 2
Apply law of indices
Hence, 8 bits are required
Solving (c): 0 through 256
There are 257 digits between 0 and 256 (inclusive)
So:
Substitute 257 for N in
257 can not be expressed as an exponent of 2.
So, we substitute 257 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 512 as an exponent of 2
Apply law of indices
Hence, 9 bits are required
Solving (d): 0 through 10000000
There are 10000001 digits between 0 and 10000000 (inclusive)
So:
Substitute 10000000 for N in
10000000 can not be expressed as an exponent of 2.
So, we substitute 10000000 for the closest number greater than 101 that can be expressed as an exponent of 2.
So:
Express 16777216 as an exponent of 2
Apply law of indices
Hence, 24 bits are required