Exams › JEE Main › Maths
Let f: N -> N be defined by f(n) = (n + 1)/2 if n is odd and f(n) = n/2 if n is even, for all n in N. Then f is:
- injective but not surjective
- surjective but not injective
- both injective as well as surjective
- neither injective nor surjective
Correct answer: surjective but not injective
Solution
Check f(1) = (1+1)/2 = 1 and f(2) = 2/2 = 1, so two distinct inputs map to 1 => not injective. For surjectivity, any m in N is achieved: f(2m) = m (using the even branch). So every natural number is in the range => surjective. Hence f is surjective but not injective.
Related JEE Main Maths questions
⚔️ Practice JEE Main Maths free + battle 1v1 →