QlarIITy

MathematicsJEE Main 2020 · 5 SeptemberInteger

Let A={a,b,c}A = \{a, b, c\} and B={1,2,3,4}B = \{1, 2, 3, 4\}. Then the number of elements in the setC={f:A→B∣2∈f(A)C = \{f : A \to B \mid 2 \in f(A)and ff is not one-one}\} is ...

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. When two conditions are combined, each subtraction must be made within the set already counted.

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. There are 434^3 functions from AA to BB. The condition 2∈f(A)2 \in f(A) removes those that map into {1,3,4}\{1, 3, 4\}. "Not one-one" removes the functions with three different values, but only those among the functions already counted.

Approach. Count functions with 2 in the range, count the one-one functions among them, and subtract.

  1. Step 1: Range contains 2

    All functions number 43=644^3 = 64 and those avoiding 2 number 33=273^3 = 27, so 37 functions take the value 2.

  2. Step 2: One-one among them

    The one-one functions number 4×3×2=244 \times 3 \times 2 = 24, and those avoiding 2 number 3!=63! = 6, so 18 one-one functions take the value 2. Removing them leaves 37−18=1937 - 18 = 19.

Answer. 19

Sanity check. Directly: the three values are all 2 in 1 way, two 2s with another value in 3×3=93 \times 3 = 9 ways, and one 2 with a repeated other value in 3×3=93 \times 3 = 9 ways, which is 19.

Common wrong answers

  • 13: Removing all 24 one-one functions from 37 gives 13, but 6 of them never take the value 2.
  • 40: Counting all functions that are not one-one gives 64−24=4064 - 24 = 40.

Key takeaway

The trap. Some one-one functions avoid the given value and were never counted.

How toppers think. They confirm the count by listing the patterns of values.

Remember. 37−18=1937 - 18 = 19

More on Types of Functions