If and , then the number of surjections from A to B is
If and , then the number of surjections from A to B is
Solution
Set has elements.
Set has elements.
A surjection (onto function) requires every element in to be mapped to by at least one element from . Both and must be used.
Each element in can map to either or , giving 2 choices per element.
Total functions from to :
A function is not surjective when at least one element in is not mapped to.
Case 1: All elements from map only to (y is unused)
Number of such functions
Case 2: All elements from map only to (x is unused)
Number of such functions
Total non-surjective functions
Number of surjections from to :
Related questions:
2023: 30 May Shift 3
2025: 22 May Shift 2
2025: 22 May Shift 2
2026: 29 May Shift 2