Q. If denotes the number of function from to such that , then equals

 1396  218 Permutations and Combinations Report Error

Solution:

The problem is just similar as, if we have letters and n envelops and no letter goes to the right envelops.
number of ways of putting , in places
so that no goes to the corresponding place

Putting in , we get