Discrete Mathematics: The Twelvefold Way
The Twelvefold Way
- How many functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?
- How many injective functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?
- How many surjective functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?
- How many bijective functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?
- How many functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?
- How many injective functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?
- How many surjective functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?
- How many bijective functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?
- How many functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?
- How many injective functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?
- How many surjective functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?
- How many bijective functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?
Example. $N=2, K=3$
Example. $N=3, K=2$
\[ \boxed{K^N} \]
Example. $N=2, K=3$
\[ \boxed{ \begin{cases} \dfrac{K!}{(K-N)!} & N \le K \\ 0 & N > K \end{cases} } \]
Example. $N=3, K=2$
\[ \boxed{ \begin{cases} K!\,S(N,K) & N \ge K \\ 0 & N < K \end{cases} } \]
Example. $N=3, K=3$
\[ \boxed{ \begin{cases} N! & N = K \\ 0 & N \ne K \end{cases} } \]
Example. $N=2, K=3$
Example. $N=3, K=2$
\[ \boxed{\binom{N+K-1}{K-1}} \]
Example. $N=2, K=3$
\[ \boxed{ \begin{cases} \binom{K}{N} & N \le K \\ 0 & N > K \end{cases} } \]
Example. $N=3, K=2$
\[ \boxed{ \begin{cases} \binom{N-1}{K-1} & N \ge K \\ 0 & N < K \end{cases} } \]
Example. $N=3, K=3$
\[ \boxed{ \begin{cases} 1 & N = K \\ 0 & N \ne K \end{cases} } \]
Example. $N=3, K=2$
Example. $N=2, K=3$
Example. $N=3, K=3$
\[ \boxed{ \begin{cases} B_N & K \ge N \\ \sum_{i=1}^{K} S(N,i) & K < N \end{cases} } \]
Example. $N=2, K=3$
\[ \boxed{ \begin{cases} 1 & N \le K \\ 0 & N > K \end{cases} } \]
Example. $N=3, K=2$
\[ \boxed{ \begin{cases} S(N,K) & K \le N \\ 0 & K > N \end{cases} } \]
Example. $N=3, K=3$
\[ \boxed{ \begin{cases} 1 & N = K \\ 0 & N \ne K \end{cases} } \]
















Comments
Post a Comment