Let and . Then the number of elements in the set is
Step 1: Interpret the data
Given,
Step 2: Case-1
If i.e., for all belonging to .
There can only be one function such that it maps all elements of a set to a single element of another set.
Here, is a constant function since it maps all its input into a single output.
Thus, from this case, we have function.
Step 3: Case-2
If for exactly two of the elements.
Then we have that, of the three elements, two map to . This is in ways.
Then the remaining one maps to one of the other three. This is in (The remaining three in choose one from ).
Thus, the possible number of functions is
Step 4: Case-3
If for exactly one of the elements.
Then we have that, of the three elements, one maps to . This is in ways.
Then the remaining two map to one of the other three. This is in (The remaining two in choose two from ).
Thus, the possible number of functions is
So, total number of possible functions is .
Hence the total number of possible functions from to with given conditions is .