Exercise · ZW-INJECTIVE-FUNCTION-010 · ★★☆ Intermediate
How many injective functions are there from \(\{1,2\}\) to \(\{a,b,c\}\)?
Choose one option.
Show answer
- C. 6
Exercise · ZW-INJECTIVE-FUNCTION-010 · ★★☆ Intermediate
Choose one option.
The first input has \(3\) possible values and the second only \(2\), those left after the first choice. That gives \(3\cdot 2=6\). The total \(3^2=9\) counts every function, including those that repeat an image.
Function \(f\colon A\to B\) in which distinct elements of \(A\) have distinct images in \(B\).