Skip to content

Functions

Hardmathematics

The number of onto functions from a set A containing m elements to a set B containing n elements (m ≥ n) is

Select the correct option:

🔒 Solution Hidden from View

Submit your answer to unlock the detailed step-by-step solution.

About This Question

Subject
mathematics
Chapter
sets, relations and functions
Topic
functions
Difficulty
Hard
Year
2025
Tags
FunctionsOntoCountingStirling Numbers

Solution

Correct Answer:

n! S(m,n)

  1. Combinatorial Logic: An onto function requires every element in to have at least one pre-image.
  2. Stirling Numbers: represents the number of ways to partition a set of elements into non-empty, unlabelled subsets.
  3. Permutation: Since the elements in the codomain are distinct (labelled), we multiply the partitions by to assign them to specific codomain elements.
  4. Formula: Total onto functions = .
  • This can also be solved using the Principle of Inclusion-Exclusion.

This hard difficulty mathematics question is from the chapter sets, relations and functions, covering the topic of functions. It appeared in the 2025 exam.

Looking for more practice? Explore all mathematics questions or browse sets, relations and functions questions on RankGuru.