Check if $$f:\mathbb Z \mapsto \mathbb Z \times \mathbb N $$ $$f(x) = (2x+1, 4x^2-x)$$ is surjective and injective.
This is how I've attempted to solve this:
1. Injective
Assume that $f(a) = (x,y)$ Then, $x = 2a+1 \iff a = \frac{x-1}{2}$ and $y = 4a^2-a $. Since the expression for $a$ is injective, then the function, too, is injective.
2. Surjective
This function will never take the value of - for example - $(2,2)$, because then $x = \frac{2-1}{2} \notin \mathbb Z$
Is my answer correct? What should I change/improve?