QlarIITy

MathematicsJEE Main 2023 · 11 AprilInteger

Let A={1,2,3,4,5}A = \{1, 2, 3, 4, 5\} and B={1,2,3,4,5,6}B = \{1, 2, 3, 4, 5, 6\}. Then the number of functions f:A→Bf : A \to B satisfyingf(1)+f(2)=f(4)−1f(1) + f(2) = f(4) - 1is equal to ______

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 value fixed by a condition must still lie in the codomain, which restricts the other values.

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 condition gives f(4)=f(1)+f(2)+1f(4) = f(1) + f(2) + 1, and f(4)f(4) must be an element of BB, so f(1)+f(2)≤5f(1) + f(2) \leq 5. The values f(3)f(3) and f(5)f(5) do not appear in the condition and may be any elements of BB.

Approach. Count the allowed pairs for the first two values, then multiply by the free choices.

  1. Step 1: The pairs

    The ordered pairs of values from 1 to 6 with sum 2, 3, 4 or 5 number 1+2+3+4=101 + 2 + 3 + 4 = 10, and each fixes f(4)f(4).

  2. Step 2: The free inputs

    Each of f(3)f(3) and f(5)f(5) has 6 choices, which is 36 ways, so the number of functions is 10×36=36010 \times 36 = 360.

Answer. 360

Sanity check. For example f(1)=2f(1) = 2, f(2)=3f(2) = 3 forces f(4)=6f(4) = 6, which is allowed, while f(1)=3f(1) = 3, f(2)=3f(2) = 3 would force f(4)=7f(4) = 7.

Common wrong answers

  • 540: Allowing the sum 6 as well, which would need f(4)=7f(4) = 7, gives 15×36=54015 \times 36 = 540.
  • 10: Forgetting the two free inputs gives only 10.

Key takeaway

The trap. Inputs that do not appear in the condition multiply the count by their free choices.

How toppers think. They count pairs by their sum.

Remember. 10×6×6=36010 \times 6 \times 6 = 360

More on Types of Functions