QlarIITy

MathematicsJEE Main 2021 · 27 JulyInteger

Let S={1,2,3,4,5,6,7}S = \{1, 2, 3, 4, 5, 6, 7\}. Then the number of possible functions f:S→Sf : S \to S such thatf(m⋅n)=f(m)⋅f(n)f(m \cdot n) = f(m) \cdot f(n)for every m,n∈Sm, n \in S and m⋅n∈Sm \cdot n \in S, 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 multiplicative rule fixes the values at products and leaves the other elements free.

Concept refresher. A function with f(mn)=f(m)f(n)f(mn) = f(m)f(n) satisfies, on putting m=nm = n,

f(n2)=f(n)2f(n^2) = f(n)^2

and on putting m=1m = 1, f(n)=f(1)f(n)f(n) = f(1)f(n).

Picture the situation. The products m⋅nm \cdot n that stay in SS are those with a factor 1, and 2⋅2=42 \cdot 2 = 4, 2⋅3=62 \cdot 3 = 6. So the rule gives f(1)=1f(1) = 1, f(4)=f(2)2f(4) = f(2)^2 and f(6)=f(2)f(3)f(6) = f(2)f(3). The values f(5)f(5) and f(7)f(7) are tied to nothing.

Approach. Count the choices for the values at 2 and 3, then multiply by the free choices at 5 and 7.

  1. Step 1: The value at 1

    From f(n)=f(1)f(n)f(n) = f(1)f(n) with f(n)≥1f(n) \geq 1, the value at 1 must be f(1)=1f(1) = 1.

  2. Step 2: The values at 2 and 3

    Since f(4)=f(2)2≤7f(4) = f(2)^2 \leq 7, f(2)f(2) is 1 or 2. If f(2)=1f(2) = 1, then f(6)=f(3)f(6) = f(3) and f(3)f(3) has 7 choices. If f(2)=2f(2) = 2, then f(6)=2f(3)≤7f(6) = 2f(3) \leq 7 and f(3)f(3) has 3 choices. That is 10 ways.

  3. Step 3: The count

    Each of f(5)f(5) and f(7)f(7) has 7 choices, so the number of functions is 10×7×7=49010 \times 7 \times 7 = 490.

Answer. 490

Sanity check. The identity function is one of them: f(2)=2f(2) = 2, f(3)=3f(3) = 3, f(4)=4f(4) = 4 and f(6)=6f(6) = 6 satisfy both product rules.

Common wrong answers

  • 343: Taking only f(2)=1f(2) = 1 gives 7×49=3437 \times 49 = 343.
  • 70: Forgetting one of the two free values gives 10×7=7010 \times 7 = 70.

Key takeaway

The trap. A value fixed by the rule must still lie in the set.

How toppers think. They list the products inside the set before counting anything.

Remember. (7+3)×72=490(7 + 3) \times 7^2 = 490

More on Types of Functions