I need to show the cardinality of $S$, the set of all bit strings that don't contain the bit $0$.
I came up with a function that maps $\mathbb{N}$ to $S$ in the following way:
$f(n) = \sum_{i=0}^{n-1} 10^i$.
I think that this is a valid mapping because each natural number $n$ gets mapped to the string that contains exactly $n$ bits.
My question: I am having trouble understanding if this function is bijective.
My attempt:
Injectivity: Well, I'd need to prove that for $f(a) = f(b) \implies a=b$
$$f(a) = \sum_{i=0}^{a-1} 10^i = .f(b) = \sum_{i=0}^{b-1} 10^i$$
$10^0 + 10^1 + ...+ 10^{a-1} = 10^0 + 10^1 + ... + 10^{b-1}$
I'm stuck here. I don't know if I can cancel out all terms except the $10^{a-1}$ and $10^{b-1}$ (mostly because I can't operate on the presumption that $a=b$, that's what I need to prove).
Surjectivity: I don't know how to prove this mathematically.
Can anyone help?
Every positive integer $n$ corresponds $1-1$ with the string $1\cdots 1$ with $n$ ones , so the cardinality is the same as the cadinality of the positive integers , hence $\aleph_0$ , the strings form an infinite countable set.