Part of MISC-01 — Sets, Relations & Functions

Counting Functions

by Notetube Officialdetailed summary170 words9 views

From an m-element set A to an n-element set B: Total functions = nmn^m (each of m elements has n choices). Injective functions = P(n,m) = n!/(n-m)! (requires m <= n; first element has n choices, second n-1, etc.). Surjective functions (m >= n): use inclusion-exclusion = sumk=0nsum_{k=0}^{n} (-1)^k * C(n,k) * (n-k)^m. Bijective functions = n! (requires m = n). Example: from {1,2,3,4} to {a,b}: total = 2^4 = 16, surjective = 16 - 2 = 14 (subtract functions mapping everything to a single element). Number of bijections from {1,2,3} to {a,b,c} = 3! = 6. These counting formulas are tested both directly and within probability problems.

Want to generate AI summaries of your own documents? NoteTube turns PDFs, videos, and articles into study-ready summaries.

Sign up free to create your own