As title says, I have some infinite set of integers $A$, a function $f:A \to \mathbb N$ defined by $f(n) = |\{n' \in A| n' < n\}|$ is surjective.
I'm having problems proving it. I'm not entirely sure it is correct either.
Suppose $A = \mathbb Z$. Then if for example I have $f(n) = 0$, then that means that there are no integers smaller than $n$. Which seems strange. Hence there is no $n \in \mathbb Z$ such that $f(n) = 0$ and so $f$ is not surjective.
Where is my mistake? Question taken from Asaf Karagila's answer here Proof that aleph null is the smallest transfinite number?