How many binary bit strings of length 32 are there?
I think I know the answer but I'm not sure…wouldn't it just be $2^5$ ?
boolean-algebracomputer sciencediscrete mathematics
How many binary bit strings of length 32 are there?
I think I know the answer but I'm not sure…wouldn't it just be $2^5$ ?
Best Answer
Each one of the $32$ bits can be either $0$ or $1$: So there are two options per bit.
That gives $$\underbrace {2\cdot 2\cdot 2\cdot \cdots \cdot 2}_{\large 32 \,\text{ factors of 2}} = 2^{32}$$ possible strings of length $32.$
Indeed, in creating a string of length $n$, there are $2^n$ possible such strings.