73.7k views
5 votes
How many bits do you need to count up to 30 help please

User NewWorld
by
5.2k points

1 Answer

2 votes

Answer:

5

Step-by-step explanation:

2⁵ = 32, so that fits.

In general, to calculate the number of bits without guessing, you can take the 2 log of the number and then round up:


\log_2 30 \approx 4.9

rounded up gives 5.

User Justin Samuel
by
3.8k points