QlarIITy

MathematicsJEE Main 2022 · 25 JulySingle correct

The total number of functions, f:{1,2,3,4}→{1,2,3,4,5,6}f : \{1, 2, 3, 4\} \to \{1, 2, 3, 4, 5, 6\} such that f(1)+f(2)=f(3)f(1) + f(2) = f(3), is equal to

  1. Option A: 60
  2. Option B: 90
  3. Option C: 108
  4. Option D: 126
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. Ordered pairs of positive integers with a given sum number one less than the sum.

Concept refresher. If one choice can be made in mm ways and an independent second choice in nn ways, both can be made together in

N=mnN = mn

ways.

Picture the situation. The values f(1)f(1) and f(2)f(2) are at least 1, so their sum is at least 2, and f(3)f(3) must be an element of {1,…,6}\{1, \ldots, 6\}. So f(1)+f(2)f(1) + f(2) can be 2, 3, 4, 5 or 6. The value f(4)f(4) does not appear in the condition.

Approach. Count the ordered pairs by their sum, then multiply by the choices for the free input.

  1. Step 1: The pairs

    The ordered pairs with sum ss number s−1s - 1, so the sums 2 to 6 give 1+2+3+4+5=151 + 2 + 3 + 4 + 5 = 15 pairs, each fixing f(3)f(3).

  2. Step 2: The free input

    The value f(4)f(4) can be any of the 6 elements, so the number of functions is 15×6=9015 \times 6 = 90.

Answer. (B) 90

Sanity check. For the sum 6 the pairs are (1,5)(1, 5), (2,4)(2, 4), (3,3)(3, 3), (4,2)(4, 2) and (5,1)(5, 1), which is 5, as the rule s−1s - 1 says.

Why the other options are wrong

  • (A) The value 60 comes from only 10 pairs, leaving out the 5 pairs with sum 6.
  • (C) The value 108 would need 18 pairs; only 15 have a sum of at most 6.
  • (D) The value 126 counts 21 pairs, including the 6 with sum 7, for which f(3)f(3) would be 7.

Key takeaway

The trap. A value fixed by a condition must still belong to the codomain.

How toppers think. They count pairs by their sum and add.

Remember. 15×6=9015 \times 6 = 90

More on Types of Functions