Skip to content
dronacharya.ai
← JEE Main 2022 · 28 Jun · Shift 2
MathematicsInteger+4 / -1Question 29 of 90

JEE Main 2022 · 28 Jun · Shift 2, Mathematics question 29

Let S={1,2,3,4}S=\{1,2,3,4\}. Then the number of elements in the set {f:S×S→S:f is onto and f(a,b)=f(b,a)≥a ∀(a,b)∈S×S}\{f:S\times S\to S:f\text{ is onto and }f(a,b)=f(b,a)\ge a\ \forall(a,b)\in S\times S\} is ______.

Answer and worked solution

Official answer: 37

Condition. f(a,b)≥max⁡(a,b)f(a,b)\ge\max(a,b) on each unordered pair. Value 1 is possible only at (1,1)(1,1), so f(1,1)=1f(1,1)=1; pairs with max 4 must be 4.

Pairs with max 2 (two of them) take values in {2,3,4}\{2,3,4\} with at least one 2: 5 ways. Max 3 (three pairs): {3,4}\{3,4\}, 8 ways.

Need a 3 somewhere. 5⋅8−3⋅1=375\cdot8-3\cdot1=37.

Answer: 37