Answer to Question #148093 in Discrete Mathematics for Promise Omiponle

Question #148093
For all parts of this problem, let S be a finite set, with |S|=n.
(a) If f:S -> S is onto, does it necessarily follow that f is invertible? Why or why not?
(b) Compute the number of distinct functions g:S -> S that are onto.
(c) Find the number of functions f:S -> S that are not invertible.
1
Expert's answer
2020-12-08T06:43:48-0500

Let SS be a finite set with S=n|S|=n.


(a) If f:SSf:S \to S is onto and SS is finite, then ff is injection. Indeed, suppose that ff is not injection, then f(a)=f(b)f(a)=f(b) for some aba\ne b. It follows that f(S)n1|f(S)|\le n-1, and therefore f(S)Sf(S)\subsetneq S. This contadicts to the fact that ff is onto. Consequently, f:SSf:S \to S is bijection, and thus it is invertible.


(b) The number of distinct functions g:SSg:S \to S that are onto is equal to the number of all distinct bijection on the set SS. Taking into account that the number of all bijection on the set SS is equal to the number of all permutation of the nn-element set SS, we conclude that the number of distinct functions g:SSg:S \to S that are onto is equal to n!.n!.


(c) Let us compute the number of all functions f:SSf:S \to S. For each aSa\in S the value f(a)f(a) of the function ff at a point aa can independently acquire one of the n=Sn=|S| values of the set SS. So, by the combinatorial rule of product, the number of all functions f:SSf:S \to S is equal to n...nn=nn\underbrace{n\cdot...\cdot n}_n=n^n.

Consequently, the number of functions f:SSf:S \to S that are not invertible is equal to nnn!.n^n-n!. .




Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
01.12.20, 20:09

Dear Promise Omiponle, your questions will be evaluated by our experts. We shall try to solve and publish the answer as soon as possible, but we cannot assure the exact time frame for a solution of the question. If you have several urgent questions and you need a solution with the strict deadline, you also can submit an order as well.

Promise Omiponle
01.12.20, 08:00

Hello, I just wanted to find out if it is possible for this question, along with the other questions I recently uploaded, to be answered before The end of Thursday?

Leave a comment