$f : \mathbb{N} \cup \{0{}\} \to \mathbb{Z}$
$f({}n) = \frac{n{}}{2}$ if $n$ is even $f(n) = -\frac{n{}+1}{2}$ if $n{}$ is odd
I want to prove that $f$ is a bijection, and find $f^{-1}$.
Now I can see that $f$ is a bijection because $n = 2k,k \in \mathbb{Z}$ is assigned to be an odd number in $\mathbb{Z}$ from $f$, and all odd from $f$ get assigned to the negatives. So I can see this is counting all integers one for one.
I am however, unsure of how I can prove it in a Mathematically rigorous way, any tips would be lovely!