Let $\Bbb {P} = {p_1,p_2,...}$ denote the set of all prime numbers, i.e., $p_1 = 2, p_2 = 3, p_3 = 5, p_4 = 7, p_5 = 11$ and so on. For every $n ∈ \Bbb {N}$ represent $n$ as the product of its prime factors to some powers: $$n=\prod_{i=1}^\infty {p_i^{a_i}}$$ where all but finitely many $a_i$'s are $0$. For example $4116=2^2\cdot3^1\cdot5^0\cdot7^3\cdot11^0\cdot13^0...$
Define $F:\mathbb N \to \mathbb Q_{>0}$ by $$F(n) = F\left(\prod_{i=1}^\infty {p_i^{a_i}}\right) = \prod_{i=1}^\infty {p_i^{f(a_i)}} $$ where $f(a_i) = (-1)^{a_i-1}\lfloor\left(\frac{a_i+1}{2}\right)\rfloor$ for $a_i \in \Bbb N$ which is a bijection $f:\Bbb N \to \Bbb Z$
Now I need to prove that $F$ is a bijection. I have already proven that $f$ is a bijection so that can be assumed. I figured I would do the usual thing to show injective: let $n,m\in\Bbb N $ and suppose $F(n)=F(m)$ then show that this implies $n=m$. I just am not sure how to go about doing this. should I define $m\in\Bbb N$ as $m=\prod_{i=1}^\infty {p_i^{b_i}}$ to show this? Or perhaps I should try a completely different approach?