Take the natural numbers $\mathbb{N}_0 = \{0, 1,2,3,\dots\}$ and the integers $\mathbb{Z} = \{\dots, -1, 0, 1, \dots\}$.
Can we come up with a bijective linear mapping $T: \mathbb{N} \rightarrow \mathbb{Z}$?
Consider the mapping $0 \mapsto 0$, $1 \mapsto 1$, $2\mapsto -1$, $3\mapsto 2$, $4 \mapsto -2$, etc. This can be summarized by the function $$T(x) = \begin{cases} -\frac{x}{2} \text{ if } x \text{ even}, \\ \frac{x+1}{2} \text{ if } x \text{ odd}. \end{cases} $$
$T$ is not linear: if $x$ is even and $y$ is odd, then $x+y$ is odd and so $T(x+y) = \frac{x+y+1}{2}$, but $T(x)+T(y) = \frac{-x+y+1}{2}$.
Is it possible to come up with a linear mapping? Intuitively, a linear mapping should stretch, rotate, or translate a set, rather than "zig-zagging". I don't know if there is a way to do this to turn $\mathbb{N}$ into $\mathbb{Z}$?
In general: is there some explanation of when a linear mapping exists between two countably infinite sets, and when it doesn't exist?
Edit: it seems from some comments that a linear mapping exists between two sets when those sets are both vector spaces. Is this the answer?