betaFeedback

WorksMathematics

The probability that two random generalized derangements have the same number of cycles

Abstract

Using singularity analysis, we show that the probability that two independently and uniformly selected generalized derangements of size nn have the same number of cycles is asymptotically the same as the corresponding probability for unrestricted permutations, namely, ∼12πlog⁡n  .\sim \frac{1}{2\sqrt{π\log n}}\;.

Introduction

When studying large combinatorial objects, a natural question arises: if we select two random objects of size nn from a given class, what is the probability that they share a specified shape, profile or parameter? For example, the authors of [2] study the probability that two random compositions have the same number of parts, while Wilf [5] studies the corresponding question for the number of cycles in random permutations.

Recall that the Stirling numbers of the first kind [nk]\left[{n \atop k}\right] count permutations of size nn that have exactly kk cycles. In [5] Wilf showed that for two independently and randomly selected permutations the probability that they have the same number of cycles is asymptotically

1(n!)2∑k=1n[nk]2∼12πlog⁡n.\frac{1}{(n!)^2}\sum_{k=1}^{n}\left[{n \atop k}\right]^2 \sim\frac{1}{2\sqrt{\pi\log n}}.

Wilf’s elegant argument relies on the polynomial structure of the generating function for the Stirling numbers and on specific properties of the Gamma function. This approach does not extend directly to permutations with restrictions on cycle lengths.

Definition 1. Let SS be a (possibly empty) finite set of positive integers. An SS-derangement is a permutation whose cycle lengths do not belong to SS.

We denote the collection of all SS-derangements of length nn by DnSD_n^S.

Using this notation, Dn∅D_n^{\varnothing} is the set of all permutations of size nn, and Dn{1}D_n^{\{1\}} is the set of ordinary derangements, that is, permutations without fixed points. To simplify the notation, we fix SS throughout the remainder of this paper and omit the superscript.

In this paper, we prove the perhaps surprising fact that the probability that two randomly selected generalized SS-derangements of size nn have the same number of cycles is asymptotically the same as the corresponding probability for unrestricted permutations. This is interesting, because the possible numbers of cycles are much less numerous. For instance, an ordinary derangement of length nn can have at most ⌊n/2⌋\lfloor n/2\rfloor cycles, whereas for S={1,2,⋯ ,k}S=\{1,2,\cdots,k\}, the highest possible number of cycles is ⌊n/(k+1)⌋\lfloor n/(k+1)\rfloor.

In order to keep the paper self-contained while not slowing down the flow of the proof too much, out of the three theorems we use, we include two in the main part of the article, and we present the third in the Appendix.

The proof of our main result

Definition 2. We refine DnD_n according to the number of cycles by setting

