so I'm trying to show that there exists a bijection from the infinite set of finite strings composed of elements from $\{a, b\}$ to $\mathbb{N}$. So I was thinking about showing that $\mathbb{N}$ and the infinite set of finite binary sequences are equinumerous (each have a unique representation), and then constructing a bijection between $\{a, b\}$ and $\{0, 1\}$. Then by the transitive property of equinumerosity, I would be done with my goal.
However, when you're writing something in binary, like 00001 (which would be equivalent to aaaab), and so I think this proof would exclude some cases? How else can I go about this?
Order the strings first by length and then alphabetically. So that the empty string corresponds to $0$, "a" corresponds to $1$, $b$ to 2, $aa$ to 3, and so on.