QlarIITy

MathematicsJEE Main 2026 · 23 JanuarySingle correct

Consider two setsA={x∈Z:∣(∣x−3∣−3)∣≤1}A = \{x \in \mathbb{Z} : |(|x - 3| - 3)| \leq 1\}andB={x∈R−{1,2}:(x−2)(x−4)x−1log⁡e(∣x−2∣)=0}\begin{aligned} B = \{&x \in \mathbb{R} - \{1, 2\} : \\[4pt] &\frac{(x - 2)(x - 4)}{x - 1}\log_e(|x - 2|) = 0\} \end{aligned}. Then the number of onto functions f:A→Bf : A \to B is equal to :

  1. Option A: 3232
  2. Option B: 8181
  3. Option C: 7979
  4. Option D: 6262
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. Settle each set completely before counting functions between them.

Concept refresher. For k>0k > 0, ∣t∣≤k|t| \leq k means −k≤t≤k-k \leq t \leq k, and ∣t∣=k|t| = k means t=±kt = \pm k. A logarithm log⁡eu\log_e u is 00 exactly when u=1u = 1, and needs u>0u > 0. If n(X)=mn(X) = m and n(Y)=2n(Y) = 2, there are 2m2^m functions f:X→Yf : X \to Y, and all except the 22 constant ones are onto:

onto maps=2m−2\text{onto maps} = 2^m - 2

Approach. List the elements of AA from the nested modulus inequality, find BB by solving the product equal to zero with the excluded points removed, then count onto maps.

  1. Step 1: Find the set A

    The outer modulus gives a double inequality, which fixes the range of ∣x−3∣|x - 3|:

    −1≤∣x−3∣−3≤12≤∣x−3∣≤4\begin{aligned} -1 \leq |x - 3| - 3 &\leq 1 \\[4pt] 2 \leq |x - 3| &\leq 4 \end{aligned}

    so x−3∈[−4,−2]∪[2,4]x - 3 \in [-4, -2] \cup [2, 4], that is x∈[−1,1]∪[5,7]x \in [-1, 1] \cup [5, 7]. The integers are A={−1,0,1,5,6,7}A = \{-1, 0, 1, 5, 6, 7\}, and n(A)=6n(A) = 6.

  2. Step 2: Find the set B

    For x≠1,2x \neq 1, 2 the fraction and the logarithm are defined (∣x−2∣>0|x - 2| > 0). A product is zero when a factor is zero:

    (x−2)(x−4)=0⇒x=2 or x=4(x - 2)(x - 4) = 0 \Rightarrow x = 2 \text{ or } x = 4

    and x=2x = 2 is excluded, so only x=4x = 4 remains. Next,

    log⁡e∣x−2∣=0⇒∣x−2∣=1\log_e|x - 2| = 0 \Rightarrow |x - 2| = 1

    which gives x=3x = 3 or x=1x = 1, and x=1x = 1 is excluded. So B={3,4}B = \{3, 4\} and n(B)=2n(B) = 2.

  3. Step 3: Count the onto maps

    Each of the 66 elements of AA can go to 33 or 44, and only the two constant maps miss an element of BB:

    26−2=64−2=622^6 - 2 = 64 - 2 = 62

Answer. (D) 6262

Sanity check. Count by the number kk of elements sent to 33, where k=1,…,5k = 1, \ldots, 5:

6C1+6C2+6C3+6C4+6C5=6+15+20+15+6=62\begin{aligned} &{}^6C_1 + {}^6C_2 + {}^6C_3 + {}^6C_4 + {}^6C_5 \\[4pt] &= 6 + 15 + 20 + 15 + 6 = 62 \end{aligned}

Why the other options are wrong

  • (A) Dividing all 26=642^6 = 64 maps by 22, as if swapping the images 33 and 44 gave the same function, gives 3232; the two images are different, and only the 22 constant maps fail to be onto.
  • (B) is more than the total number of maps from AA to BB, which is 26=642^6 = 64, so no count of onto maps can reach it.
  • (C) also exceeds the 26=642^6 = 64 maps from a six-element set to a two-element set, so it cannot be a count of onto maps.

Key takeaway

The trap. Keeping the excluded points x=1x = 1 or x=2x = 2 in BB, which changes n(B)n(B).

How toppers think. They peel nested moduli from the outside, one double inequality at a time.

Remember. Onto maps from an mm-element set to a 22-element set number 2m−22^m - 2.

More on Types of Functions