A function between A and B assigns to each element of A one and only one element of B. If A has m elements and B n elements, we have that to each element of A we can assign any element of B. The number of possible functions is therefore $\displaystyle N = n^ m$…
Regards