Suppose the set A has m elements and the set B has n elements. there are 2mn relations from A to B and n^m functions from A to B

if m=n+1,find the number of functions from A onto B.

the answer is this

http://i83.photobucket.com/albums/j3...at121712AM.png

Can someone dumb this down for me so i can understand it?