Sign in
12thPass logo
New chatPYQ LibraryDoubtsRank report
Sign in to see Recents

Your guest activity stays on this device

Sign in to save progress →
Sign in

Functions question

2022 · 28 Jun · Shift 2 · Q49
Guest · filters and generic practice availableBrowsing as a guest · PYQ filters and generic practice are available. Sign in only for personalised features and saved progress.
  1. PYQ Library
  2. /JEE Main
  3. /Mathematics
  4. /Functions
  5. /2022 · 28 Jun · Shift 2 · Q49

Functions question

2022 · 28 Jun · Shift 2 · Q49

JEE MainMathematicsFunctionsNumerical+4 / −1
Let S = {1, 2, 3, 4}. Then the number of elements in the set { f : S ×\times× S →\to→ S : f is onto and f (a, b) = f (b, a) ≥\ge≥ a ∀\forall∀(a, b) ∈\in∈ S ×\times× S } is ‾\underline{\hspace{2cm}}​.
Numerical answer
View written solutionFree

Correct answer: 37

We need to count all functions f:S×S→S,S={1,2,3,4}f:S\times S\to S,\qquad S=\{1,2,3,4\}f:S×S→S,S={1,2,3,4} such that:

  1. fff is symmetric:
    f(a,b)=f(b,a)f(a,b)=f(b,a)f(a,b)=f(b,a)
  2. f(a,b)≥af(a,b)\ge af(a,b)≥a for all (a,b)∈S×S(a,b)\in S\times S(a,b)∈S×S
  3. fff is onto SSS.

1. Use symmetry and the inequality

Since f(a,b)=f(b,a),f(a,b)=f(b,a),f(a,b)=f(b,a), and also the condition says for every ordered pair (a,b)(a,b)(a,b), f(a,b)≥a.f(a,b)\ge a.f(a,b)≥a. Applying this to (b,a)(b,a)(b,a) gives f(b,a)≥b.f(b,a)\ge b.f(b,a)≥b. But f(a,b)=f(b,a)f(a,b)=f(b,a)f(a,b)=f(b,a), so actually f(a,b)≥max⁡(a,b).f(a,b)\ge \max(a,b).f(a,b)≥max(a,b).

So the value at (a,b)(a,b)(a,b) must be at least max⁡(a,b)\max(a,b)max(a,b).

Because of symmetry, it is enough to choose values on pairs with a≤ba\le ba≤b. These are: (1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4).(1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4).(1,1),(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4). So there are 101010 independent positions.


2. Allowed values at each independent pair

For each pair (a,b)(a,b)(a,b) with a≤ba\le ba≤b, we need f(a,b)∈{b,b+1,…,4}f(a,b)\in \{b,b+1,\dots,4\}f(a,b)∈{b,b+1,…,4} because max⁡(a,b)=b\max(a,b)=bmax(a,b)=b.

Thus:

  • (1,1)(1,1)(1,1): values in {1,2,3,4}\{1,2,3,4\}{1,2,3,4} → 4 choices
  • (1,2)(1,2)(1,2): values in {2,3,4}\{2,3,4\}{2,3,4} → 3 choices
  • (1,3)(1,3)(1,3): values in {3,4}\{3,4\}{3,4} → 2 choices
  • (1,4)(1,4)(1,4): values in {4}\{4\}{4} → 1 choice
  • (2,2)(2,2)(2,2): values in {2,3,4}\{2,3,4\}{2,3,4} → 3 choices
  • (2,3)(2,3)(2,3): values in {3,4}\{3,4\}{3,4} → 2 choices
  • (2,4)(2,4)(2,4): values in {4}\{4\}{4} → 1 choice
  • (3,3)(3,3)(3,3): values in {3,4}\{3,4\}{3,4} → 2 choices
  • (3,4)(3,4)(3,4): values in {4}\{4\}{4} → 1 choice
  • (4,4)(4,4)(4,4): values in {4}\{4\}{4} → 1 choice

Hence total number of symmetric functions satisfying the inequality is 4⋅3⋅2⋅1⋅3⋅2⋅1⋅2⋅1⋅1=144.4\cdot 3\cdot 2\cdot 1\cdot 3\cdot 2\cdot 1\cdot 2\cdot 1\cdot 1=144.4⋅3⋅2⋅1⋅3⋅2⋅1⋅2⋅1⋅1=144.

Now we impose the onto condition.


3. Onto condition

Since codomain is S={1,2,3,4}S=\{1,2,3,4\}S={1,2,3,4}, onto means all four values 1,2,3,41,2,3,41,2,3,4 must occur.

But note:

  • Value 444 always occurs, because f(4,4)≥4  ⟹  f(4,4)=4.f(4,4)\ge 4 \implies f(4,4)=4.f(4,4)≥4⟹f(4,4)=4. So we only need to ensure that 1,2,31,2,31,2,3 also appear somewhere.

4. When does value 1 appear?

