A is set of n different elements.
A={x1,x2,x3,.............xn}
For one element there are n functions possible.
So for n elements ,
No. of functions possible=n⋅n⋅n⋅n………..n [n times]
∴ number of functions from A to A =nn
Onto functions: when every element of the image set has an inverse image in the first set.
If ,for x1 there are n functions possible.
For x2 there are (n-1) functions possible
Similarly for x3,x4,.......xn
Number of Onto functions are =n×(n−1)×(n−2).............1=n!
∴ number of Onto functions from A to A=n!