Skip to main content

Functions MCQ: A function f from the set of natural numbers to…

JEE · Mathematics · Functions

1 Easy +4 | -1 Analyzing
A function ff from the set of natural numbers to integers defined by
f(n)={n−12, when n is odd −n2, when n is even  is f(n)=\left\{\begin{array}{l} \frac{n-1}{2}, \text { when } n \text { is odd } \\ -\frac{n}{2}, \text { when } n \text { is even } \end{array}\right. \text { is }
View answer and explanation
Correct option: D
one-one and onto both.
Option D (one-one and onto both) is correct because the function maps each natural number to a unique integer, and every integer has a corresponding natural number.
Solution approach
  1. Correct Answer + Core Reason: one-one and onto both. The function f(n) is a bijection from N to I.

    Step-by-Step Solution:

    Step 1: Define the function f(n).\nf(n) = (n-1)/2 if n is odd, -n/2 if n is even.

    Step 2: Check if f(n) is one-one.\nLet f(x) = f(y).\nCase 1: x and y are both odd. Then (x-1)/2 = (y-1)/2 => x-1 = y-1 => x = y.\nCase 2: x and y are both even. Then -x/2 = -y/2 => x = y.\nCase 3: x is odd and y is even. Then (x-1)/2 = -y/2 => x-1 = -y => x+y = 1. Since x and y are natural numbers, the only solution is x=1 and y=0. But y must be a natural number, so y cannot be 0. Thus, this case is not possible.\nTherefore, f(n) is one-one.

    Step 3: Check if f(n) is onto.\nLet z be any integer.\nIf z >= 0, then we need to find an odd n such that f(n) = z. So, (n-1)/2 = z => n-1 = 2z => n = 2z+1. Since z is a non-negative integer, n is an odd natural number.\nIf z < 0, then we need to find an even n such that f(n) = z. So, -n/2 = z => n = -2z. Since z is a negative integer, n is an even natural number.\nTherefore, for every integer z, there exists a natural number n such that f(n) = z. So, f(n) is onto.

    Step 4: Conclusion.\nf(n) is both one-one and onto.

    Why other options are wrong:
    - Option A: This is incorrect because the function is both one-one and onto.
    - Option B: This is incorrect because the function is both one-one and onto.
    - Option C: This is incorrect because the function is both one-one and onto.

    Key Concepts:
    - One-one functions
    - Onto functions
    - Natural numbers
    - Integers

    Memory Aids:
    - One-one: Each input maps to a unique output.
    - Onto: Every element in the codomain has a corresponding element in the domain.

    Quick Tips:
    - When dealing with functions defined on natural numbers, consider even and odd cases separately.

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.