A value 111 can occur only if max⁡(a,b)≤1\max(a,b)\le 1max(a,b)≤1, i.e. only at (1,1)(1,1)(1,1). So for onto, f(1,1)=1.f(1,1)=1.f(1,1)=1. This is necessary.

So fix f(1,1)=1.f(1,1)=1.f(1,1)=1. Then the remaining independent entries are: (1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4).(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4).(1,2),(1,3),(1,4),(2,2),(2,3),(2,4),(3,3),(3,4),(4,4). Their choices give 3⋅2⋅1⋅3⋅2⋅1⋅2⋅1⋅1=363\cdot 2\cdot 1\cdot 3\cdot 2\cdot 1\cdot 2\cdot 1\cdot 1=363⋅2⋅1⋅3⋅2⋅1⋅2⋅1⋅1=36 functions.

Among these, we must ensure value 222 and value 333 both occur.


5. Count functions with f(1,1)=1f(1,1)=1f(1,1)=1 and both 2 and 3 appearing

Let:

  • AAA = set of functions (among these 36) in which value 222 does not appear.
  • BBB = set of functions in which value 333 does not appear.

Required count: 36−∣A∣−∣B∣+∣A∩B∣.36-|A|-|B|+|A\cap B|.36−∣A∣−∣B∣+∣A∩B∣.

Count ∣A∣|A|∣A∣ : no value 2 anywhere

Positions where 2 could appear are exactly those with allowed set containing 2: (1,2),(2,2).(1,2), (2,2).(1,2),(2,2). If 2 is forbidden:

  • (1,2)(1,2)(1,2) must be 333 or 444 → 2 choices
  • (2,2)(2,2)(2,2) must be 333 or 444 → 2 choices Other positions unchanged:
  • (1,3)(1,3)(1,3): 2 choices
  • (1,4)(1,4)(1,4): 1 choice
  • (2,3)(2,3)(2,3): 2 choices
  • (2,4)(2,4)(2,4): 1 choice
  • (3,3)(3,3)(3,3): 2 choices
  • (3,4)(3,4)(3,4): 1 choice
  • (4,4)(4,4)(4,4): 1 choice

Thus ∣A∣=2⋅2⋅2⋅1⋅2⋅1⋅2⋅1⋅1=32.|A|=2\cdot 2\cdot 2\cdot 1\cdot 2\cdot 1\cdot 2\cdot 1\cdot 1=32.∣A∣=2⋅2⋅2⋅1⋅2⋅1⋅2⋅1⋅1=32.

Count ∣B∣|B|∣B∣ : no value 3 anywhere

Positions where 3 could appear are: (1,2),(1,3),(2,2),(2,3),(3,3).(1,2),(1,3),(2,2),(2,3),(3,3).(1,2),(1,3),(2,2),(2,3),(3,3). If 3 is forbidden:

  • (1,2)(1,2)(1,2): only 222 or 444 → 2 choices
  • (1,3)(1,3)(1,3): only 444 → 1 choice
  • (2,2)(2,2)(2,2): only 222 or 444 → 2 choices
  • (2,3)(2,3)(2,3): only 444 → 1 choice
  • (3,3)(3,3)(3,3): only 444 → 1 choice Other fixed/unchanged:
  • (1,4),(2,4),(3,4),(4,4)(1,4),(2,4),(3,4),(4,4)(1,4),(2,4),(3,4),(4,4) all have 1 choice each.

Thus ∣B∣=2⋅1⋅1⋅2⋅1⋅1⋅1⋅1⋅1=4.|B|=2\cdot 1\cdot 1\cdot 2\cdot 1\cdot 1\cdot 1\cdot 1\cdot 1=4.∣B∣=2⋅1⋅1⋅2⋅1⋅1⋅1⋅1⋅1=4.

Count ∣A∩B∣|A\cap B|∣A∩B∣ : neither 2 nor 3 appears

Then only values allowed are 1 and 4, but after (1,1)=1(1,1)=1(1,1)=1, all other positions must be 4. Check feasibility:

  • (1,2)(1,2)(1,2) cannot be 1, so must be 4
  • (2,2)(2,2)(2,2) must be 4
  • all others also 4 Hence exactly 1 function. So ∣A∩B∣=1.|A\cap B|=1.∣A∩B∣=1.

Therefore required number is 36−32−4+1=1.36-32-4+1=1.36−32−4+1=1.


6. Direct check of the unique onto function

Indeed, if onto is required:

  • to get value 1, must have f(1,1)=1f(1,1)=1f(1,1)=1;
  • to get value 2, since only (1,2)(1,2)(1,2) or (2,2)(2,2)(2,2) can give 2, at least one of these must be 2;
  • to get value 3, note every place capable of giving 3 except (3,3)(3,3)(3,3) may be used, but if either (1,2)(1,2)(1,2) or (2,2)(2,2)(2,2) is 2, and onto must still happen, let us inspect carefully.

A simpler observation is:

  • value 3 can occur at (1,3),(2,3),(3,3),(1,2),(2,2)(1,3),(2,3),(3,3),(1,2),(2,2)(1,3),(2,3),(3,3),(1,2),(2,2). So multiple onto functions may seem possible, but inclusion-exclusion above counts exactly 1. Let us verify by explicit reasoning:

