Solveeit Logo

Question

Mathematics Question on types of functions

On the set of integers ZZ. define f:ZZf: Z \to Z as f(n)={n/2if n is even 0if n is odd f(n) = \begin{cases} n/2 & \quad \text{if } n \text{ is even}\\\ 0 & \quad \text{if } n \text{ is odd}\\\ \end{cases} then f'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)={n2,n is even  0,n is odd f(n)=\begin{cases}\frac{n}{2}, & n \text { is even } \\\ 0, & n \text { is odd }\end{cases} Here, we see that for every odd values of zz, it will give zero. It means that it is a many one function. For every even values of zz, we will get a set of integers (,)(-\infty, \infty). So, it is onto. Hence, it is surjective but not injective.