Let and . Then, the number of onto functions from to is
- Option A:
- Option B:
- Option C:
- Option D:
Solution
Core idea. Count all functions from to and subtract those that miss an element of , which here are just the constant functions.
Concept refresher. A function is onto when every element of the codomain is an image. Number of onto functions = (all functions) (functions missing at least one element).
Approach. Count all functions and subtract the non-onto ones.
Step 1: All functions
Each of the elements of can go to or :
Step 2: Non-onto functions
A function into misses an element only if it is constant: all to , or all to . That is functions.
Step 3: Subtract
Answer. (A)
Why the other options are wrong
- (B) counts all functions, including the two constant ones that are not onto.
- (C) subtracts instead of the constant functions.
- (D) uses the wrong exponent; there are elements in , not .
Key takeaway
The trap. Students count all functions and forget that the two constant maps are not onto.
How toppers think. For a two-element codomain they write immediately, with no need for full inclusion-exclusion.
Remember. Onto maps from an -element set to a -element set number .
More on Types of Functions
- Let S = (0, 1) ∪ (1, 2) ∪ (3, 4) and T = {0, 1, 2, 3}. Then which of the following statements is(are) true?
- Let X be a set with exactly 5 elements and Y be a set with exactly 7 elements. If α is the number of one-one…
- Let f:(-π/2,π/2)→R be given by f(x)=(log(sec x+tan x))³. Then
- All 9 on Types of Functions ›