If value 2 appears, it must be at (1,2)(1,2)(1,2) or (2,2)(2,2)(2,2). If value 3 appears, it can be at one of the 5 positions above. Thus clearly more than 1 onto function should exist. So let us re-check the inclusion-exclusion count.


7. Re-check counting carefully

After fixing f(1,1)=1f(1,1)=1f(1,1)=1, the 6 nontrivial variable positions are actually:

  • (1,2)(1,2)(1,2): 3 choices
  • (1,3)(1,3)(1,3): 2 choices
  • (2,2)(2,2)(2,2): 3 choices
  • (2,3)(2,3)(2,3): 2 choices
  • (3,3)(3,3)(3,3): 2 choices and the fixed ones are
  • (1,4)=(2,4)=(3,4)=(4,4)=4(1,4)=(2,4)=(3,4)=(4,4)=4(1,4)=(2,4)=(3,4)=(4,4)=4. So total is still 3⋅2⋅3⋅2⋅2=72,3\cdot 2\cdot 3\cdot 2\cdot 2=72,3⋅2⋅3⋅2⋅2=72, not 36. The previous total 36 mistakenly omitted one factor 2.

Now redo inclusion-exclusion.

Total with f(1,1)=1f(1,1)=1f(1,1)=1

N=3⋅2⋅3⋅2⋅2=72.N=3\cdot 2\cdot 3\cdot 2\cdot 2=72.N=3⋅2⋅3⋅2⋅2=72.

No 2 anywhere

Then:

  • (1,2)(1,2)(1,2): {3,4}\{3,4\}{3,4} → 2 choices
  • (2,2)(2,2)(2,2): {3,4}\{3,4\}{3,4} → 2 choices
  • (1,3)(1,3)(1,3): 2 choices
  • (2,3)(2,3)(2,3): 2 choices
  • (3,3)(3,3)(3,3): 2 choices Hence ∣A∣=2⋅2⋅2⋅2⋅2=32.|A|=2\cdot 2\cdot 2\cdot 2\cdot 2=32.∣A∣=2⋅2⋅2⋅2⋅2=32.

No 3 anywhere

Then:

  • (1,2)(1,2)(1,2): {2,4}\{2,4\}{2,4} → 2 choices
  • (1,3)(1,3)(1,3): {4}\{4\}{4} → 1 choice
  • (2,2)(2,2)(2,2): {2,4}\{2,4\}{2,4} → 2 choices
  • (2,3)(2,3)(2,3): {4}\{4\}{4} → 1 choice
  • (3,3)(3,3)(3,3): {4}\{4\}{4} → 1 choice Hence ∣B∣=2⋅1⋅2⋅1⋅1=4.|B|=2\cdot 1\cdot 2\cdot 1\cdot 1=4.∣B∣=2⋅1⋅2⋅1⋅1=4.

Neither 2 nor 3 anywhere

Then:

  • $(1,2)=4,, (1,3)=4,, (2,2)=4,, (2,3)=4,, (3,3)=4,
so $$|A\cap B|=1.$$ Therefore number of onto functions is $$72-32-4+1=37.$$ --- ## 8. Final answer The required number of functions is $$\boxed{37}.$$ This matches the stored correct answer.
PreviousNext

More from Functions

  • Let c, k ∈ R. If f(x)=(c+1)x2+(1−c2)x+2k and f(x+y)=f(x)+f(y)−xy, for all x, y ∈ R, then the value of ∣2(f(1)+f(2)+f(3)+......+f(20))∣ is equal to ​.2022 · Numerical
  • Let f(x) and g(x) be two real polynomials of degree 2 and 1 respectively. If f(g(x))=8x2−2x and g(f(x))=4x2+6x+1, then the value of f(2)+g(2) is ​.2022 · Numerical
  • The range of the function, f(x)=log5​​(3+cos(43π​+x)+cos(4π​+x)+cos(4π​−x)−cos(43π​−x))…2021 · MCQ
  • The range of a ∈ R for which the function f(x) = (4a − 3)(x + loge 5) + 2(a − 7) cot (2x​) sin2 (2x​), x e 2n π, n ∈ N has critical points, is :2021 · MCQ
  • The inverse of y=5logx is :2021 · MCQ
  • The real valued function f(x)=x−[x]​cosec−1x​, where [x] denotes the greatest integer less than or equal to x, is defined for all x belonging to :2021 · MCQ
  • If the functions are defined as f(x)=x​ and g(x)=1−x​, then what is the common domain of the following functions : f + g, f − g, f/g, g/f, g − f where (f±g)(x)=f(x)±g(x),(f/g)x=g(x)f(x)​2021 · MCQ
  • Let f : R −{3}→ R −{1} be defined by f(x) =x−3x−2​. Let g : R → R be given as g(x) = 2x − 3. Then, the sum of all the values of x for which f − 1(x) + g − 1(x) = 213​ is equal to :2021 · MCQ