MCQMediumJEE 2026Functions

JEE Mathematics 2026 Question with Solution

Sets A={xZ:x331}A = \{x \in Z : ||x-3|-3| \le 1\} and B={x:roots of eq}B = \{x : \text{roots of eq}\}. Number of onto functions ABA \to B.

  • A

    3232

  • B

    6262

  • C

    8181

  • D

    7979

Answer

Correct answer:B

Step-by-step solution

Standard Method

Given: A={xZ:x331}A = \{x \in Z : ||x-3|-3| \le 1\} and BB is the set of roots of the equation

(x2)(x4)x1lnx2=0\frac{(x-2)(x-4)}{x-1}\ln|x-2| = 0

with domain x1,2x \ne 1, 2.

Find: Number of onto functions ABA \to B.

For AA:

1x331-1 \le |x-3|-3 \le 1

which gives

2x342 \le |x-3| \le 4

So,

2x34    x{5,6,7}2 \le x-3 \le 4 \implies x \in \{5,6,7\}

and

4x32    x{1,0,1}-4 \le x-3 \le -2 \implies x \in \{-1,0,1\}

Hence, set AA has 66 elements.

For BB:

(x2)(x4)x1lnx2=0\frac{(x-2)(x-4)}{x-1}\ln|x-2| = 0

Since x1,2x \ne 1,2, the roots come from

x4=0    x=4x-4 = 0 \implies x=4

and

lnx2=0    x2=1    x=3\ln|x-2| = 0 \implies |x-2|=1 \implies x=3

where x=1x=1 is rejected by the domain restriction.

Thus, B={3,4}B = \{3,4\} and set BB has 22 elements.

Total number of functions from a 66-element set to a 22-element set is

26=642^6 = 64

The non-onto functions are the into functions with range size less than 22. These are only:

  1. all elements mapped to 33
  2. all elements mapped to 44

So the number of non-onto functions is 22. Therefore, the number of onto functions is

642=6264 - 2 = 62

Hence, the correct option is B.

Using surjection counting formula

Given: A=6|A| = 6 and B=2|B| = 2.

Find: Number of onto functions ABA \to B.

Using the surjection formula from an mm-element set to an nn-element set:

k=0n(1)k(nk)(nk)m\sum_{k=0}^{n} (-1)^k \binom{n}{k}(n-k)^m

Here m=6m=6 and n=2n=2. So,

k=02(1)k(2k)(2k)6\sum_{k=0}^{2} (-1)^k \binom{2}{k}(2-k)^6 =(20)26(21)16+(22)06= \binom{2}{0}2^6 - \binom{2}{1}1^6 + \binom{2}{2}0^6 =642+0=62= 64 - 2 + 0 = 62

Therefore, the number of onto functions is 6262, so the correct option is B.

Common mistakes

  • Treating x331||x-3|-3| \le 1 as x31|x-3| \le 1 is incorrect because the outer modulus must be handled first. Rewrite it as 1x331-1 \le |x-3|-3 \le 1, then solve for x3|x-3|.

  • Including x=1x=1 as a root of lnx2=0\ln|x-2|=0 is wrong. Although x2=1|x-2|=1 gives x=1,3x=1,3, the original equation has domain restriction x1x \ne 1 because of the denominator x1x-1.

  • Counting all functions 26=642^6=64 and stopping there is incorrect because the question asks for onto functions, not total functions. Subtract the two constant functions to get the surjections.

Practice more Functions questions

Get unlimited AI-adaptive practice, mastery tracking, and an AI tutor that explains every step — free to start.

Related questions