I just want to make sure this is all correct.
So my definition of a function $f:A\to B$ being a surjection is:
For all $b \in B$, there exists an $a \in A$ such that $f(a) = b$.
Now the question:
Let $f: \mathbb N \to \mathbb Z \\ n \mapsto -n$.
Then $f$ is not surjective.
Proof:
Take an arbitrary $b \in \mathbb Z$. Let $a = -b \geq 0$.
We see that $f(a) = b$ but not every $a$ can be $-b$, because if we have an positive $b$ then $a$ cant be negative. (Since $a$ is in the natural numbers).
However: What is the function was $f:\mathbb Z \to \mathbb Z$. This would be a surjection, right?