QlarIITy

MathematicsJEE Main 2022 · 28 JuneInteger

Let S={1,2,3,4}S = \{1, 2, 3, 4\}. Then the number of elements in the set {f:S×S→S:f\{f : S \times S \to S : f is onto andf(a,b)=f(b,a)≥a for all (a,b)∈S×S}f(a, b) = f(b, a) \geq a \text{ for all } (a, b) \in S \times S\}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. A symmetric function of two entries is a function of unordered pairs, which are counted by their larger entry.

Concept refresher. For a symmetric function, f(a,b)=f(b,a)f(a, b) = f(b, a), the condition f(a,b)≥af(a, b) \geq a for all pairs gives

f(a,b)≥a and f(a,b)≥bf(a, b) \geq a \text{ and } f(a, b) \geq b

so each value is at least the larger entry.

Picture the situation. Because f(a,b)=f(b,a)≥af(a, b) = f(b, a) \geq a and also ≥b\geq b, each value is at least the larger entry. The 10 unordered pairs split by larger entry: (1,1)(1, 1); then (1,2)(1, 2), (2,2)(2, 2); then (1,3)(1, 3), (2,3)(2, 3), (3,3)(3, 3); then the 4 pairs containing 4, which must all take the value 4.

Approach. Fix the forced values, count the ways with the value 2 present, then remove those without the value 3.

  1. Step 1: The values 1 and 2

    Only (1,1)(1, 1) may take the value 1, so f(1,1)=1f(1, 1) = 1. The value 2 can come only from (1,2)(1, 2) and (2,2)(2, 2), each allowed 2, 3 or 4; at least one of them is 2 in 32−22=53^2 - 2^2 = 5 ways.

  2. Step 2: The value 3

    The three pairs with larger entry 3 take 3 or 4 in 23=82^3 = 8 ways, giving 5×8=405 \times 8 = 40. The value 3 is missing when those three pairs are all 4 and the two earlier pairs use only 2 and 4, which happens in 22−1=32^2 - 1 = 3 ways. So the count is 40−3=3740 - 3 = 37.

Answer. 37

Sanity check. The value 4 is always taken, by the pairs containing 4, so no further condition arises.

Common wrong answers

  • 40: Forgetting that the value 3 must appear gives 40.

Key takeaway

The trap. Onto must be checked for every value, including the middle ones.

How toppers think. They impose the onto condition from the smallest value upward.

Remember. 5×8−3=375 \times 8 - 3 = 37

More on Types of Functions