Sigma Percentile
JEE Advanced 1985
LEVELJEE Main

Animated Solution for Mathematics - Functions: Let be a set of distinct elements. Then the total number of distinct functions from to is ......... and out of these ......... are onto functions.

Visualized Solution

Visualizing the Sets

  • Let be a set with distinct elements.
  • We are defining a function .
  • Both the Domain and Codomain are the same set .

The Rule of Functions

  • A function must assign every element in the domain to exactly one element in the codomain.
  • Multiple domain elements can map to the same codomain element (many-to-one).

Counting Choices for the First Element

  • Let's count the choices for the first element, .
  • It can map to any of the elements in the codomain.
  • Choices for .

Counting Choices for the Second Element

  • Now, consider the second element, .
  • Since there are no restrictions for a general function, it can also map to any of the elements.
  • Choices for .

Total Number of Functions

  • By the fundamental principle of counting, we multiply the choices for all elements.
  • Total number of functions = ( times).
  • Total functions = .

The Onto Condition

  • An onto function (surjective) means the Range must be equal to the Codomain.
  • Since , an onto function must also be one-to-one (injective).
  • Therefore, it must be a bijection.

Counting Onto Functions - First Element

  • Let's count the onto functions, starting with .
  • It can map to any of the elements.
  • Choices for .

Counting Onto Functions - Second Element

  • For the second element , it cannot map to the element chosen by .
  • If it did, the function would not be one-to-one.
  • Choices for .

Total Number of Onto Functions

  • Continuing this pattern, the choices decrease by for each subsequent element.
  • Total onto functions = .
  • Total onto functions = .

The Sigma Insight: Classification of Functions

Solution Diagram

Analyzing the Setup

We are exploring functions from a set to itself, where the cardinality of the set is . Let the set be defined as .
When we define a function , we are establishing a rule that assigns each element in the domain to an element in the codomain. This is the fundamental building block of mapping theory.

The Freedom of Choice

Total Functions
To determine the total number of functions, we consider each element in the domain as an independent agent. The first element, , has possible choices in the codomain.
Since there are no restrictions, the second element, , also has choices, regardless of where mapped. This independence holds for all elements in the domain.
By the Fundamental Principle of Counting, we multiply these choices together:
Thus, the total number of possible functions from to is .

The Constraint of 'Onto'

Now, we introduce the constraint that the function must be 'onto', or surjective. This requires that every element in the codomain is covered by at least one arrow from the domain.
In a scenario where the domain and codomain have the same number of elements (), this constraint is transformative. If every element in the codomain must be covered, we cannot allow two elements in the domain to map to the same element in the codomain.
If any two elements mapped to the same target, the Pigeonhole Principle dictates that at least one element in the codomain would be left empty. Therefore, an onto function from a finite set to itself must be a bijection, meaning it is both injective and surjective.

The Countdown to Factorial

This constraint changes our counting strategy from independent choices to a restricted selection process. The first element, , has choices.
The second element, , is now restricted; it cannot map to the element chosen by . Consequently, has choices.
The third element, , must avoid both and , leaving it with choices. This pattern continues until the final element has only choice remaining.
The total number of such bijections is given by the product:
By adding the requirement that every element must be accounted for, we transition from the total freedom of to the strict, orderly arrangement of . Keep this logic in your toolkit, as it is essential for solving complex combinatorial problems in your JEE journey.

Similar Questions

JEE Advanced 2001
LEVELBoard

Let and . Then the number of onto functions from to is

(A)
(B)
(C)
(D)
JEE Main 2022 (28 June Shift 2)
LEVELJEE Main

Let . Then the number of elements in the set is ______.

JEE Main 2026 (23 January Shift 2)
LEVELJEE Main

Consider two sets and . Then the number of onto functions is equal to

(A)
32
(B)
79
(C)
62
(D)
81
JEE Main 2023 (30 January Shift 2)
LEVELJEE Main

Let . Then the number of possible functions such that for every with is equal to

JEE Main 2020 (5 September Shift 2)
LEVELJEE Main

Let and . Then the number of elements in the set is

JEE Main 2022 (24 June Shift 1)
LEVELJEE Advanced

The number of one-one function such that is ______.

JEE Main 2021 (22 July Shift 1)
LEVELJEE Main

Let . Then the number of bijective functions such that is equal to

JEE Main 2021 (27 July Shift 1)
LEVELJEE Main

Let . Then the number of possible functions such that for every and is equal to

JEE Main 2021 (February)
LEVELJEE Main

Let denote the total number of one-one functions from a set with 3 elements to a set with 5 elements and denote the total number of one-one functions from the set to the set . Then:

(A)
(B)
(C)
(D)
JEE Main 2025 (January)
LEVELJEE Main

Let and . Then the number of many-one functions such that is equal to:

(A)
151
(B)
139
(C)
163
(D)
127