We are given two sets $A = \{1, 2, 3\}$ and $B = \{a, b, c, d, e\}$. We need to solve the following problems: i) Find the total number of functions from $A$ to $B$. ii) Find the number of injective functions from $A$ to $B$. iii) Find the number of injective functions from $A$ to $B$ such that $f(1) = a$. iv) Find the number of injective functions from $A$ to $B$ such that $f(1) \ne a$ and $f(2) \ne b$.
2025/5/27
1. Problem Description
We are given two sets and . We need to solve the following problems:
i) Find the total number of functions from to .
ii) Find the number of injective functions from to .
iii) Find the number of injective functions from to such that .
iv) Find the number of injective functions from to such that and .
2. Solution Steps
i) The total number of functions from a set with to a set with is . Here, and , so the number of functions from to is .
ii) The number of injective functions from a set with to a set with where is given by the formula:
.
In our case, and . So, the number of injective functions is:
.
iii) If , then we need to find the number of injective functions from the remaining two elements of , , to the remaining four elements of , . The number of such injective functions is .
iv) We need to find the number of injective functions from to such that and .
First, we compute the total number of injective functions from to , which is .
We subtract the number of injective functions such that , which is .
We subtract the number of injective functions such that . If , then we map the remaining two elements of to the remaining four elements of . The number of such injective functions is .
However, we subtracted twice the number of injective functions such that and . If and , then we need to find an injective function from the remaining one element of , , to the remaining three elements of , . The number of such injective functions is .
Using inclusion-exclusion, we have:
Total injective functions = 60
: 12
: 12
and : 3
The number of injective functions where and is:
Another way to solve this is:
There are 5 choices for . Since , there are 4 choices for .
Now consider . There are 5 choices for where can be mapped. But and .
If , then there are 4 choices for since and .
If , then there are 3 choices for since and .
Then we have two cases.
Case 1: . In this case, we have 1 choice for and 4 choices for . Then there are 3 choices for , for a total of functions.
Case 2: and . In this case, we have 3 choices for , 3 choices for since and . Then there are 3 choices for , for a total of functions.
So, the total number of such injective functions is .
3. Final Answer
i) 125
ii) 60
iii) 12
iv) 39