On page 139 of Flajolet and Sedgewick's Analytic Combinatorics we read:
"To two permutations $\sigma,\tau$ of the same size, associate a graph $G_{\sigma,\tau}$ whose set vertices is $V=[1\ldots n],$ if $n = |σ| = |τ |,$ and set of edges is formed of all the pairs $(x,\sigma(x)), (x,\tau(x)),$ for $x\in V.$"
The claim is then made that the probability that such a random graph is connected is
$$\frac1{n!}[x^n]\log\left(\sum_{n\geq0} n!x^n\right).$$
This cannot be correct. (I think the factor of $1/n!$ should be $1/n!^2$) ?
I understand that the number of such graphs that are connected is the number of ordered pairs in $S_n$ that would generate a transitive group.
In Sloane's OEIS A122949 we see a count of the number of ordered pairs of $n$-permutations that generate a transitive subgroup. The exponential generating function (egf) is $\log(\sum_{n\geq0} n!x^n).$
I want to derive (via the symbolic method) an egf for the number of size $2$ (and then generally size $k$) subsets of $S_n$ that generate a transitive group. Cf. A266910. By brute force I managed to get Mathematica to count the number of such subsets of size $3$ in $S_n$ for $n = 3,4,5.$ They are $20,$ $1932,$ and $269040$ respectively.
My specific questions are: Do you agree that the statement made in the book is an error?
Can I utilize the egf for the connected graph objects (ordered pairs in $S_n$ that generate a transitive group) to derive an egf for size $k$ subsets of $S_n$ that generate a transitive group?
Can GAP verify the three terms that I have computed above with Mathematica?