The number of functions from the set A in to the set such that and is
A function such that falls in one of the following four categories.
Case 1
There are functions in this category.
Case 2
There are functions in this category
Case 3
There are again functions in this category
Case 4
There are functions in this category. Thus, the number of desired functions is
.