Sigma Percentile
JEE Advanced 2001
LEVELBoard

Animated Solution for Mathematics - Functions: Let and . Then the number of onto functions from to is

Select Answer:

Visualized Solution

Visualizing Sets and

  • Let domain set with elements.
  • Let codomain set with elements.
  • We need to find the number of onto functions from to .

What is an Onto Function?

  • A function is onto (surjective) if every element in the codomain has at least one pre-image in the domain .
  • This means the Range of the function must be exactly equal to the Codomain .
  • Since , both and must be mapped to by at least one element of .

The Subtraction Strategy

  • Directly counting onto functions can sometimes be tricky.
  • Instead, we can use a simple strategy:
  • An into function is one where the range is a proper subset of the codomain.

Calculating Total Functions

  • Each element in the domain has choices in the codomain .
  • Element has choices ( or ).
  • Element has choices, and so on.
  • Total functions

Total Functions

  • Let's calculate the value of :
  • So, there are exactly total possible functions from to .

Identifying the "Into" Functions

  • An into function occurs if the range is not the entire codomain .
  • Since has only two elements, , the only proper subsets are and .
  • This means all elements of must map to either only , or only .

The Two Specific Into Cases

  • Case 1: Every element in maps to . Range .
  • Case 2: Every element in maps to . Range .
  • These are the only functions that are NOT onto.

Subtracting to Find Onto Functions

  • Now, apply our subtraction strategy:

General Formula for Codomain of Size 2

  • If the codomain has exactly elements and the domain has elements:
  • For , this gives .
  • The correct option is (A).

The Sigma Insight: Classification of Functions

The Elegance of Mapping

Unlocking Onto Functions
Welcome, fellow traveler on the path of JEE mastery! Today, we are going to explore a fundamental concept in set theory and functions: the onto function, or as mathematicians formally call it, the surjective function.
It might seem like a simple counting problem, but beneath the surface lies the beautiful logic of combinatorics. Let us dive in.

Defining the Battlefield

We are given two sets: the domain and the codomain . Our task is to find the number of onto functions from to .
Think of this as a scenario where you have distinct items (the elements of ) that you need to distribute into distinct bins (the elements of ).

The Surjective Condition

What does it mean for a function to be onto? It means that every element in the codomain must be 'hit' by at least one element from the domain .
In our bin analogy, it means no bin can be left empty. If even one bin is empty, the function fails to be onto. This is the 'no-one-left-behind' policy of functions.

The Power of Complementary Counting

Directly counting the onto functions can be tedious. We would have to consider all the different ways to partition elements into non-empty sets.
Instead, we use a brilliant strategy: Complementary Counting. We calculate the total number of possible functions and subtract the 'bad' ones—the ones that are not onto, which we call 'into' functions.

Calculating the Total

First, let's find the total number of functions. For each element in , there are choices in .
Since there are elements in , the total number of functions is , or .
So, there are possible ways to map to .

The 'Into' Trap

Now, what are the 'into' functions? These are the functions where the range is a proper subset of .
Since , the only proper subsets are and . This means an 'into' function occurs if all elements of map to just , or all elements of map to just .
Case : All elements map to . There is only such function.
Case : All elements map to . There is only such function.
Thus, there are exactly 'into' functions.

The Final Victory

Now, we simply apply our subtraction strategy:
And there we have it! The number of onto functions is .

A Note for Your Toolkit

This problem highlights a general rule. For a domain of size and a codomain of size , the number of onto functions is always .
Keep this in your mental toolkit; it is a classic JEE Advanced concept that rewards those who understand the underlying logic rather than just memorizing formulas. Keep practicing, keep visualizing, and most importantly, keep falling in love with the process!

Similar Questions

JEE Advanced 1985
LEVELJEE Main

Let be a set of distinct elements. Then the total number of distinct functions from to is ......... and out of these ......... are onto functions.

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 2022 (28 June Shift 2)
LEVELJEE Main

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

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
JEE Main 2020 (5 September Shift 2)
LEVELJEE Main

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

JEE Main 2022 (28 June Shift 1)
LEVELJEE Main

Let a function be defined by then, is

(A)
one-one but not onto
(B)
onto but not one-one
(C)
neither one-one nor onto
(D)
one-one and onto
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 2023 (11 April Shift 2)
LEVELJEE Main

Let and . Then the number of functions satisfying is equal to

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