Let A and B be two sets such that n(A) = p and n(B) = q, write the number of functions from A to B.

For each value of set A, we can have q functions as each value of A pair up with all the values of B.

So, total number of functions from A to B =q× q× q…..{p times}


=qp


1