MathDB
Equal to the number of permutations

Source: Brazilian University Olympics 2019

November 18, 2019
permutationcombinatorics

Problem Statement

In a hidden friend, suppose no one takes oneself. We say that the hidden friend has "marmalade" if there are two people AA and B B such that A took BB and B B took AA. For each positive integer n, let f(n)f (n) be the number of hidden friends with n people where there is no “marmalade”, i.e. f(n)f (n) is equal to the number of permutations σ\sigma of {1,2,...,n1, 2,. . . , n} such that:
*σ(i)i\sigma (i) \neq i for all i=1,2,...,ni=1,2,...,n
* there are no 1i<jn 1 \leq i <j \leq n such that σ(i)=j \sigma (i) = j and σ(j)=i.\sigma (j) = i.
Determine the limit
limn+f(n)n!\lim_{n \to + \infty} \frac{f(n)}{n!}