asked 127k views
4 votes
How many bites have their second, third and fourth digit equal to 0

asked
User Arnise
by
8.1k points

1 Answer

2 votes

How many bytes have their second, third, and fourth digit equal to 0.

If we refer to 8-bits, we would have a value from 00000000 to 11111111, there would be a total of 256 values.


2^8=256

Considering that we only need it to have its second, third and fourth digit equal to 0, we can add the values from 2^0 up until 2^4


2^0+2^1+2^2+2^3+2^4=1+2+4+8+16=31

That would be equal to 31 bytes.

answered
User Nazin
by
8.2k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.