QlarIITy

MathematicsJEE Main 2025 · 22 JanuarySingle correct

Let A={1,2,3,4}A = \{1, 2, 3, 4\} and B={1,4,9,16}B = \{1, 4, 9, 16\}. Then the number of many-one functions f:A→Bf : A \to B such that 1∈f(A)1 \in f(A) is equal to :

  1. Option A: 151
  2. Option B: 139
  3. Option C: 163
  4. Option D: 127
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. A condition of the form "at least once" is counted through its complement.

Concept refresher. The number of all functions from a set of rr elements to a set of nn elements is

N=nrN = n^r

and those that avoid one given value number (n−1)r(n - 1)^r.

Picture the situation. A function from AA to BB assigns one of 4 values to each of 4 elements. The condition 1∈f(A)1 \in f(A) says the value 1 is taken at least once. Many-one means not one-one. Since AA and BB have 4 elements each, a one-one function is a bijection and takes every value, including 1.

Approach. Count functions with 1 in the range by the complement, then subtract the bijections.

  1. Step 1: Range contains 1

    All functions number 44=2564^4 = 256, and those that avoid the value 1 number 34=813^4 = 81, so 256−81=175256 - 81 = 175 functions have 1 in the range.

  2. Step 2: Many-one

    The 4!=244! = 24 one-one functions all have 1 in the range, so removing them leaves 175−24=151175 - 24 = 151 many-one functions.

Answer. (A) 151

Sanity check. Counting the other way: the many-one functions number 256−24=232256 - 24 = 232, and the 81 that avoid 1 are all many-one, so 232−81=151232 - 81 = 151.

Why the other options are wrong

  • (B) The value 139 is 12 less than 175−24=151175 - 24 = 151.
  • (C) The value 163 is 12 more than 151, as if only 12 one-one functions were removed.
  • (D) The value 127 would need 48 functions to be removed from 175; only the 24 bijections are one-one.

Key takeaway

The trap. Between sets of equal size, one-one functions are automatically onto.

How toppers think. They check the count by doing the two subtractions in the other order.

Remember. 44−34−4!=1514^4 - 3^4 - 4! = 151

More on Types of Functions