Mathematics (JEE)HardJEE Main pattern

The number of onto functions from {1, 2, 3, 4} to {a, b, c} is:

  1. A. 36
  2. B. 81
  3. C. 24
  4. D. 45

Correct answer: A. 36

By inclusion–exclusion: 3⁴ − ³C₁·2⁴ + ³C₂·1⁴ = 81 − 48 + 3 = 36. 81 counts all functions, including those that miss an image.

More Sets, Relations and Functions questions

Exams that ask this topic