Let $\mathbb{Z}_+ = \{1,2,3,\ldots\}$. I would like to find an injective function $f:\mathcal{P}(\mathbb{Z}_+) \to \mathbb{R}$. My idea is as follows. Given a subset $A = \{x_1,x_2,\ldots\} \subset \mathbb{Z}_+$, order it such that $x_1<x_2<\ldots$, and also suppose that $x_i$ has $n_i$ digits. Then we map: $$ A \mapsto 0.(0)_{n_1}x_1(0)_{n_2}x_2,\ldots $$ where $(0)_i$ means $i$ consecutive $0$’s. So, for example: $$ \{3,5,7\} \mapsto 0.030507 \\ \{357\} \mapsto 0.000357 $$
My specific question is: can anyone give me a hint or some ideas to prove that this is indeed an injection?