Prove that the function: f: $\mathbb{N} \mapsto \mathbb{Z}$ defined as f(n)= $\frac{(-1)^n(2n-1)+1}{4}$ is bijective.
This is rough. I've been staring at this one for a while now. I get stuck on the injective part. I set f(a)=f(b), and I'm trying to show a=b. It's straightforward up to $(-1)^a(2a-1)=(-1)^b(2b-1)$. From there I'm at a loss of how to proceed.
I'd also appreciate a hand on the surjective part.