Let A and B be two sets such that n(A)=6 and n(B)=3, then number of onto functions from A to B is
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.