Exercise · ZW-SURJECTIVE-FUNCTION-005 · ★★☆ Intermediate
Let \(f\colon\{1,2,3\}\to\{a,b\}\). Can \(f\) be surjective?
Choose one option.
Show answer
- A. Yes, for example with \(f(1)=a\), \(f(2)=b\), \(f(3)=b\)
Exercise · ZW-SURJECTIVE-FUNCTION-005 · ★★☆ Intermediate
Choose one option.
The three inputs can be distributed to cover both \(a\) and \(b\): one must map to \(a\) and another to \(b\). A larger domain does not prevent surjectivity; what prevents it is an image with fewer values than \(B\).
Function \(f\colon A\to B\) whose image is the whole codomain \(B\).