This is an old practice exam question in my calculus class and I would love to understand it before my exam, so any help would be great!
Consider the sets $A = \{a,b\}$ and $B=\{a,c,d,e,f\}$.
a) How many functions are there from $A$ to $B$?
b) How many injective functions are there from $A$ to $B$?
c) How many surjective functions are there from $A$ to $B$?
I know what injective and surjective means, but I have only applied it in linear algebra and I'm not sure how to do these.
Consider the sets A={a,b} and B={a,c,d,e,f}.
a) How many functions are there from A to B?
The answer is $5^2 =25$ because you have $5$ choices for each $a$ or $b.$
b) How many injective functions are there from A to B?
The answer is $5\times 4 =20$.you have $5$ choices for $a$ and only $4$ choices for $b$
c) How many surjective functions are there from A to B?
The answer is $0$. You can not cover $5$ elements with just $a$ and $b$