Dn,k={p∈Dn∣#cycles(p)=k}.D_{n,k}=\{p\in D_n\mid\#\mathrm{cycles}(p)=k\}.

Write Dn=∣Dn∣D_n=|D_n| and Dn,k=∣Dn,k∣D_{n,k}=|D_{n,k}| for the corresponding cardinalities.

Our goal is to show that

1(Dn)2∑k=1n(Dn,k)2∼12πlog⁡n.\frac{1}{(D_n)^2}\sum_{k=1}^{n}(D_{n,k})^2\sim\frac{1}{2\sqrt{\pi\log n}}.

for any finite SS. We use the methods of [3] to establish a Gaussian local limit law for the appropriately normalized cycle counts as nn tends to infinity.

Definition 3. Let F(z,u)F(z,u) be the bivariate generating function given by

F(z,u)=∑n=0∞∑k=0nDn,kukznn!F(z,u)=\sum_{n=0}^{\infty}\sum_{k=0}^{n}D_{n,k}u^k\frac{z^n}{n!}

with the convention that D0,0=1D_{0,0}=1 and Dn,0=0D_{n,0}=0 for all positive integers nn. We denote the horizontal layers of F(z,u)F(z,u) by

fn(u)=[zn]F(z,u)=1n!∑k=0nDn,kuk.f_n(u)=[z^n]F(z,u)=\frac{1}{n!}\sum_{k=0}^{n}D_{n,k}u^k.

Definition 4. For nn such that Dn>0D_n>0, let XnX_n be the number of cycles in a random SS-derangement of size nn. Its probability generating function is

pn(u)=EuXn=∑k=0nDn,kDnuk=fn(u)fn(1).p_n(u)=\mathbb{E}u^{X_n}=\sum_{k=0}^{n}\frac{D_{n,k}}{D_n}u^k=\frac{f_n(u)}{f_n(1)}.

Using the symbolic properties of generating functions from [1] we derive the explicit formula for F(z,u)F(z,u) as a collection of cycles marked by parameter uu. Thus,

F(z,u)=exp⁡(∑j∉Suzjj)=exp⁡(ulog⁡11−z−u∑j∈Szjj)=exp⁡(−u∑j∈Szjj)(1−z)−u.F(z,u)=\exp\left(\sum_{j\notin S}u\frac{z^j}{j}\right)=\exp\left(u\log\frac{1}{1-z}-u\sum_{j\in S}\frac{z^j}{j}\right)=\exp\left(-u\sum_{j\in S}\frac{z^j}{j}\right)(1-z)^{-u}.

The series ∑j∉Szj/j\sum_{j\notin S}z^j/j defines a holomorphic function g(z)g(z) on the open unit disk. Consequently, F(z,u)=exp⁡(ug(z))F(z,u)=\exp(ug(z)) is holomorphic on the set {z∈C∣∣z∣<1}×C\{z\in\mathbb{C}\mid|z|<1\}\times\mathbb{C}.

Following the proof of the singularity analysis theorem for variable-exponent perturbations [3 Theorem IX.11] (see our Appendix for a detailed discussion of the theorem and how we apply it here), we obtain

fn(u)=[zn]F(z,u)=exp⁡(−u∑j∈S1j)Γ(u)nu−1(1+O(n−1/2))(1)f_n(u)=[z^n]F(z,u)=\frac{\exp\left(-u\sum_{j\in S}\frac{1}{j}\right)}{\Gamma(u)}n^{u-1}\left(1+O\left(n^{-1/2}\right)\right) \tag*{(1)}

uniformly for uu in a sufficiently small neighborhood Ω\Omega of 1. For example, Ω={u∈C∣∣u−1∣≤1/3}\Omega=\{u\in\mathbb{C}\mid|u-1|\leq1/3\} will work. Consequently, uniformly on Ω\Omega, we have

pn(u)=[zn]F(z,u)[zn]F(z,1)=exp⁡((1−u)∑j∈S1j)Γ(u)nu−1(1+O(n−1/2)).p_n(u)=\frac{[z^n]F(z,u)}{[z^n]F(z,1)}=\frac{\exp\left((1-u)\sum_{j\in S}\frac{1}{j}\right)}{\Gamma(u)}n^{u-1}\left(1+O\left(n^{-1/2}\right)\right).

We first recall the Quasi-powers Theorem [3 Theorem IX.8]. For a function ff analytic at u=1u=1, with f(1)≠0f(1)\ne0, define its analytic mean and variance by

m(f)=f′(1)f(1),v(f)=f′′(1)f(1)+f′(1)f(1)−(f′(1)f(1))2.m(f)=\frac{f'(1)}{f(1)},\qquad v(f)=\frac{f''(1)}{f(1)}+\frac{f'(1)}{f(1)}-\left(\frac{f'(1)}{f(1)}\right)^2.

Theorem 1 (Quasi-powers theorem). Let XnX_n be a sequence of non-negative discrete random variables with probability generating functions Pn(u)P_n(u). Suppose that, uniformly in a fixed complex neighborhood of u=1u=1,

Pn(u)=A(u)⋅B(u)βn(1+O(1κn)),P_n(u)=A(u)\cdot B(u)^{\beta_n}\left(1+O\left(\frac{1}{\kappa_n}\right)\right),

where βn,κn→+∞\beta_n,\kappa_n\to+\infty, the functions A(u)A(u) and B(u)B(u) are analytic at u=1u=1, and A(1)=B(1)=1A(1)=B(1)=1. Suppose also that the variability condition

v(B)=B′′(1)+B′(1)−(B′(1))2≠0v(B)=B''(1)+B'(1)-(B'(1))^2\ne0

holds. Then the mean and variance of XnX_n satisfy

μn=EXn=βnm(B)+m(A)+O(κn−1),\mu_n=\mathbb{E}X_n=\beta_n m(B)+m(A)+O(\kappa_n^{-1}),
σn2=VarXn=βnv(B)+v(A)+O(κn−1).\sigma_n^2=\mathop{\rm Var}X_n=\beta_n v(B)+v(A)+O(\kappa_n^{-1}).

Moreover, the distribution of XnX_n, after standardization, is asymptotically Gaussian:

P{Xn−μnσn≤x}=Φ(x)+O(κn−1+βn−1/2),\mathbb{P}\left\{\frac{X_n-\mu_n}{\sigma_n}\leq x\right\}=\Phi(x)+O\left(\kappa_n^{-1}+\beta_n^{-1/2}\right),

uniformly for x∈Rx\in\mathbb{R}, where Φ\Phi is the distribution function of the standard normal distribution.

We now apply this theorem to the number XnX_n of cycles in a random SS-derangement of size nn. Writing nu−1=(eu−1)log⁡nn^{u-1}=(e^{u-1})^{\log n}, the uniform estimate for pn(u)p_n(u) obtained above has the required quasi-power form, with

βn=log⁡n,\beta_n=\log n,
κn=n,\kappa_n=\sqrt{n},
A(u)=exp⁡((1−u)∑j∈S1j)Γ(u),A(u)=\frac{\exp\left((1-u)\sum_{j\in S}\frac{1}{j}\right)}{\Gamma(u)},
B(u)=exp⁡(u−1).B(u)=\exp(u-1).

Both sequences βn\beta_n and κn\kappa_n tend to infinity, and both functions A(u)A(u) and B(u)B(u) are analytic in a neighborhood of u=1u=1, with A(1)=B(1)=1A(1)=B(1)=1. Furthermore,

B′′(1)+B′(1)−(B′(1))2=1≠0,B''(1)+B'(1)-(B'(1))^2=1\ne0,

so the variability condition is satisfied. Thus, all the hypotheses of the theorem hold.

Using the properties of derivatives of the Gamma function and substituting these functions and sequences into the theorem’s mean and variance formulas gives

μn=EXn=log⁡n+γ−∑j∈S1j+O(κn−1),\mu_n=\mathbb{E}X_n=\log n+\gamma-\sum_{j\in S}\frac{1}{j}+O(\kappa_n^{-1}),
σn2=VXn=log⁡n+γ−π26−∑j∈S1j+O(κn−1).\sigma_n^2=\mathbb{V}X_n=\log n+\gamma-\frac{\pi^2}{6}-\sum_{j\in S}\frac{1}{j}+O(\kappa_n^{-1}).

Consequently,

Xn−μnσn→dn→∞N(0,1),\frac{X_n-\mu_n}{\sigma_n}\xrightarrow{d}_{n\to\infty} \mathcal{N}(0,1),

with an error term

O(κn−1+βn−1/2)=O((log⁡n)−1/2).O(\kappa_n^{-1}+\beta_n^{-1/2})=O((\log n)^{-1/2}).

This Gaussian limit is not new: V. Goncharov [4] established it for unrestricted permutations in the 1940s by analyzing characteristic functions. The convergence to a Gaussian distribution for generalized derangements is stated in [3]. We nevertheless verify the hypotheses of the Quasi-powers theorem because they are also required by the local limit theorem [3], Theorem IX.14. We include this theorem below for easy reference.

Theorem 2 (Local Limit Law). Let XnX_n be a sequence of non-negative discrete random variables with probability generating functions pn(u)p_n(u). Suppose that pn(u)p_n(u) satisfies the hypotheses of the Quasi-powers Theorem. In particular, the approximation

pn(u)=A(u)⋅B(u)βn(1+O(1κn))p_n(u)=A(u)\cdot B(u)^{\beta_n}\left(1+O\left(\frac{1}{\kappa_n}\right)\right)

holds uniformly in a sufficiently small fixed complex neighborhood Ω\Omega of 11. Suppose, in addition, that there exists K>1K>1 such that

∣pn(u)∣≤K−βn|p_n(u)|\le K^{-\beta_n}

uniformly for all uu in the intersection of the unit circle and the complement C∖Ω\mathbb{C}\setminus\Omega. Then the distribution of XnX_n satisfies a local limit law of the Gaussian type, with a rate of convergence O(βn−1/2+κn−1)O(\beta_n^{-1/2}+\kappa_n^{-1}). More precisely, writing μn=EXn\mu_n=\mathbb{E}X_n, σn2=VXn\sigma_n^2=\mathbb{V}X_n, and φ(x)=(2π)−1/2e−x2/2\varphi(x)=(2\pi)^{-1/2}e^{-x^2/2}, we have

sup⁡x∈R∣σnP{Xn=⌊μn+xσn⌋}−φ(x)∣=O(βn−1/2+κn−1).\sup_{x\in\mathbb{R}}\left|\sigma_n\mathbb{P}\{X_n=\lfloor\mu_n+x\sigma_n\rfloor\}-\varphi(x)\right|=O(\beta_n^{-1/2}+\kappa_n^{-1}).

To apply this theorem, we must also estimate pn(u)p_n(u) on the unit circle, rather than only in a small neighborhood of 11.

Lemma. For nn sufficiently large, for each 0<δ<π0<\delta<\pi, there exist C>0C>0 and K>1K>1 such that

∣pn(u)∣<CK−log⁡n|p_n(u)|<CK^{-\log n}

for all uu satisfying ∣u∣=1|u|=1 and ∣arg⁡u∣>δ|\arg u|>\delta.

Proof. Recall that pn(u)=fn(u)/fn(1)p_n(u)=f_n(u)/f_n(1), where fn(u)=[zn]F(z,u)f_n(u)=[z^n]F(z,u). As F(z,u)F(z,u) is the product of two factors, we will estimate those two factors individually. We write F(z,u)=G(z,u)H(z,u)F(z,u)=G(z,u)H(z,u) where

G(z,u)=(1−z)−u=∑n=0∞gn(u)znG(z,u)=(1-z)^{-u}=\sum_{n=0}^{\infty}g_n(u)z^n
H(z,u)=exp⁡(−u∑j∈Szjj)=∑n=0∞hn(u)znH(z,u)=\exp\left(-u\sum_{j\in S}\frac{z^j}{j}\right)=\sum_{n=0}^{\infty}h_n(u)z^n
gn(u)=u(u+1)⋯(u+n−1)n!g_n(u)=\frac{u(u+1)\cdots(u+n-1)}{n!}
hn(u)=1n!∂n∂znH(z,u)∣z=0h_n(u)=\left.\frac{1}{n!}\frac{\partial^n}{\partial z^n}H(z,u)\right|_{z=0}

Setting u=eitu=e^{it} with −π<t≤π-\pi<t\leq\pi, we obtain the following expression for the squared magnitude of gn(u)g_n(u):

∣gn(eit)∣2=∏k=1n−1∣eit+k∣2(k+1)2=∏k=1n−1k2+2kcos⁡t+1(k+1)2=∏k=1n−1(1−2k(1−cos⁡t)(k+1)2).|g_n(e^{it})|^2=\prod_{k=1}^{n-1}\frac{|e^{it}+k|^2}{(k+1)^2}=\prod_{k=1}^{n-1}\frac{k^2+2k\cos t+1}{(k+1)^2}=\prod_{k=1}^{n-1}\left(1-\frac{2k(1-\cos t)}{(k+1)^2}\right).

Put α=1−cos⁡t∈[0,2]\alpha=1-\cos t\in[0,2]. Since 0≤2kα/(k+1)2≤10\leq2k\alpha/(k+1)^2\leq1 for every k≥1k\geq1, we may apply 1−x≤e−x1-x\leq e^{-x} for 0≤x≤10\leq x\leq1 directly to the factors. This gives

∣gn(eit)∣2≤exp⁡(−2α∑k=1n−1k(k+1)2).|g_n(e^{it})|^2\leq\exp\left(-2\alpha\sum_{k=1}^{n-1}\frac{k}{(k+1)^2}\right).

Moreover,

∑k=1n−1k(k+1)2=∑j=1n(1j−1j2)≥log⁡n−π26,\sum_{k=1}^{n-1}\frac{k}{(k+1)^2}=\sum_{j=1}^{n}\left(\frac{1}{j}-\frac{1}{j^2}\right)\geq\log n-\frac{\pi^2}{6},

since ∑j=1n1/j≥log⁡n\sum_{j=1}^{n}1/j\geq\log n and ∑j=1n1/j2≤π2/6\sum_{j=1}^{n}1/j^2\leq\pi^2/6. Taking square roots, we obtain

∣gn(eit)∣≤eαπ2/6n−α≤C2ncos⁡t−1,|g_n(e^{it})|\leq e^{\alpha\pi^2/6}n^{-\alpha}\leq C_2n^{\cos t-1},

where C2=eπ2/3C_2=e^{\pi^2/3}. This bound holds uniformly for −π<t≤π-\pi<t\leq\pi, including t=πt=\pi.

To bound hn(u)h_n(u), note that H(z,u)H(z,u) is an entire mapping C2→C\mathbb{C}^2\to\mathbb{C} and for each fixed uu the function z↦H(z,u)z\mapsto H(z,u) is entire. Fix R>1R>1. Setting MR=max⁡∣z∣≤R, ∣u∣=1∣H(z,u)∣M_R=\max_{|z|\leq R,\ |u|=1}|H(z,u)|, we obtain the following bound from Cauchy’s integral formula:

∣hn(u)∣=∣12πi∫∣z∣=RH(z,u)zn+1 dz∣≤MRR−n.|h_n(u)|=\left|\frac{1}{2\pi i}\int_{|z|=R}\frac{H(z,u)}{z^{n+1}}\,\mathrm{d}z\right|\leq M_RR^{-n}.

This bound holds for all uu with ∣u∣=1|u|=1.

Finally, we show that convolving a polynomially decaying sequence with an exponentially decaying sequence preserves polynomial decay. Indeed,

∣fn(u)∣=∣∑k=0ngk(u)hn−k(u)∣≤∑k=0⌊n/2⌋∣gk(u)∣∣hn−k(u)∣+∑k=⌊n/2⌋+1n∣gk(u)∣∣hn−k(u)∣≤∑k=0⌊n/2⌋1⋅MRRk−n+∑k=⌊n/2⌋+1nC2(n2)cos⁡t−1⋅MRRk−n≤MRR−n∑k=0⌊n/2⌋Rk+C2MR(n2)cos⁡t−1∑k=⌊n/2⌋+1nR−k≤MRR−nR⌊n/2⌋+1−1R−1+C2MR21−cos⁡t1−R−1ncos⁡t−1≤C3R−n/2+C4(e1−cos⁡t)−log⁡n.\begin{aligned} |f_n(u)|=\left|\sum_{k=0}^{n}g_k(u)h_{n-k}(u)\right| \\ &\leq\sum_{k=0}^{\lfloor n/2\rfloor}|g_k(u)||h_{n-k}(u)|+\sum_{k=\lfloor n/2\rfloor+1}^{n}|g_k(u)||h_{n-k}(u)| \\ &\leq\sum_{k=0}^{\lfloor n/2\rfloor}1\cdot M_RR^{k-n}+\sum_{k=\lfloor n/2\rfloor+1}^{n}C_2\left(\frac{n}{2}\right)^{\cos t-1}\cdot M_RR^{k-n} \\ &\leq M_RR^{-n}\sum_{k=0}^{\lfloor n/2\rfloor}R^k+C_2M_R\left(\frac{n}{2}\right)^{\cos t-1}\sum_{k=\lfloor n/2\rfloor+1}^{n}R^{-k} \\ &\leq M_RR^{-n}\frac{R^{\lfloor n/2\rfloor+1}-1}{R-1}+C_2M_R\frac{2^{1-\cos t}}{1-R^{-1}}n^{\cos t-1} \\ &\leq C_3R^{-n/2}+C_4\left(e^{1-\cos t}\right)^{-\log n}. \end{aligned}

The second term asymptotically dominates the first.

Since 1−cos⁡t>1−cos⁡δ>01-\cos t>1-\cos\delta>0 and fn(1)→exp⁡(−∑j∈S1/j)>0f_n(1)\to\exp\left(-\sum_{j\in S}1/j\right)>0 as n→∞n\to\infty by setting u=1u=1 in (1), we may take K=e1−cos⁡δK=e^{1-\cos\delta} and choose C>0C>0 such that

∣pn(eit)∣=∣fn(eit)∣fn(1)<CK−log⁡n.|p_n(e^{it})|=\frac{|f_n(e^{it})|}{f_n(1)}<CK^{-\log n}.

We have already verified the hypotheses of the Quasi-powers theorem for the number XnX_n of cycles in a random SS-derangement, with βn=log⁡n\beta_n=\log n and κn=n\kappa_n=\sqrt{n}. In order to apply the Local Limit Law, it remains to verify the additional bound on the unit circle.

Choose 0<δ<π0<\delta<\pi sufficiently small that

{eit∣∣t∣≤δ}⊆Ω.\{e^{it}\mid|t|\le\delta\}\subseteq\Omega.

The preceding lemma gives constants C>0C>0 and K>1K>1 such that

∣pn(u)∣<CK−log⁡n|p_n(u)|<CK^{-\log n}

for all uu on the unit circle with ∣arg⁡u∣>δ|\arg u|>\delta. In particular, this bound holds on the part of the unit circle outside Ω\Omega. Choosing any K~\widetilde{K} with 1<K~<K1<\widetilde{K}<K, we have, for all sufficiently large nn,

CK−log⁡n≤K~−log⁡n=K~−βn.CK^{-\log n}\le\widetilde{K}^{-\log n}=\widetilde{K}^{-\beta_n}.

Thus, the additional hypothesis of the Local Limit Law is satisfied.

Applying the Local Limit Law yields the following estimate, which is the key ingredient in determining the probability that two random SS-derangements have the same number of cycles.

Proposition. Let pn,k=P{Xn=k}=Dn,kDnp_{n,k}=\mathbb{P}\{X_n=k\}=\frac{D_{n,k}}{D_n} and let ϕ(x)\phi(x) denote the standard Gaussian density function, that is, ϕ(x)=(2π)−1/2e−x2/2\phi(x)=(2\pi)^{-1/2}e^{-x^2/2}. Then

sup⁡x∈R∣σnP{Xn=⌊μn+xσn⌋}−ϕ(x)∣=O(1log⁡n).\sup_{x\in\mathbb{R}}\left|\sigma_n\mathbb{P}\{X_n=\lfloor\mu_n+x\sigma_n\rfloor\}-\phi(x)\right|=O\left(\frac{1}{\sqrt{\log n}}\right).

In particular,

pn,k=1σn(ϕ(k−μnσn)+ϵn,k)p_{n,k}=\frac{1}{\sigma_n}\left(\phi\left(\frac{k-\mu_n}{\sigma_n}\right)+\epsilon_{n,k}\right)

where ϵn=max⁡k∈[n]∣ϵn,k∣=O(1log⁡n)\epsilon_n=\max_{k\in[n]}|\epsilon_{n,k}|=O\left(\frac{1}{\sqrt{\log n}}\right).

We now prove the main result of this paper.

Theorem 3. The equality

lim⁡n→∞σn∑k=1npn,k2=∫−∞∞ϕ2(x) dx=12π(2)\lim_{n\to\infty}\sigma_n\sum_{k=1}^{n}p_{n,k}^{2}=\int_{-\infty}^{\infty}\phi^{2}(x)\,dx=\frac{1}{2\sqrt{\pi}} \tag*{(2)}

holds.

Proof. The crucial idea is to view the expression on the left-hand side as a sequence of Riemann sums converging to the integral. To make this argument rigorous, we first truncate the tails of the distribution of XnX_n and establish convergence to the integral over the interval [−A,A][-A,A] for fixed AA. We then let AA tend to infinity.

Fix A>0A>0. Define the set of indices

InA={k∈[n]∣∣k−μn∣σn≤A}.I_n^A=\left\{k\in[n]\mid\frac{|k-\mu_n|}{\sigma_n}\le A\right\}.

Note that 2σnA−1<∣InA∣≤2σnA+12\sigma_nA-1<|I_n^A|\le2\sigma_nA+1 if nn is large enough. Writing ϕnk=ϕ(k−μnσn)\phi_{nk}=\phi\left(\frac{k-\mu_n}{\sigma_n}\right), we obtain

σn∑k∈InApn,k2=σn∑k∈InAσn−2(ϕnk+ϵnk)2=σn−1∑k∈InAϕnk2+σn−1∑k∈InA(2ϕnkϵnk+ϵnk2)=σn−1∑k∈InAϕnk2+o(1)\begin{aligned} \sigma_n\sum_{k\in I_n^A}p_{n,k}^{2} =\sigma_n\sum_{k\in I_n^A}\sigma_n^{-2}(\phi_{nk}+\epsilon_{nk})^{2} =\sigma_n^{-1}\sum_{k\in I_n^A}\phi_{nk}^{2} +\sigma_n^{-1}\sum_{k\in I_n^A}(2\phi_{nk}\epsilon_{nk}+\epsilon_{nk}^{2}) \\ &=\sigma_n^{-1}\sum_{k\in I_n^A}\phi_{nk}^{2}+o(1) \end{aligned}

because

∣σn−1∑k∈InA(2ϕnkϵnk+ϵnk2)∣≤2σnA+1σn(22πϵn+ϵn2)→0.\left|\sigma_n^{-1}\sum_{k\in I_n^A}(2\phi_{nk}\epsilon_{nk}+\epsilon_{nk}^{2})\right| \le\frac{2\sigma_nA+1}{\sigma_n}\left(\frac{2}{\sqrt{2\pi}}\epsilon_n+\epsilon_n^{2}\right)\to0.

as n→∞n \to\infty for any fixed AA.

Meanwhile, σn−1∑k∈InAϕnk2\sigma_n^{-1}\sum_{k\in I_n^A}\phi_{nk}^2 is a Riemann sum for the continuous function ϕ2(x)\phi^2(x) on the interval [−A,A][-A,A] with mesh size σn−1→0\sigma_n^{-1}\to0 as n→∞n\to\infty. Therefore,

σn∑k∈InApnk2→∫−AAϕ2(x) dx\sigma_n\sum_{k\in I_n^A}p_{nk}^2 \to\int_{-A}^{A}\phi^2(x)\,dx

as n→∞n\to\infty.

To bound the tails, note that max⁡k∈[n]pnk<Cσn\max_{k\in[n]}p_{nk}<\frac{C}{\sigma_n} for some C>0C>0, by the Proposition. Then we apply Chebyshev’s inequality:

σn∑k∉InApnk2≤σn⋅max⁡k∈[n]pnk⋅∑k∉InApnk≤C⋅P{∣Xn−μn∣σn>A}≤CA2.\sigma_n\sum_{k\notin I_n^A}p_{nk}^2\leq\sigma_n\cdot\max_{k\in[n]}p_{nk}\cdot\sum_{k\notin I_n^A}p_{nk}\leq C\cdot\mathbb{P}\left\{\frac{|X_n-\mu_n|}{\sigma_n}>A\right\}\leq\frac{C}{A^2}.

We now obtain lower and upper bounds for the full sum. The lower bound

σn∑k=1npnk2≥σn∑k∈InApnk2=∫−AAϕ2(x) dx+o(1)\sigma_n\sum_{k=1}^{n}p_{nk}^2\geq\sigma_n\sum_{k\in I_n^A}p_{nk}^2=\int_{-A}^{A}\phi^2(x)\,dx+o(1)

implies

lim inf⁡n→∞σn∑k=1npnk2≥∫−AAϕ2(x) dx.\liminf_{n\to\infty}\sigma_n\sum_{k=1}^{n}p_{nk}^2\geq\int_{-A}^{A}\phi^2(x)\,dx.

Similarly, the upper bound

σn∑k=1npnk2=σn∑k∈InApnk2+σn∑k∉InApnk2≤∫−AAϕ2(x) dx+o(1)+CA2\sigma_n\sum_{k=1}^{n}p_{nk}^2=\sigma_n\sum_{k\in I_n^A}p_{nk}^2+\sigma_n\sum_{k\notin I_n^A}p_{nk}^2\leq\int_{-A}^{A}\phi^2(x)\,dx+o(1)+\frac{C}{A^2}

implies

lim sup⁡n→∞σn∑k=1npnk2≤∫−AAϕ2(x) dx+CA2\limsup_{n\to\infty}\sigma_n\sum_{k=1}^{n}p_{nk}^2\leq\int_{-A}^{A}\phi^2(x)\,dx+\frac{C}{A^2}

for every fixed A>0A>0. Letting A→∞A\to\infty and noting that ϕ2(x)\phi^2(x) is finitely integrable over the real line we get:

lim inf⁡n→∞σn∑k=1npnk2=lim sup⁡n→∞σn∑k=1npnk2=lim⁡n→∞σn∑k=1npnk2=∫−∞∞ϕ2(x) dx=12π∫−∞∞e−x2 dx=12π\begin{aligned} \liminf_{n\to\infty}\sigma_n\sum_{k=1}^{n}p_{nk}^2=\limsup_{n\to\infty}\sigma_n\sum_{k=1}^{n}p_{nk}^2=\lim_{n\to\infty}\sigma_n\sum_{k=1}^{n}p_{nk}^2=\int_{-\infty}^{\infty}\phi^2(x)\,dx \\ &=\frac{1}{2\pi}\int_{-\infty}^{\infty}e^{-x^2}\,dx=\frac{1}{2\sqrt{\pi}} \end{aligned}

proving our claim. □

Since σn∼log⁡n\sigma_n\sim\sqrt{\log n} we conclude that

∑k=1npnk2∼12πlog⁡n.\sum_{k=1}^{n}p_{nk}^2\sim\frac{1}{2\sqrt{\pi\log n}}.

A Generalization

For the main result we utilized the fact that σnpnk\sigma_np_{nk} is approximated by ϕnk\phi_{nk} with the uniformly controlled error and that ϕ2(x)∈L1(R)\phi^2(x)\in L^1(\mathbb{R}). But higher powers of ϕ(x)\phi(x) are also integrable. Thus, the proof can be naturally extended for the scenario of multiple permutations. Fix an integer d≥2d\geq2. Given a tuple of dd generalized SS-derangements (p1,p2,…,pd)(p_1,p_2,\ldots,p_d) selected uniformly at random with replacement1 from DnD_n we show that the probability that they all have the same number of cycles satisfies the following asymptotics:

∑k=1npnkd∼1d(2πlog⁡n)d−1.\sum_{k=1}^{n}p_{nk}^d\sim\frac{1}{\sqrt{d(2\pi\log n)^{d-1}}}.

To show this we prove the following theorem.

Theorem 4. Let d≥2d \ge2 be a fixed integer. The equality

lim⁡n→∞1σn∑k=1n(σnpnk)d=∫−∞∞ϕd(x) dx=1d(2π)d−1\lim_{n\to\infty}\frac{1}{\sigma_n}\sum_{k=1}^{n}(\sigma_n p_{nk})^d=\int_{-\infty}^{\infty}\phi^d(x)\,dx=\frac{1}{\sqrt{d(2\pi)^{d-1}}}

holds.

Proof. The argument is analogous to that of the proof for d=2d=2. Using the same notation, we highlight the inequalities that are different. First, note that

σn−1∑k∈InA(σnpnk)d=σn−1∑k∈InAϕnkd+σn−1∑k∈InA∑r=1d(dr)ϕnkd−rεnkr=σn−1∑k∈InAϕnkd+o(1)\begin{aligned} \sigma_n^{-1}\sum_{k\in I_n^A}(\sigma_n p_{nk})^d=\sigma_n^{-1}\sum_{k\in I_n^A}\phi_{nk}^d+\sigma_n^{-1}\sum_{k\in I_n^A}\sum_{r=1}^{d}\binom{d}{r}\phi_{nk}^{d-r}\varepsilon_{nk}^{r} \\ &=\sigma_n^{-1}\sum_{k\in I_n^A}\phi_{nk}^d+o(1) \end{aligned}

because 0≤ϕnk≤10\le\phi_{nk}\le1 implies that, for all integers a≥0a\ge0 and b≥1b\ge1,

ϕnka∣εnkb∣≤εnb⟶0\phi_{nk}^{a}\lvert\varepsilon_{nk}^{b}\rvert\le\varepsilon_n^b\longrightarrow0

uniformly in kk, and ∣InA∣≤2σnA+1\lvert I_n^A\rvert\le2\sigma_n A+1. For the tail estimate we have

σn−1∑k∉InA(σnpnk)d≤(σnmax⁡kpnk)d−1∑k∉InApnk≤Cd−1A2.\sigma_n^{-1}\sum_{k\notin I_n^A}(\sigma_n p_{nk})^d\le(\sigma_n\max_k p_{nk})^{d-1}\sum_{k\notin I_n^A}p_{nk}\le\frac{C^{d-1}}{A^2}.

Hence we obtain identical bounds for lim inf⁡\liminf and lim sup⁡\limsup yielding the limit result that was to be proved. □

As an application of the generalized result we can consider S=∅S=\varnothing. Then having pnk=1n![nk]p_{nk}=\frac{1}{n!}\left[\begin{smallmatrix}n\\k\end{smallmatrix}\right], we immediately obtain the following asymptotics for the sum of dd-th powers of Stirling numbers.

Corollary. As n→∞n\to\infty, the asymptotic equivalence

∑k=1n[nk]d∼(n!)dd(2πlog⁡n)d−1\sum_{k=1}^{n}\left[\begin{smallmatrix}n\\k\end{smallmatrix}\right]^d\sim\frac{(n!)^d}{\sqrt{d(2\pi\log n)^{d-1}}}

holds.

Appendix

We present the variable-exponent theorem of Flajolet and Sedgewick [3 Theorem IX.11, pp. 669–670] and explain how its proof gives the coefficient estimate used in § 1.1. We write A(z,u)A(z,u) and B(z,u)B(z,u) for the analytic functions in that theorem, to distinguish them from the functions A(u)A(u) and B(u)B(u) in the Quasi-powers theorem.

The theorem

Theorem IX.11 (Variable exponent perturbation). Let F(z,u)F(z,u) be analytic at (0,0)(0,0), with nonnegative Taylor coefficients. Suppose that it admits a representation

F(z,u)=A(z,u)+B(z,u)C(z)−α(u)F(z,u)=A(z,u)+B(z,u)C(z)^{-\alpha(u)}

with the following properties, for some r>ρ>0r>\rho>0 and ε>0\varepsilon>0:

  1. The functions AA and BB are analytic on a neighborhood of {(z,u):∣z∣≤r, ∣u−1∣≤ε}\{(z,u):\lvert z\rvert\le r,\ \lvert u-1\rvert\le\varepsilon\}.

  2. The function α\alpha is analytic for ∣u−1∣≤ε\lvert u-1\rvert\le\varepsilon, and α(1)∈R∖{0,−1,−2,…}\alpha(1)\in\mathbb{R}\setminus\{0,-1,-2,\ldots\}.

  3. The function CC is analytic for ∣z∣≤r\lvert z\rvert\le r. Its only zero in this disk is the simple zero ρ\rho, and B(ρ,1)≠0B(\rho,1)\ne0.

  4. The variability condition α′(1)+α′′(1)≠0\alpha'(1)+\alpha''(1)\ne0 holds.

The representation is understood by analytic continuation, with a consistent choice of the power of C(z)C(z). If XnX_n has probability generating function

pn(u)=[zn]F(z,u)[zn]F(z,1),p_n(u)=\frac{[z^n]F(z,u)}{[z^n]F(z,1)},

then, writing μn=EXn\mu_n=\mathop{\mathrm{E}}X_n and σn2=Var⁡(Xn)\sigma_n^2=\operatorname{Var}(X_n), we have

μn=α′(1)log⁡n+O(1),\mu_n=\alpha'(1)\log n+O(1),
σn2=(α′(1)+α′′(1))log⁡n+O(1),\sigma_n^2=(\alpha'(1)+\alpha''(1))\log n+O(1),

and

P{Xn−μnσn≤x}=Φ(x)+O((log⁡n)−1/2)\mathbb{P}\left\{\frac{X_n-\mu_n}{\sigma_n}\le x\right\}=\Phi(x)+O\left((\log n)^{-1/2}\right)

uniformly for x∈Rx\in\mathbb{R}, where Φ\Phi is the standard normal distribution function.

The coefficient estimate in the proof

Put d=−ρC′(ρ)d=-\rho C'(\rho). Since ρ\rho is a simple zero, the local expansions at z=ρz=\rho are

C(z)=d(1−z/ρ)(1+O(1−z/ρ)),B(z,u)=B(ρ,u)+O(1−z/ρ),C(z)=d(1-z/\rho)(1+O(1-z/\rho)),\qquad B(z,u)=B(\rho,u)+O(1-z/\rho),

uniformly for uu near 1. Thus the leading singular term of FF is

B(ρ,u)d−α(u)(1−z/ρ)−α(u).B(\rho,u)d^{-\alpha(u)}(1-z/\rho)^{-\alpha(u)}.

We estimate the coefficients of F(z,u)F(z,u) using

[zn](1−z/ρ)−α(u)=ρ−nΓ(n+α(u))Γ(α(u))Γ(n+1)=ρ−nnα(u)−1Γ(α(u))(1+O(n−1)).[z^n](1-z/\rho)^{-\alpha(u)}=\rho^{-n}\frac{\Gamma(n+\alpha(u))}{\Gamma(\alpha(u))\Gamma(n+1)}=\rho^{-n}\frac{n^{\alpha(u)-1}}{\Gamma(\alpha(u))}(1+O(n^{-1})).

The contribution of A\mathcal{A} is exponentially smaller, while the remaining singular terms contain an additional factor 1−z/ρ1-z/\rho. Uniform singularity analysis, after restricting the neighborhood of u=1u=1 if necessary, therefore gives the estimate established in the proof of Theorem IX.11:

[zn]F(z,u)=c(u)ρ−nnα(u)−1(1+O(n−1/2)),c(u)=B(ρ,u)d−α(u)Γ(α(u)).(3)[z^n]F(z,u)=c(u)\rho^{-n}n^{\alpha(u)-1}(1+O(n^{-1/2})),\qquad c(u)=\frac{B(\rho,u)d^{-\alpha(u)}}{\Gamma(\alpha(u))}. \tag*{(3)}

Here cc is analytic and nonzero on a sufficiently small neighborhood of 1, and the error is uniform there. Dividing (2) by its value at u=1u=1 yields

pn(u)=c(u)c(1)exp⁡((α(u)−α(1))log⁡n)(1+O(n−1/2)).p_n(u)=\frac{c(u)}{c(1)}\exp((\alpha(u)-\alpha(1))\log n)(1+O(n^{-1/2})).

This is the quasi-powers approximation from which the Gaussian conclusion follows. The analytic mean and variance of its factor exp⁡(α(u)−α(1))\exp(\alpha(u)-\alpha(1)) are α′(1)\alpha'(1) and α′(1)+α′′(1)\alpha'(1)+\alpha''(1), respectively, which explains the leading terms in the theorem’s mean and variance formulas. In our paper, it is the intermediate coefficient estimate (2) that is used first.

Application to generalized derangements

Set

P(z)=∑j∈Szjj,s=P(1)=∑j∈S1j,H(z,u)=e−uP(z).P(z)=\sum_{j\in S}\frac{z^j}{j},\qquad s=P(1)=\sum_{j\in S}\frac{1}{j},\qquad H(z,u)=e^{-uP(z)}.

Our generating function is F(z,u)=H(z,u)(1−z)−uF(z,u)=H(z,u)(1-z)^{-u}, so the theorem applies with

A(z,u)=0,B(z,u)=H(z,u),C(z)=1−z,α(u)=u,ρ=1.A(z,u)=0,\qquad B(z,u)=H(z,u),\qquad C(z)=1-z,\qquad\alpha(u)=u,\qquad\rho=1.

Indeed, PP is a polynomial because SS is finite, so HH is entire. The function CC has the unique simple zero 1, while H(1,1)=e−s>0H(1,1)=e^{-s}>0, and α(1)=1\alpha(1)=1 and α′(1)+α′′(1)=1\alpha'(1)+\alpha''(1)=1. The nonnegativity of the coefficients of FF follows from its counting interpretation, or directly from

F(z,u)=exp⁡(u∑j≥1j∉Szjj).F(z,u)=\exp\left(u\sum_{\substack{j\geq1\\j\notin S}}\frac{z^j}{j}\right).

Also d=−ρC′(ρ)=1d=-\rho C'(\rho)=1, so c(u)=e−us/Γ(u)c(u)=e^{-us}/\Gamma(u). Consequently, (2) becomes

fn(u)=[zn]F(z,u)=e−usΓ(u)nu−1(1+O(n−1/2)).(4)f_n(u)=[z^n]F(z,u)=\frac{e^{-us}}{\Gamma(u)}n^{u-1}(1+O(n^{-1/2})). \tag*{(4)}

This is precisely the coefficient estimate used in (1).

For completeness, the uniformity on the particular disk Ω={u:∣u−1∣≤1/3}\Omega=\{u:|u-1|\leq1/3\} used there can be seen directly from the same argument. Since HH is entire, write

H(z,u)=H(1,u)+(1−z)J(z,u),H(z,u)=H(1,u)+(1-z)J(z,u),

where the apparent singularity of JJ at z=1z=1 is removable. Thus JJ is entire, and

F(z,u)=e−us(1−z)−u+(1−z)1−uJ(z,u).F(z,u)=e^{-us}(1-z)^{-u}+(1-z)^{1-u}J(z,u).

Choose the branch of log⁡(1−z)\log(1-z) on C∖[1,∞)\mathbb{C}\setminus[1,\infty). The terms are analytic in a common Δ\Delta-domain at 1. The uniform transfer argument used in the proof of Theorem IX.11 gives

[zn]((1−z)1−uJ(z,u))=O(nu−2),u∈Ω.[z^n]\left((1-z)^{1-u}J(z,u)\right)=O(n^{u-2}),\qquad u\in\Omega.

The constants can be chosen uniformly because JJ is bounded on the relevant compact sets and both the real and imaginary parts of uu range over bounded intervals. For the leading term, uniformly on Ω\Omega,

[zn](1−z)−u=Γ(n+u)Γ(u)Γ(n+1)=nu−1Γ(u)(1+O(n−1)).[z^n](1-z)^{-u}=\frac{\Gamma(n+u)}{\Gamma(u)\Gamma(n+1)}=\frac{n^{u-1}}{\Gamma(u)}(1+O(n^{-1})).

Since e−us/Γ(u)e^{-us}/\Gamma(u) is bounded away from zero on Ω\Omega, these estimates give a uniform relative error O(n−1)O(n^{-1}), which in particular implies the O(n−1/2)O(n^{-1/2}) error retained in (3).

Finally, setting u=1u=1 in (3) gives

fn(1)=e−s(1+O(n−1/2))⟶e−s>0,f_n(1)=e^{-s}(1+O(n^{-1/2}))\longrightarrow e^{-s}>0,

because Γ(1)=1\Gamma(1)=1 and n1−1=1n^{1-1}=1. Dividing by this normalizing factor, uniformly for u∈Ωu\in\Omega, we obtain

pn(u)=fn(u)fn(1)=e(1−u)sΓ(u)nu−1(1+O(n−1/2)).p_n(u)=\frac{f_n(u)}{f_n(1)}=\frac{e^{(1-u)s}}{\Gamma(u)}n^{u-1}(1+O(n^{-1/2})).

Writing nu−1=(eu−1)log⁡nn^{u-1}=(e^{u-1})^{\log n} gives exactly the quasi-powers parameters used in the paper:

A(u)=e(1−u)sΓ(u),B(u)=eu−1,βn=log⁡n,κn=n.A(u)=\frac{e^{(1-u)s}}{\Gamma(u)},\qquad B(u)=e^{u-1},\qquad\beta_n=\log n,\qquad\kappa_n=\sqrt n.

In particular, A(1)=B(1)=1A(1)=B(1)=1 and B′′(1)+B′(1)−(B′(1))2=1≠0B''(1)+B'(1)-(B'(1))^2=1\ne0, as required.

Sampling without replacement

The same asymptotic result holds when (p1,p2,…,pd)(p_1,p_2,\ldots,p_d) is sampled without replacement. Indeed, sampling without replacement is equivalent to sampling with replacement conditioned on the event that the pip_i are all distinct. Define the events Qij={pi≠pj}Q_{ij}=\{p_i\ne p_j\} for 1≤i<j≤d1\le i<j\le d and let Q=⋂i<jQijQ=\bigcap_{i<j}Q_{ij}. Let C={#cycles(p1)=#cycles(p2)=⋯=#cycles(pd)}C=\{\#\mathrm{cycles}(p_1)=\#\mathrm{cycles}(p_2)=\cdots=\#\mathrm{cycles}(p_d)\}. By the law of total probability,

P(C)=P(C∣Q)P(Q)+P(C∣Qc)P(Qc)=P(C∣Q)(1−P(Qc))+P(C∣Qc)P(Qc).\mathbb{P}(C)=\mathbb{P}(C\mid Q)\mathbb{P}(Q)+\mathbb{P}(C\mid Q^c)\mathbb{P}(Q^c)=\mathbb{P}(C\mid Q)(1-\mathbb{P}(Q^c))+\mathbb{P}(C\mid Q^c)\mathbb{P}(Q^c).

Rearranging terms, we get

∣P(C)−P(C∣Q)∣=P(Qc)∣P(C∣Qc)−P(C∣Q)∣≤P(Qc).(5)\left|\mathbb{P}(C)-\mathbb{P}(C\mid Q)\right|=\mathbb{P}(Q^c)\left|\mathbb{P}(C\mid Q^c)-\mathbb{P}(C\mid Q)\right|\le\mathbb{P}(Q^c). \tag*{(5)}

We now show that P(Qc)\mathbb{P}(Q^c) is asymptotically negligible relative to P(C)\mathbb{P}(C). By the union bound,

P(Qc)=P(⋃i<jQijc)≤∑1≤i<j≤dP(Qijc)=(d2)1Dn.\mathbb{P}(Q^c)=\mathbb{P}\left(\bigcup_{i<j}Q_{ij}^c\right)\le\sum_{1\le i<j\le d}\mathbb{P}(Q_{ij}^c)=\binom{d}{2}\frac{1}{D_n}.

Recall that Dn/n!=[zn]F(z,1)=[zn](exp⁡(−P(z))1−z)D_n/n!=[z^n]F(z,1)=[z^n]\left(\frac{\exp(-P(z))}{1-z}\right) and that F(z,1)F(z,1) has a unique singularity, a simple pole at z=1z=1. Applying singularity analysis, we conclude that Dn/n!→exp⁡(−P(1))=e−sD_n/n!\to\exp(-P(1))=e^{-s} as n→∞n\to\infty. Dividing both sides of (5) by P(C)\mathbb{P}(C), we obtain

∣1−P(C∣Q)P(C)∣≤P(Qc)P(C)=O((log⁡n)(d−1)/2n!)→0\left|1-\frac{\mathbb{P}(C\mid Q)}{\mathbb{P}(C)}\right|\le\frac{\mathbb{P}(Q^c)}{\mathbb{P}(C)}=O\left(\frac{(\log n)^{(d-1)/2}}{n!}\right)\to0

as n→∞n\to\infty. Thus, P(C∣Q)∼P(C)\mathbb{P}(C\mid Q)\sim\mathbb{P}(C).

References

  1. [1]M. Bóna. A Walk Through Combinatorics: An Introduction to Enumeration and Graph Theory. Fifth edition. World Scientific Publishing Company, 2023. ISBN: 9789811277856.
  2. [2]Miklós Bóna and Arnold Knopfmacher. “On the probability that certain compositions have the same number of parts”. In: Ann. Comb. 14.3 (2010), pp. 291–306. ISSN: 0218-0006,0219-3094. DOI: 10.1007/s00026-010-0060-7. URL: https://doi.org/10.1007/s00026-010-0060-7.
  3. [3]Philippe Flajolet and Robert Sedgewick. Analytic Combinatorics. Cambridge University Press, 2009.
  4. [4]V. Goncharoff. “Du domaine de l’analyse combinatoire”. In: Bull. Acad. Sci. URSS. Sér. Math. [Izvestia Akad. Nauk SSSR] 8 (1944), pp. 3–48.
  5. [5]Herbert S. Wilf. The variance of the Stirling cycle numbers. 2005. arXiv: math/0511428 [math.CO]. URL: https://arxiv.org/abs/math/0511428.

Paper details

vlnc:W_fd5ggmcm
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents