Discrete Mathematics: The Twelvefold Way

The Twelvefold Way


  1. How many functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?

  2. Example. $N=2, K=3$


    Example. $N=3, K=2$


    \[ \boxed{K^N} \]
  3. How many injective functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?

  4. Example. $N=2, K=3$


    \[ \boxed{ \begin{cases} \dfrac{K!}{(K-N)!} & N \le K \\ 0 & N > K \end{cases} } \]
  5. How many surjective functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?

  6. Example. $N=3, K=2$


    \[ \boxed{ \begin{cases} K!\,S(N,K) & N \ge K \\ 0 & N < K \end{cases} } \]
  7. How many bijective functions are there from a set with $N$ distinct elements to a set with $K$ distinct elements?

  8. Example. $N=3, K=3$


    \[ \boxed{ \begin{cases} N! & N = K \\ 0 & N \ne K \end{cases} } \]
  9. How many functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?

  10. Example. $N=2, K=3$


    Example. $N=3, K=2$


    \[ \boxed{\binom{N+K-1}{K-1}} \]
  11. How many injective functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?

  12. Example. $N=2, K=3$


    \[ \boxed{ \begin{cases} \binom{K}{N} & N \le K \\ 0 & N > K \end{cases} } \]
  13. How many surjective functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?

  14. Example. $N=3, K=2$


    \[ \boxed{ \begin{cases} \binom{N-1}{K-1} & N \ge K \\ 0 & N < K \end{cases} } \]
  15. How many bijective functions are there from a set with $N$ indistinguishable elements to a set with $K$ distinct elements?


  16. Example. $N=3, K=3$


    \[ \boxed{ \begin{cases} 1 & N = K \\ 0 & N \ne K \end{cases} } \]
  17. How many functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?

  18. 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} } \]
  19. How many injective functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?

  20. Example. $N=2, K=3$


    \[ \boxed{ \begin{cases} 1 & N \le K \\ 0 & N > K \end{cases} } \]
  21. How many surjective functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?

  22. Example. $N=3, K=2$


    \[ \boxed{ \begin{cases} S(N,K) & K \le N \\ 0 & K > N \end{cases} } \]
  23. How many bijective functions are there from a set with $N$ distinct elements to a set with $K$ indistinguishable elements?

  24. Example. $N=3, K=3$


    \[ \boxed{ \begin{cases} 1 & N = K \\ 0 & N \ne K \end{cases} } \]

Comments

Popular posts from this blog

Discrete Mathematics: Permutations With Repetition