Skip to main content

Functions MCQ: Let N be the set of natural numbers and two…

JEE · Mathematics · Functions

1 Medium +4 | -1 Analyzing
Let NN be the set of natural numbers and two function ff and gg be defined as f, g:N→Nf,\,g:N \to N such that
f(n)={n+12;if  n  is  oddn2;if  n  is  evenf\left( n \right) = \left\{ {\begin{array}{cccccccccccccccccccc} {\frac{{n + 1}}{2};}&{\mathrm{if}\,\,n\,\,\mathrm{is}\,\,\mathrm{odd}}\\ {\frac{n}{2};}&{\mathrm{if}\,\,n\,\,\mathrm{is}\,\,\mathrm{even}} \end{array}} \right. and g(n)=n−(−1)ng\left( n \right) = n - {\left( { - 1} \right)^n}. Then fogfog is
View answer and explanation
Correct option: B
Onto but not one – one
Option B (Onto but not one – one) is correct because the function fog is not one-to-one as f(2) = f(1) = 1, but it is onto as every element in the codomain has a pre-image in the domain.
Solution approach
  1. Correct Answer + Core Reason: Onto but not one – one. The function fog is not one-to-one, but it is onto.

    Step-by-Step Solution:

    Step 1: Define the functions f(n)f(n) and g(n)g(n).
    f(n) = \n\fracn + 12&if n ,is odd \n2&if n ,is even\n . , and g(n) = \nn + 1, , if n ,is odd n - 1, if n ,is even\n ..

    Step 2: Find the composite function f(g(n))f(g(n)).
    f(g(n)) = \nf(n + 1), if n ,is odd f(n - 1), if n ,is even\n . = \n\fracn + 12, , if n ,is odd n2, if n ,is even\n . = f(n).

    Step 3: Check if the function is one-to-one.\nThe function is not one-to-one because f(2)=f(1)=1f(2) = f(1) = 1.

    Step 4: Check if the function is onto.\nThe function is onto because for every m∈Nm \in N (codomain), there exists a 2m∈N2m \in N (domain) such that f(2m)=mf(2m) = m and if m∈Nm \in N (codomain) is even, then 2m−1∈N2m - 1 \in N (domain) such that f(2m−1)=mf(2m - 1) = m.

    Why other options are wrong:
    - Option A: This option is incorrect because the function is not one-to-one.
    - Option C: This option is incorrect because the function is not one-to-one.
    - Option D: This option is incorrect because the function is onto.

    Key Concepts:
    - One-to-one function
    - Onto function
    - Composite functions

    Memory Aids:
    - A function is one-to-one if each element in the codomain has at most one pre-image.
    - A function is onto if each element in the codomain has at least one pre-image.

    Quick Tips:
    - To check if a function is one-to-one, see if f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2.
    - To check if a function is onto, see if for every yy in the codomain, there exists an xx in the domain such that f(x)=yf(x) = y.

More Questions from Functions

Practice all chapter MCQs →
Type at least 2 characters or jump directly:

Save your learning progress

Sign in with a free account to save your practice answers and quiz results, then return to them when you revise.

Scan to install TopAll Pro

Point your Android or iPhone camera at this code to open TopAll Pro. Try 2 chapters and 25 AI credits free first.

Question image

Use + and − to zoom, arrow keys or drag to pan, Escape to close.