f:N->Z, and 0 in N and [x] means the "floor" of x. I started by letting n,m in N and f(n)=f(m).
I got down to
$$(-1)^m[(m+1)/2] = (-1)^n[(n+1)/2]$$
But I'm pretty sure that doesn't imply that n=m yet. Am I on the right track, and if not how should I do differently?
Any hints for showing the surjection would be appreciated as well.