Let f be the function defined as follows: f:Z→Z, and f(n)=((n)/(2) if n is even ),((n+1)/(2) if n is odd ). What can be said about the function f?
1) f is onto and one-to-one
2) f is not onto and not one-to-one
3) f is one-to-one correspondence