Analyzing the Setup
We are tasked with finding the number of onto functions f:R→S, where R={a,b,c,d,e} and S={1,2,3,4}, subject to the constraint $f(a)
eq 1$.
The set R has n=5 elements, and the set S has m=4 elements. An onto function (surjection) requires that every element in S is the image of at least one element in R.
The Total Universe of Onto Functions
To find the total number of onto functions, we employ the Principle of Inclusion-Exclusion. The formula for the number of onto functions from a set of size n to a set of size m is:
Substituting n=5 and m=4:
N=45−(14)35+(24)25−(34)15
Calculating the individual terms:
N=1024−4(243)+6(32)−4(1)
N=1024−972+192−4=240
There are exactly 240 total onto functions from R to S.
Applying the Restriction
We must exclude functions where f(a)=1. We use complementary counting: the number of valid functions is the total number of onto functions minus those where f(a)=1.
If f(a)=1, we consider two mutually exclusive cases for the remaining elements {b,c,d,e}:
Case 1: a is the only element mapping to 1.
The remaining 4 elements must map onto the remaining 3 elements {2,3,4}. The number of onto functions from a set of 4 to a set of 3 is:
34−(13)24+(23)14=81−3(16)+3(1)=36
Case 2: a maps to 1, and at least one other element also maps to 1.
In this scenario, the set {b,c,d,e} must map onto the entire set {1,2,3,4}. Since the number of elements equals the number of targets, this is equivalent to the number of permutations of 4 elements:
Final Calculation
The total number of functions where f(a)=1 is the sum of these two cases:
Subtracting this from our total universe:
The total number of onto functions satisfying $f(a)
eq 1$ is 180.