Skip to main content

Functions MCQ: On the set of integers Z, define f:Z → Z as f(n) =…

JEE · Mathematics · Functions

1 Easy +4 | -1 Understanding
On the set of integers Z, define f:Z→Zf:Z \to Z as f(n)={n2,  n    is    even0,      n      is    odd}f\left( n \right) = \left\{ {\begin{array}{cccccccccccccccccccc} {\frac{n}{2},\;n\;\;is\;\;even}\\ {0,\;\;\;n\;\;\;is\;\;odd} \end{array}} \right\}, then ′f′'f' is
View answer and explanation
Correct option: D
Surjective but not injective
Option D (Surjective but not injective) is correct because the function maps multiple odd integers to 0, making it not injective, but covers all integers in the range, making it surjective.
Solution approach
  1. Correct Answer + Core Reason: Surjective but not injective. The function is onto but not one-to-one.

    Step-by-Step Solution:

    Step 1: Analyze the function definition: f(n) = \begincases n2, & n is even 0, & n is odd \endcases

    Step 2: Check for injectivity (one-to-one): A function is injective if f(n1)=f(n2)f(n_1) = f(n_2) implies n1=n2n_1 = n_2.

    Step 3: Consider f(1)=0f(1) = 0 and f(3)=0f(3) = 0. Since f(1)=f(3)f(1) = f(3) but 1≠31 \neq 3, the function is not injective.

    Step 4: Check for surjectivity (onto): A function is surjective if for every integer yy in the codomain, there exists an integer nn in the domain such that f(n)=yf(n) = y.

    Step 5: Let yy be any integer. If n=2yn = 2y, then f(n)=f(2y)=2y2=yf(n) = f(2y) = \frac{2y}{2} = y. Thus, for every integer yy, there exists an integer nn such that f(n)=yf(n) = y. The function is surjective.

    Step 6: Conclusion: The function is surjective but not injective.

    Why other options are wrong:
    - Option A: Injective but not surjective: The function is not injective as shown in Step 3.
    - Option B: Neither injective nor surjective: The function is surjective as shown in Step 5.
    - Option C: Bijective: The function is not bijective because it is not injective.

    Key Concepts:
    - Injectivity (one-to-one)
    - Surjectivity (onto)
    - Function definition

    Memory Aids:
    - Injective: One-to-one (each input maps to a unique output)
    - Surjective: Onto (every output has a corresponding input)

    Quick Tips:
    - To prove injectivity, show that f(x1)=f(x2)f(x_1) = f(x_2) implies x1=x2x_1 = x_2.
    - To prove surjectivity, show that for any 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.