QlarIITy

MathematicsJEE Main 2021 · 22 JulyInteger

Let A={0,1,2,3,4,5,6,7}A = \{0, 1, 2, 3, 4, 5, 6, 7\}. Then the number of bijective functions f:A→Af : A \to A such thatf(1)+f(2)=3−f(3)f(1) + f(2) = 3 - f(3)is 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 sum condition on different values can force the values themselves.

Concept refresher. The number of one-one functions from a set of rr elements into a set of nn elements, n≥rn \geq r, is

nPr=n(n−1)…(n−r+1){}^nP_r = n(n - 1)\ldots(n - r + 1)

Picture the situation. The condition is f(1)+f(2)+f(3)=3f(1) + f(2) + f(3) = 3. Since ff is a bijection, the three images are different elements of {0,1,…,7}\{0, 1, \ldots, 7\}. The smallest possible sum of three different elements is 0+1+2=30 + 1 + 2 = 3, so the images must be exactly 0, 1 and 2.

Approach. Arrange the three forced images, then the remaining five.

  1. Step 1: The three images

    The values 0, 1 and 2 can be assigned to f(1)f(1), f(2)f(2) and f(3)f(3) in 3!=63! = 6 ways.

  2. Step 2: The rest

    The other five elements take the remaining five values in 5!=1205! = 120 ways, so the number of bijections is 6×120=7206 \times 120 = 720.

Answer. 720

Sanity check. Any other choice of three different values, such as 0, 1 and 3, has a sum above 3.

Common wrong answers

  • 6: Forgetting to arrange the other five inputs gives only 6.
  • 120: Forgetting the 3!3! orders of the values 0, 1 and 2 gives 120.

Key takeaway

The trap. The forced values can still be assigned in several orders.

How toppers think. They compare the required sum with the smallest possible sum.

Remember. 3!×5!=7203! \times 5! = 720

More on Types of Functions