Exercise · ZW-SURJECTIVE-FUNCTION-008 · ★★★ Advanced

Let \(A=\{1,2,3,4\}\) and \(B=\{a,b\}\). How many surjective functions \(f\colon A\to B\) are there?

Choose one option.

Show answer
  • B. 14

Explanation

There are \(2^4=16\) functions in total. Subtract the two constant functions, which miss one element of \(B\): \(16-2=14\). All the others take both values.

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-007 ZW-SURJECTIVE-FUNCTION-009 →