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\)

Explanation

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\).

Study Set theory in ZWMath →

Review the concept: Surjective function

Function \(f\colon A\to B\) whose image is the whole codomain \(B\).

\[\forall b\in B\,\exists a\in A\,(f(a)=b)\]

More practice problems: surjective function

← ZW-SURJECTIVE-FUNCTION-004 ZW-SURJECTIVE-FUNCTION-006 →