Number of Functions from to .
Number of all Functions
Number of Injective (One-to-One) Functions ()
Number of Surjective (Onto) Functions ()
∣YX∣=∣Y∣∣X∣=nk
n(n−1)(n−2)⋯(n−k+1)=(n−k)!n!
n!{nk}=∑i=0n−1(−1)i(in)(n−i)k
{nk}=S(k,n) is Second kind (Stirling partition number)
k!=n!