So the tasks is to show that $\{0,1\}^*$ is countable.
So the idea that i am having is that each number can be mapped to it's own in decimal.
$f(1001)= 9$
$f(101)=5$
But what happens with all the string which start with zeros.
For example: $f(01001)=$? $f(001001)=$? $f(00000000001001)=$?.
Is my idea completely wrong? Any tips?
Hint: Consider the map $\{0,1\}^* \to \mathbb N$ given by $w \mapsto (1w)_2$.
This assumes that $0 \notin \mathbb N$. If $0 \in \mathbb N$, use $w \mapsto (1w)_2-1$.