Exams › JEE Main › Maths
Let N be the set of natural numbers and two functions f and g be defined as f, g : N → N such that f(n) = { (n+1)/2 : if n is odd, n/2 : if n is even } and g(n) = n - (-1)^n. Then fog is
- neither one-one nor onto
- onto but not one-one
- both one-one and onto
- one-one but not onto
Correct answer: onto but not one-one
Solution
The function fog is onto because for every natural number m, there exists a natural number n such that fog(n) = m, covering all possible outputs. However, it is not one-one since multiple inputs can produce the same output, particularly when n is even, leading to the same result after applying both functions.
Related JEE Main Maths questions
⚔️ Practice JEE Main Maths free + battle 1v1 →