The function $f:\mathbb{N}\times \mathbb{N}$ is defined by
$$f(n,m) = 3^n5^m$$
Determine if it is surjective and/or injective.
It isn't surjective, because $2$ in the codomain has no preimage.
As for injective... I could not think of a counterexample, so I guess it is. However, I failed to prove that. My attempt was something like:
Have some $(a,b),(c,d) \in \mathbb{N}\times \mathbb{N}$: $$f(a,b) = f(c,d)$$
$$3^a5^b=3^c5^d$$
$$\frac{3^a}{3^c}=\frac{5^b}{5^d}$$
$$\textrm{some mathematical voodo here}$$
$$a =c \land b = d$$
The intended proof is incomplete and/or wrong or it isn't actually injective.
How can I determine whether this function is injective?