Mathematics · Functions

JEE Main 2026 — 23 January, Evening Shift — Question 5

Consider two sets A={x∈z:∣(∣x−3∣−3)∣≤1}\mathrm{A}=\{\mathrm{x} \in \mathrm{z}:|(|\mathrm{x}-3|-3)| \leq 1\} and B={x∈R−{1,2}:(x−2)(x−4)x−1log⁡e(∣x−2∣)=0}B=\left\{x \in \mathbb{R}-\{1,2\}: \frac{(x-2)(x-4)}{x-1} \log _{e}(|x-2|)=0\right\}. Then the number of onto functions f:A→Bf: \mathrm{A} \rightarrow \mathrm{B} is equal to:

  1. Option A:

    6262

    Correct
  2. Option B:

    7979

  3. Option C:

    3232

  4. Option D:

    8181

Answer: A

Step-by-step solution

A={x∈Z: ∣(∣x−3∣−3)∣≤1}A=\{x\in \mathbb{Z}:\ |(|x-3|-3)|\le 1\}

Let y=∣x−3∣y=|x-3|. Then

∣y−3∣≤1  ⇒  2≤y≤4|y-3|\le 1 \;\Rightarrow\; 2\le y\le 4

So,

∣x−3∣=2,3,4|x-3|=2,3,4

Hence

x=3±2,  3±3,  3±4x=3\pm2,\;3\pm3,\;3\pm4 A={−1,0,1,5,6,7}A=\{-1,0,1,5,6,7\}

Thus,

∣A∣=6|A|=6 B={x∈R∖{1,2}:(x−2)(x−4)x−1ln⁡∣x−2∣=0}B=\left\{x\in\mathbb{R}\setminus\{1,2\}:\frac{(x-2)(x-4)}{x-1}\ln|x-2|=0\right\}

The product equals zero when any factor is zero (keeping domain restrictions in mind).

  1. ln⁡∣x−2∣=0⇒∣x−2∣=1⇒x=1,3\ln|x-2|=0\Rightarrow |x-2|=1\Rightarrow x=1,3 But x=1x=1 is excluded, so x=3x=3.

  2. x−4=0⇒x=4x-4=0\Rightarrow x=4

  3. x−2=0⇒x=2x-2=0\Rightarrow x=2 (excluded)

Hence,

B={3,4}B=\{3,4\}

So,∣B∣=2|B|=2

Number of onto functions f:A→Bf:A\to B

Number of surjections from a set of size 66 onto a set of size 22 is

26−22^6 - 2

(Subtract the two constant functions.)

=64−2=62=64-2=62 62\boxed{62}

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 Main 2026
Subject
Mathematics
Chapter
Functions
Topic
One-One, many-one, onto, into, bijective functions
Consider two sets A =\ x in z : ( x -3 -3) leq 1\ and B= \ x in… | JEE Main 2026 PYQ with Solution · DhiX AI