I need help with this excercise:
Define $$f:\mathbb{N}\times\mathbb{N}\longrightarrow \mathbb{N}$$ Where, $$f(a,b)=2^{a-1}(2b-1).$$
Proof that $f$ is bijective function..
I try
$1-$ Injective:
Get $(a,b),(c,d)\in \mathbb{N}\text{x}\mathbb{N}$ and supose that $a>c$ , $b>d$ and $f(a,b)=f(c,d)$ then,
$$2^{a-1}(2b-1)=2^{c-1}(2d-1)$$ $$2^{a-c}(2b-1)=2d-1$$
If $a \neq c$ then $2d-1$ is even, $\bot$, therefore $a=c$, then,
$$2b-1=2d-1,$$ therefore $b=d$
Then, $(a,b)=(c,d)$
This part is ok??
How proof that $f$ is surjective?