IfFor $n$$j=0,1,2,\ldots$ let $b_n(j)$ be the number of functions in $C_n$ with exactly $j$ fixed points. At least in some cases when $b_n(0) / a_n \rightarrow 1/e$ (including permutations, functions, and also even permutations and two further examples given below), we have the more general result for each $j$ that $b_n(j) / a_n \rightarrow 1/(j!e)$. That is a prime power, if we construct a random variable $q$$j$ by choosing $f \in C_n$ uniformly at random and counting its fixed points, then we can use the polynomialsdistribution of degree at most $d \rightarrow \infty$ on a finite field$j$ approaches the Poisson distribution with parameter $k$ of$1$.
For this distribution, not only does $q$ elements$j$ have expected value $1$, because but more generally for each $k \leq d$$i$ the expected number of $d$$i$-tuples of of distinct fixed points isapproaches $$ \sum_{j=i}^\infty \frac{j!}{(j-i)!} \frac1{j!e} = \frac1e \sum_{j=i}^\infty \frac1{(j-i)!} = 1. $$ Since the same as forPoisson distribution is determined by its moments [what's a random function. Ifstandard reference for this?], it follows that conversely
Suppose for each $n$ in a sequence with $n \rightarrow \infty$ we have a set $C_n$ of functions $f : \lbrace 1,2,\ldots,n \rbrace \rightarrow \lbrace 1,2,\ldots,n \rbrace$. If for each $i$ the average number over $f \in C_n$ of $i$-tuples of distinct points of $f$ approaches $1$ as $n \rightarrow \infty$ then $b_n(j) / a_n \rightarrow 1/(j!e)$ for each $j$.
The hypothesis is reasonably natural in contexts where we expect that the $n=q+1$ then the same should work$i$-tuples $\bigl(f(x_1),f(x_2),\ldots f(x_i)\bigr)$ are nearly equidistributed for rational functions of degree at most $d$ on the projective line over$i$-tuples $k$$(x_1,x_2,\ldots,x_i)$ of distinct elements of $\lbrace 1,2,\ldots,n \rbrace$.
AsThis equidistribution holds exactly for alternatingall $i \leq n$ if $C_n$ is the set of all functions; if $C_n$ is the permutations then we have exact equidistribution among $i$-tuples of distinct elements of $\lbrace 1,2,\ldots,n \rbrace$, what counts aswhich is sufficient as $n \rightarrow \infty$; likewise for even permutations once $n \geq i+2$, which can be assumed since in each case we fix $i$ and let $n \rightarrow \infty$.
A further example: let $n$ be a simple proof? Forprime power $q$, identify $\lbrace 1,2,\ldots,n \rbrace$ with a finite field $F$, and let $C_n$ consist of the $n^d$ polynomials of degree less than $d$. Then equidistribution holds exactly for each $k \leq n-2$$i \leq d$. Once $d>1$, the expecteddistribution of $j$ is the same as the distribution of the number of roots of a random polynomial of degree $k$-tuples$<d$ (namely $f(X)-X$). It is well known that there is a close link between the distribution of fixed pointscycle structures of random permutations, and of degrees of irreducible factors of a random permutationpolynomial over a finite field (e.g. this is a manifestation of the same for $A_n$ as forČebotarev density theorem); fixed points are 1-cycles, which correspond to linear factors, i.e. roots in $S_n$$F$.
To conclude, and that'sa similar but more than enough to prove thatexotic example: if $n=q+1$ we can identify $\lbrace 1,2,\ldots,n \rbrace$ with the proportionfinite projective line $F \cup \lbrace \infty \rbrace$, fix $d < n/2$, and let $C_n$ be the set of permutations withrational functions of given degree $d>1$. Here $a_n = q^{2d+1} - q^{2d-1}$. (See the bottom of page 8 of my STOC'01 paper for a bijective proof that there are exactly $j$$q^{2d+1}$ rational functions of degree at most $d$.) The number of fixed points approachesis at most $1/(j!e)$$d+1$, and for each $j=0,1,2,3,\ldots$. Also, as you know one can get an exact count by computing the generating function for the difference between$i \leq d+1$ the expected number of even and odd derangementsfixed $i$-tuples behaves correctly. So this example works as long as $d \rightarrow\infty$.