View worked solution
Answer: C
To find the number of onto (surjective) functions from a domain set with elements to a codomain set with elements, we can use the principle of exclusion:
- Total number of functions: Each of the elements in has choices in . Therefore, the total number of possible functions is:
- Non-onto functions: A function is not onto if its range does not cover the entire codomain . Since , the only non-onto functions are those where all elements of map to a single element in :
- All elements map to (constant function 1)
- All elements map to (constant function 2)
Subtracting the non-onto functions from the total functions gives the number of onto functions:
Hence, the correct option is C.
Free practice · Your answers on this page are not saved.
