The highest 5 digit binary number is 11111, which is followed by 100000 = 2^5. 11111 is therefore 2^5 - 1 or 31. Alternatively you can add up the place values for each of the 1's: 16+8+4+2+1=31.

I'm not sure if I'm doing this wrong, but shouldn't the answer be 31? binary 100000 = 2^5 and binary 11111 = 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 16+8+4+2+1 = 31 or did I miss something?

## Comments

Sign uporlog in with Facebookto comment.Vanessa VengcoI agree with alphautk. I think the answer is 31.

Heather MooreYup, Thanks :)

Adonis31

alphautkI'm not sure if I'm doing this wrong, but shouldn't the answer be 31? binary 100000 = 2^5 and binary 11111 = 2^4 + 2^3 + 2^2 + 2^1 + 2^0 = 16+8+4+2+1 = 31 or did I miss something?

Heather MooreWhoops, did the math for 6 digits while writing 5. 2^5 is the first 6 digit number in binary, not 2^6. Thanks!

Sumit Jha31

Sankhadeep31