How would I show the following have a bijection. Which is one to one and onto ofcourse.
$\mathbb{Z}\rightarrow \mathbb{N}$
I know I need to find a function. But I do not see the pattern that makes integer go to natural. I already did this problem from natural to integer but now I want to see it done this way.
I have listed some numbers
$,..,-4,-3,-2,-1,0,1,2,3,4,5,6,7,8,9,..$
$1,2,3,4,5,6,7,8,9,10,11,12,13,14,.$