188k views
2 votes
How many onto functions are there from a set with six elements to a set with four elements?m

User Phlogratos
by
8.2k points

1 Answer

5 votes

There are 2160 onto functions from a set with six elements to a set with four elements. This calculation is based on the Stirling number of the second kind formula.

An onto function (also known as a surjective function) is a function in which every element in the codomain is mapped to by at least one element in the domain.

Let's consider a set with six elements as the domain (A) and a set with four elements as the codomain (B).

Since the function must be onto, each element in set B must have at least one pre-image in set A. The number of onto functions from a set with m elements to a set with n elements is given by:


\[ n! \left[{{m \brace n}}\right] \]

where
\[{{m \brace n}}\] denotes the Stirling number of the second kind.

For this case (m=6, n=4), the number of onto functions is:


\[ 4! \left[{{6 \brace 4}}\right] = 24 * 90 = 2160 \]

Therefore, there are 2160 onto functions from a set with six elements to a set with four elements.

User Chrisz
by
8.6k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories