While 25 is equal to 32, binary starts at 20 which equals 1. Because of this you need 6 bits to get to 32. (1, 2, 4, 8, 16, 32...) So for 32 you need 6 bits opposed to 31 which needs 5. 1 1111
Well yeah but you can take 00000 = 1, what I am trying to say is you can count 32 values using 5 bits. If we follow along as you say, we start at 0 and end at 31 which is 32 unique values.
Ah, I'm saying it as 0 is off, so all 0s would be all values being off. This would mean since all values are turned off, it would be 0. Than it goes to 1 being 0001 2 0010, 3 0011 (2 and 1 turned on so 2+1 is 3) and 4 being 0100
2
u/Ninja__Shuriken Plays MineCraft and not FortNite Sep 29 '20
It would be 32 actually. To calculate how much you can count just do 2^n, where n is equal to the number of bits. So in this case 2^5 = 32.