Exams › JEE Main › Maths
Consider the mapping f from the natural numbers to the integers given by
f(n) = (n - 1)/2 for odd n, and f(n) = -n/2 for even n. Which of the following best describes f?
- neither injective nor surjective
- injective but not surjective
- surjective but not injective
- both injective and surjective
Correct answer: both injective and surjective
Solution
Odd n give f=(n-1)/2 = 0,1,2,... (all non-negative integers); even n give f=-n/2 = -1,-2,... (all negative integers). Together they hit every integer with no repeats, so f is a bijection (both injective and surjective).
Related JEE Main Maths questions
⚔️ Practice JEE Main Maths free + battle 1v1 →