Manipal MET2024MathematicsFunctions
Let: f: N N be defined as f(n)= array ll n+1 2 , & if is n odd n 2 , & if n is even array . for all n N . Then f is
Options
- Ainjective but not surjective
- Bsurjective but not injective
- Cboth injective and surjective
- Dneither injective nor surjective
Correct answer
B. surjective but not injective
Step-by-step solution
f(n)= cases n+1 2 , & n is odd n 2 , & n is even cases f(1)= 1+1 2 =1 and f(2)= 2 2 =1 f(1)=f(2)=1 So, f is not injective and Range of f(n) is all natural numbers. So, it is surjective Hence, f is surjective but not injective.