Given, f(n)={2n,0,n is even n is odd
Here, we see that for every odd values of z, it will give zero. It means that it is a many one function. For every even values of z, we will get a set of integers (−∞,∞). So, it is onto. Hence, it is surjective but not injective.