To solve the problem of finding the number of surjective functions from set (A) (size 5) to set (B) (size 3), we use the inclusion-exclusion principle:
Step 1: Total functions
The total number of functions from (A) to (B) is (3^5 = 243).
Step 2: Subtract functions missing at least one element
Choose 1 element of (B) to miss: (\binom{3}{1}). For each choice, map all 5 elements of (A) to the remaining 2 elements: (2^5).
Total: (\binom{3}{1} \times 2^5 = 3 \times 32 = 96).
Step 3: Add back functions missing two elements
Choose 2 elements of (B) to miss: (\binom{3}{2}). For each choice, map all 5 elements to the remaining 1 element: (1^5).
Total: (\binom{3}{2} \times 1^5 = 3 \times 1 = 3).
Step 4: Calculate surjective functions
Using inclusion-exclusion:
(243 - 96 + 3 = 150).
Answer: (\boxed{150})


作者声明:本文包含人工智能生成内容。