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
Exercise · ZW-SURJECTIVE-FUNCTION-008 · ★★★ Advanced
Choose one option.
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.
Function \(f\colon A\to B\) whose image is the whole codomain \(B\).