Skip to content
Question

Q.If f:N→Wf : N \to W is defined as f(n)={n2,if n is even0,if n is oddf(n) = \begin{cases} \frac{n}{2}, & \text{if } n \text{ is even} \\ 0, & \text{if } n \text{ is odd} \end{cases}, then ff is : (A) injective only (B) surjective only (C) a bijection (D) neither surjective nor injective

CBSECBSE Class XII Board 2025MCQ· 1mImportance★★★★★
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

The function maps all odd naturals to 0 and each even natural to half its value, so it is surjective onto WW (every whole number is hit) but not injective (many inputs give the same output). The correct option is (B).

The core idea here is to understand what the function does to its domain, NN (the set of natural numbers, typically {1,2,3,… }\{1,2,3,\dots\}), and where it lands, WW (the set of whole numbers, {0,1,2,3,… }\{0,1,2,3,\dots\}). The definition splits the domain into two clear cases: odd numbers and even numbers.

For every odd natural number — 1, 3, 5, 7, … — the output is 0. That means infinitely many inputs all map to the single output 0. That alone kills injectivity: a function is injective (one-to-one) only if different inputs always give different outputs. Here, f(1)=0f(1)=0, f(3)=0f(3)=0, f(5)=0f(5)=0, and so on, so it is clearly not injective.

For every even natural number — 2, 4, 6, 8, … — the output is half of that number. So f(2)=1f(2)=1, f(4)=2f(4)=2, f(6)=3f(6)=3, f(8)=4f(8)=4, and so on. This gives us every positive whole number exactly once. And the odd numbers already cover 0. So every whole number — 0, 1, 2, 3, … — appears as an output at least once. That makes the function surjective (onto).

Let’s walk through it step by step.

  1. Check injectivity (one-to-one)

    Take two different inputs, say n=1n=1 and n=3n=3. Both are odd, so f(1)=0f(1)=0 and f(3)=0f(3)=0. Since 1≠31 \neq 3 but f(1)=f(3)f(1)=f(3), the function is not injective.

    Watch out

    A common mistake is to only check the even case and think the function looks one-to-one. But the odd case collapses everything to 0 — that’s the trap.

  2. Check surjectivity (onto)

    We need to see if every element of WW (the codomain) is actually hit by some nn in NN. …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.