JEE Main 2026 · 23 January · evening · Single correct · +4 / −1
Consider two sets A={x∈ Z:|(|x-3|-3)|≤ 1} and
B={x∈ ℝ-{1,2}:(x-2)(x-4)/(x-1)logₑ(|x-2|)=0}. Then the number of
onto functions f:A→ B is equal to :
- (a) 32
- (b) 81
- (c) 79
- (d) 62
Answer and solution
Answer (d) 62
Solution
Maths sir · 4 steps
List both sets first, then count all maps and remove the ones that miss a point of B.
- Find set A. | |x-3| - 3 | ≤ 1 means 2 ≤ |x-3| ≤ 4. For integers, |x-3| is 2, 3 or 4, so x - 3 = ± 2, ± 3, ± 4. This gives A = {-1, 0, 1, 5, 6, 7}, which has 6 elements.
- Find set B. The product is zero when x = 2, when x = 4, or when logₑ |x-2| = 0, that is |x-2| = 1, giving x = 1 or x = 3. The values x = 1 and x = 2 are excluded, so B = {3, 4}, which has 2 elements.
- Count onto maps. Each of the 6 elements of A can go to either element of B, giving 2⁶ functions. Only 2 of these are not onto: the one sending everything to 3 and the one sending everything to 4.
Onto functions = 2⁶ - 2 = 64 - 2 = 62
- So. The number of onto functions from A to B is 62, option (d).
The idea to keep. For onto functions into a 2-element set, take all 2ⁿ maps and subtract the 2 constant maps. Always check the excluded values before you count a set.
Answer from the NTA final answer key. Solution by PrepWiser.