Let and . Then the number of many-one functions such that is equal to :
- Option A: 151
- Option B: 139
- Option C: 163
- Option D: 127
Solution
Core idea. A condition of the form "at least once" is counted through its complement.
Concept refresher. The number of all functions from a set of elements to a set of elements is
and those that avoid one given value number .
Picture the situation. A function from to assigns one of 4 values to each of 4 elements. The condition says the value 1 is taken at least once. Many-one means not one-one. Since and have 4 elements each, a one-one function is a bijection and takes every value, including 1.
Approach. Count functions with 1 in the range by the complement, then subtract the bijections.
Step 1: Range contains 1
All functions number , and those that avoid the value 1 number , so functions have 1 in the range.
Step 2: Many-one
The one-one functions all have 1 in the range, so removing them leaves many-one functions.
Answer. (A) 151
Sanity check. Counting the other way: the many-one functions number , and the 81 that avoid 1 are all many-one, so .
Why the other options are wrong
- (B) The value 139 is 12 less than .
- (C) The value 163 is 12 more than 151, as if only 12 one-one functions were removed.
- (D) The value 127 would need 48 functions to be removed from 175; only the 24 bijections are one-one.
Key takeaway
The trap. Between sets of equal size, one-one functions are automatically onto.
How toppers think. They check the count by doing the two subtractions in the other order.
Remember.