Is there a function $f:{\mathbb N}\to{\mathbb N}$ that is neither injective nor surjective ?
I came up with $n\mapsto\sin n$ as not all outputs are mapped and some inputs have the same output, but then I realized $\sin n$ doesn't produce a natural number. I have to map the natural numbers to the natural numbers.
I also came up with other ones but they always seem to be total and injective or total and subjective.