Question
Mathematics Question on types of functions
On the set of integers Z. define f:Z→Z as f(n)=⎩⎨⎧n/2 0 if n is evenif n is odd then ′f′ is
A
bijective
B
injective but not surjective
C
neither injective nor suijective
D
surjective but not injective
Answer
surjective but not injective
Explanation
Solution
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.