The number of functions , which are not onto, is :
- Option A:
- Option B:
- Option C:
- Option D:
Solution
Core idea. A map is not onto exactly when its range misses a letter, so count the onto maps and take the complement.
Concept refresher. The number of maps from a set of elements to a set of elements is . The number of onto maps is, by inclusion and exclusion over the elements missed,
valid for .
Picture the situation. Each of the four elements picks one of the letters . A map fails to be onto when at least one letter is never picked; that happens when only two letters are used, or only one.
Approach. Count all maps, count the onto maps by inclusion and exclusion, and subtract.
Step 1: Count all maps
Each of the four elements has three independent choices:
Step 2: Count the onto maps
Remove the maps that miss one chosen letter, then add back those that miss two letters, which were removed twice:
Step 3: Take the complement
The maps that are not onto are all the others:
Answer. (B)
Sanity check. Count the non-onto maps directly: constant maps, and for each of the pairs of letters, maps that use both letters of the pair; .
Why the other options are wrong
- (A) Counting the maps that miss a chosen letter as counts each of the constant maps twice; removing the double count gives .
- (C) Adding the constant maps instead of removing their double count gives ; inclusion and exclusion subtracts them, .
- (D) The value needs onto maps, but the onto count is , so .
Key takeaway
The trap. Taking as the number of maps that miss a letter, which counts each constant map twice.
How toppers think. They check a count by a second route, here constants plus maps onto exactly two letters.
Remember. Onto maps from elements to elements number .
More on Types of Functions
- Let f: R → R be defined as f(x) = (2x² - 3x + 2)/(3x² + x + 3). Then f is:
- Let A = {1, 2, 3, 4, 5, 6}. The number of one-one functions f: A → A such that f(1) ≥ 3, f(3) ≤ 4 and f(2) +…
- Given below are two statements: Statement I: The function f: R → R defined by f(x) = x/(1 + |x|) is one-one…
- All 47 on Types of Functions ›