Mathematics · Functions

JEE Advanced 2025 — Paper 1 — Question 20

Let N\mathbb{N} denote the set of all natural numbers, and Z\mathbb{Z} denote the set of all integers. Consider the functions f:N→Zf: \mathbb{N} \rightarrow \mathbb{Z} and g:Z→Ng: \mathbb{Z} \rightarrow \mathbb{N} defined by f(n)= \begin{cases}(n+1) / 2 & \text { if } n \text { is odd } \\ (4-n) / 2 & \text { if } n \text { is even }\end{cases} $$ and $$ g(n)=\left\{\begin{array}{cc} 3+2 n & \text { if } n \geq 0 \\ -2 n & \text { if } n<0 \end{array}\right.

Define (g∘f)(n)=g(f(n))(g \circ f)(n)=g(f(n)) for all n∈Nn \in \mathbb{N}, and (f∘g)(n)=f(g(n))(f \circ g)(n)=f(g(n)) for all n∈Zn \in \mathbb{Z}. Then which of the following statements is (are) TRUE ?

  1. Option A:

    g∘fg \circ f is NOT one-one and g∘fg \circ f is NOT onto

    Correct
  2. Option B:

    f∘gf \circ g is NOT one-one but f∘gf \circ g is onto

  3. Option C:

    gg is one-one and gg is onto

  4. Option D:

    ff is NOT one-one but ff is onto

    Correct

Answer: A, D

Step-by-step solution

f(n)={(n+1)/2 if n is odd (4−n)/2 if n is even f(n)= \begin{cases}(n+1) / 2 & \text { if } n \text { is odd } \\ (4-n) / 2 & \text { if } n \text { is even }\end{cases}

f(n)={(1,1),(2,1),(3,2),(4,0),(5,3),(6,−1),…}f(n)=\{(1,1),(2,1),(3,2),(4,0),(5,3),(6,-1), \ldots\}

∴f(n)\therefore f(n) is many one and onto function

g(n)={3+2n if n≥0−2n if n<0g(n)=\left\{\begin{array}{cc}3+2 n & \text { if } n \geq 0 \\ -2 n & \text { if } n<0\end{array}\right.

g(n)={(−3,6),(−2,4),(−1,2),(0,3),(1,5),(2,7),(3,9),(1,45),…}\mathrm{g}(\mathrm{n})=\{(-3,6),(-2,4),(-1,2),(0,3),(1,5),(2,7),(3,9),(1,45), \ldots\}

∴g(n)\therefore \mathrm{g}(\mathrm{n}) is one-one and into function

f(g(n))=2+n,n∈N\mathrm{f}(\mathrm{g}(\mathrm{n}))=2+\mathrm{n}, \mathrm{n} \in \mathrm{N}

fog is one-one and into

g(f(n))={4+n if n is odd natural number 7−n if n=2,4n−4 if n is even natural number and n≥6g(f(n))= \begin{cases}4+n & \text { if } n \text { is odd natural number } \\ 7-n & \text { if } n=2,4 \\ n-4 & \text { if } n \text { is even natural number and } n \geq 6\end{cases} g(f(2))=g(f(1))=5g(f(2))=g(f(1))=5

∴\therefore gof is many one and into

Answer key and solution verified before publishing.

Practise Functions

Start with this question, then two more from the same chapter — with a tutor that explains every step. Free.

Exam
JEE Advanced 2025
Paper
Paper 1
Subject
Mathematics
Chapter
Functions
Topic
One-One, many-one, onto, into, bijective functions