Mathematics (JEE)Very hardJEE Advanced

The number of functions f: {1, 2, 3, 4} → {1, 2, …, 7} with f(1) < f(2) > f(3) < f(4) is:

  1. A. 420
  2. B. 343
  3. C. 294
  4. D. 371

Correct answer: D. 371

Let f(2) = m and f(4) = n. Then f(1) has m − 1 choices and f(3) has min(m, n) − 1 choices, so the count is the sum of (m − 1)(min(m, n) − 1) over m, n from 1 to 7, which equals 371.

More Sets, Relations and Functions questions

Exams that ask this topic