betaFeedback

WorksMathematics

Square products of factorials and a conjecture of Erdős and Graham

Abstract

For n≥2n\ge2 let F(n)F(n) be the least k≥2k\ge2 such that n!n! is the largest factor in a product of kk distinct factorials that is a perfect square, and let Dk(X)D_k(X) be the number of n≤Xn\le X with F(n)=kF(n)=k. Erdos and Graham asked for the order of growth of Dk(X)D_k(X) for 3≤k≤63\le k\le6, and conjectured that D6(X)≫XD_6(X)\gg X. We prove that D3(X)=κ3X+Oε(X2/5+ε)D_3(X)=κ_3\sqrt X+O_\varepsilon(X^{2/5+\varepsilon}) with an explicit constant κ3=2.7097…κ_3=2.7097\ldots, and that D5(X)≍D6(X)≍XD_5(X)\asymp D_6(X)\asymp X. Together with classical facts, this determines the order of growth of Dk(X)D_k(X) for every kk. The exponent 2/52/5 comes from balancing a uniform bound for Pell equations against Gallagher's larger sieve, with residue restrictions supplied by the Weil bound. For five and six factors we restrict to integers with a prime factor exceeding X1−αX^{1-α}, where α>0α>0 is small and fixed. We exclude shorter representations by combining an equidistribution estimate for primes of Matomaki, Radziwill, Shao, Tao and Teravainen with the large sieve. In an appendix we use a zero-sum theorem for finite abelian groups to construct, for every m≥2m\ge2, perfect mm-th powers that are products of a bounded number of distinct factorials with arguments given by fixed affine functions.

2020 Mathematics Subject Classification. Primary 11D85; Secondary 11N25, 11N36, 11L20, 11B75.

Introduction

For an integer n≥2n \ge2, let F(n)F(n) be the least k≥2k \ge2 for which there are integers

1≤a1<a2<⋯<ak=nwitha1!a2!⋯ak!=□,1 \le a_1 < a_2 < \cdots< a_k = n \qquad\text{with} \qquad a_1!a_2!\cdots a_k! = \square,

where □\square denotes the square of an integer; put F(n)=∞F(n) = \infty if there is no such kk. (Allowing a1=1a_1 = 1 does not change F(n)F(n).) For k≥2k \ge2 let

Dk={n≥2:F(n)=k},Dk(X)=#(Dk∩[1,X]).D_k = \{n \ge2 : F(n) = k\}, \qquad D_k(X) = \#(D_k \cap[1,X]).

These sets were introduced by Erdős and Graham [3]. Primes admit no representation at all, D2D_2 consists of the squares n≥4n \ge4, and every composite nn has F(n)≤6F(n) \le6, so Dk=∅D_k = \varnothing for k≥7k \ge7. Erdős and Graham showed that D3(X)=o(X)D_3(X) = o(X), observed that D4(X)≫XD_4(X) \gg X, and wrote [3 p. 354]: “We are reasonably certain that D6(n)>cn.”ThequestionofthegrowthofD_6(n) > cn.” The question of the growth ofD_k(X)for$3≤k≤6for \$3 \le k \le6 is Problem 374 in Bloom’s list of Erdős problems [2].

For three factorials, Luca, Saradha and Shorey [8, Theorem 1] proved

D3(X)≪Xexp⁡(−c0(log⁡X)1/4(log⁡log⁡X)3/4)D_3(X) \ll X\exp\left(-c_0(\log X)^{1/4}(\log\log X)^{3/4}\right)

for some c0>0c_0>0, and Tao [14, Theorem 1.10] recently showed that the equation a1!a2!a3!=□a_1!a_2!a_3!=\square has X1/2+o(1)X^{1/2+o(1)} solutions with 1≤a1<a2<a3≤X1\leq a_1<a_2<a_3\leq X. The solutions with a2=a3−1a_2=a_3-1 are easy to count: n!(n−1)!c!=□n!(n-1)!c!=\square holds precisely when nn and c!c! have the same squarefree part. Write s(v)s(v) for the squarefree part of vv, and put

S={s(c!):c≥1},κ3=∑a∈S∖{1}1a=2.709751…,(1)\mathcal{S}=\{s(c!):c\geq1\},\qquad\kappa_3=\sum_{a\in\mathcal{S}\setminus\{1\}}\frac{1}{\sqrt{a}}=2.709751\ldots, \tag*{(1)}

each element of S\mathcal{S} being counted once. The series converges; see § 3.2. Our first result shows that these consecutive representations account for the main term of D3(X)D_3(X).

Theorem 1.1. For every ε>0\varepsilon>0,

D3(X)=κ3X+Oε(X2/5+ε).D_3(X)=\kappa_3\sqrt{X}+O_\varepsilon\left(X^{2/5+\varepsilon}\right).

In the notation of [14 Section 1.3, (1.17)] we have κ3=c31−1\kappa_3=c_3^1-1; the subtraction of 1 accounts for the squares, which lie in D2D_2. The new estimate is Theorem 3.1: only Oε(X2/5+ε)O_\varepsilon(X^{2/5+\varepsilon}) integers n≤Xn\leq X admit a representation n!(n−ℓ)!c!=□n!(n-\ell)!c!=\square with ℓ≥2\ell\geq2.

Our second result confirms the conjecture of Erdős and Graham, together with its analogue for five factorials.

Theorem 1.2. There is a constant c∗>0c_*>0 such that, for k∈{5,6}k\in\{5,6\} and all sufficiently large XX, at least c∗Xc_*X squarefree integers n∈[X/2,X]n\in[X/2,X] satisfy F(n)=kF(n)=k. For k=5k=5 this holds separately for even and for odd nn.

Combining these results with the classical facts above gives the order of growth of every DkD_k.

Corollary 1.3. As X→∞X\to\infty,

D2(X)=⌊X⌋−1,D3(X)∼κ3X,D4(X)≍D5(X)≍D6(X)≍X.\begin{aligned} D_2(X)&=\lfloor\sqrt{X}\rfloor-1,\qquad D_3(X)\sim\kappa_3\sqrt{X},\\ D_4(X)&\asymp D_5(X)\asymp D_6(X)\asymp X. \end{aligned}

For k≥7k\geq7, we have Dk(X)=0D_k(X)=0.

Proof. The statements for k=2k=2 and k≥7k\geq7 were recalled above; see also § 3.2. If n=v2un=v^2u with v≥2v\geq2 and u≥2u\geq2, then

n!(n−1)!u!(u−1)!=(vu(n−1)!(u−1)!)2,(2)n!(n-1)!u!(u-1)!=(vu(n-1)!(u-1)!)^2, \tag*{(2)}

with four distinct arguments, so F(n)≤4F(n)\leq4. By Theorem 1.1, all but O(X)O(\sqrt{X}) nonsquarefree n≤Xn\leq X therefore lie in D4D_4, which gives D4(X)≥(1−6/π2+o(1))XD_4(X)\geq(1-6/\pi^2+o(1))X. The remaining assertions are Theorems 1.1 and 1.2. □

Corollary 1.3 settles the orders of growth asked for in Problem 374. Whether Dk(X)/XD_k(X)/X tends to a limit for k=4,5,6k=4,5,6 remains open; see § 8.

Outline of the proofs

Section 3 is independent of the rest of the paper; the proof of Theorem 1.2 uses only the bound (10) that O(X)O(\sqrt{X}) integers have a three-factor representation.

Three factorials. Write a representation as n!(n−ℓ)!c!=□n!(n-\ell)!c!=\square with n>n−ℓ>c≥1n>n-\ell>c\ge1. Removing the square ((n−ℓ)!)2((n-\ell)!)^2 leaves

c!n(n−1)⋯(n−ℓ+1)=□.c!n(n-1)\cdots(n-\ell+1)=\square.

For ℓ=1\ell=1 this is the condition s(n)=s(c!)s(n)=s(c!), which produces the main term. For ℓ≥2\ell\ge2, Tao [14] showed that ℓ\ell is smaller than any fixed positive power of nn, and then so is cc. If s(c!)s(c!) is small, two terms of the block n,n−1,…,n−ℓ+1n,n-1,\ldots,n-\ell+1 have squarefree parts with small product, and a uniform bound for Pell equations applies. If s(c!)s(c!) is large, its prime factors exceeding ℓ\ell restrict nn to few residue classes; in addition, at larger primes qq the product must be a square modulo qq, which by the Weil bound excludes about half of the residues. Gallagher’s larger sieve combines these two kinds of information. Balancing the two cases gives the exponent 2/52/5.

Five and six factorials. We consider n=apn=ap where p>X1−αp>X^{1-\alpha} is prime and a<Xαa<X^\alpha, for a small fixed α>0\alpha>0. The identity

n!(n−1)!a!(a−1)!p!(p−1)!=(n(n−1)!(a−1)!(p−1)!)2(3)n!(n-1)!a!(a-1)!p!(p-1)! = \bigl(n(n-1)!(a-1)!(p-1)!\bigr)^2 \tag*{(3)}

of Erdős and Graham shows that F(n)≤6F(n)\le6, so we must rule out shorter representations for many such nn. By (2), nn must be squarefree. Pairing the four largest factorials in a representation with arguments n>n−ℓ1>m>m−ℓ2>cn>n-\ell_1>m>m-\ell_2>c leads to

n(n−1)⋯(n−ℓ1+1)⋅m(m−1)⋯(m−ℓ2+1)⋅c!=□.n(n-1)\cdots(n-\ell_1+1)\cdot m(m-1)\cdots(m-\ell_2+1)\cdot c!=\square.

The preliminary bounds put both block lengths and cc below pp. Since p>np>\sqrt{n} divides nn exactly once, it must then divide a term m−jm-j of the second block, so m−j=(t/a)nm-j=(t/a)n for some 1≤t<a1\le t<a. We use this relation in four steps.

  1. Both blocks are shorter than XεX^\varepsilon (Lemma 5.1). Otherwise we find a prime qq that divides exactly one term of one block, to the first power, which is incompatible with the square condition. We construct a smooth weight that separates the two blocks. The relation m−j=(t/a)nm-j=(t/a)n gives this weight a positive average over each period of length at most aa. After retaining complete periods on which square divisibility is excluded, an equidistribution theorem of Matomäki, Radziwiłł, Shao, Tao and Teräväinen [9] gives the required prime.

  1. If s(n−1)s(n-1) has a prime factor larger than X3εX^{3\varepsilon}, the first block has length one (Lemma 4.3).

  1. If the first block has length one, the second block has length at least two for O(X1/2+5ε(log⁡X)2)O(X^{1/2+5\varepsilon}(\log X)^2) values of nn (Lemma 6.1). This follows from the Weil bound and the large sieve.

  1. If both blocks have length one, the square condition reduces to atc!=□atc!=\square with t<at<a. For five factors this is excluded by a condition on aa alone, and for four factors it is impossible for squarefree nn.

Finally we show that the integers n=apn=ap satisfying all these conditions have positive lower density (Proposition 7.3); for them (3) shows that F(n)=6F(n)=6. Choosing instead aa with prescribed divisibility properties and using identities due to Straus gives F(n)=5F(n)=5.

Perfect powers. At the end of [3], Erdős and Graham remark that for every mm there are infinitely many mm-th powers that are products of a bounded number of factorials. In Appendix § 9 we give a construction with distinct factorials whose arguments are fixed affine functions of a parameter, using a zero-sum theorem for abelian groups.

Notation and tools

For a positive integer vv, s(v)s(v) denotes its squarefree part, so that v/s(v)v/s(v) is a square, and P(v)P(v) its largest prime factor, with P(1)=1P(1)=1. We write τ(v)\tau(v) for the number of divisors of vv. For ℓ≥1\ell\ge1 we use the falling factorial

(x)ℓ=x(x−1)⋯(x−ℓ+1).(x)_{\ell}=x(x-1)\cdots(x-\ell+1).

As usual, π(x)\pi(x) is the number of primes up to xx and ϑ(x)=∑p≤xlog⁡p\vartheta(x)=\sum_{p\le x}\log p. The letters pp and qq always denote primes. All logarithms are natural, and implied constants are absolute unless their dependence is indicated.

Primes

Besides the prime number theorem and the estimate ∑p≤y(log⁡p)/p=log⁡y+O(1)\sum_{p\le y}(\log p)/p=\log y+O(1), we use Huxley’s theorem on primes in short intervals [6] in the following weak form: uniformly for x3/5≤y≤x/2x^{3/5}\le y\le x/2,

ϑ(x)−ϑ(x−y)∼y(x→∞).(4)\vartheta(x)-\vartheta(x-y)\sim y \qquad(x\to\infty). \tag*{(4)}

Pell equations

We use the following uniform bound, in the form stated by Tao [14 Lemma 2.10].

Lemma 2.1. Fix K>0K>0. For positive integers e1,e2≤XKe_1,e_2\le X^K and a nonzero integer Δ\Delta with ∣Δ∣≤XK|\Delta|\le X^K, the equation

e1u2−e2v2=Δe_1u^2-e_2v^2=\Delta

has Xo(1)X^{o(1)} solutions in positive integers u≤Xu\le X and vv, uniformly in e1,e2,Δe_1,e_2,\Delta.

Sieves

We use the large sieve in the following form; see [14 Corollary 2.8]. Let P\mathcal{P} be a nonempty set of primes q≤Xq\le\sqrt{X}, and suppose that E⊆[1,X]∩ZE\subseteq[1,X]\cap\mathbb{Z} lies in at most ρ(q)\rho(q) residue classes modulo qq for each q∈Pq\in\mathcal{P}, where 1≤ρ(q)<q1\le\rho(q)<q. Then

∣E∣≪X(∑q∈Pq−ρ(q)ρ(q))−1.(5)|E|\ll X\left(\sum_{q\in\mathcal{P}}\frac{q-\rho(q)}{\rho(q)}\right)^{-1}. \tag*{(5)}

We also use Gallagher’s larger sieve [5] in § 3.

Lemma 2.2 (Gallagher). Let A⊆[1,X]∩ZA\subseteq[1,X]\cap\mathbb{Z} with X>1X>1. Let P\mathcal{P} be a finite set of primes, and suppose that AA lies in at most ρ(p)\rho(p) residue classes modulo pp for each p∈Pp\in\mathcal{P}, where 1≤ρ(p)≤p1\le\rho(p)\le p. If

Δ=∑p∈Plog⁡pρ(p)−log⁡X>0,\Delta=\sum_{p\in\mathcal{P}}\frac{\log p}{\rho(p)}-\log X>0,

then

∣A∣≤1Δ(∑p∈Plog⁡p−log⁡X).|A|\le\frac{1}{\Delta}\left(\sum_{p\in\mathcal{P}}\log p-\log X\right).

Proof. We may assume N=∣A∣≥1N = |A| \ge1. For p∈Pp \in\mathcal{P} let Np,rN_{p,r} be the number of elements of AA in the class rr modulo pp. Since ∑rNp,r=N\sum_r N_{p,r} = N and at most ρ(p)\rho(p) of these counts are nonzero, Cauchy–Schwarz gives ∑rNp,r2≥N2/ρ(p)\sum_r N_{p,r}^{2} \ge N^{2}/\rho(p). The quantity ∑rNp,r2−N\sum_r N_{p,r}^{2} - N counts ordered pairs of distinct elements of AA whose difference is divisible by pp. For each such pair the primes p∈Pp \in\mathcal{P} dividing the difference have ∑log⁡p≤log⁡X\sum\log p \le\log X. Hence

∑p∈Plog⁡p(N2ρ(p)−N)≤N(N−1)log⁡X,\sum_{p\in\mathcal{P}} \log p\left(\frac{N^2}{\rho(p)}-N\right)\le N(N-1)\log X,

and dividing by NN gives the lemma.

Character sums

For an odd prime qq let χq\chi_q be the quadratic character modulo qq: it is 0 at zero, 1 at a nonzero square, and −1-1 at a nonsquare. We use the Weil bound in the following form [7 Theorem 5.41]: if f=λ∏i=1ℓ(z−ri)∈Fq[z]f=\lambda\prod_{i=1}^{\ell}(z-r_i)\in\mathbb{F}_q[z] with λ≠0\lambda\ne0 and distinct r1,…,rℓ∈Fqr_1,\ldots,r_\ell\in\mathbb{F}_q, then

∣∑z∈Fqχq(f(z))∣≤(ℓ−1)q.(6)\left|\sum_{z\in\mathbb{F}_q}\chi_q(f(z))\right|\le(\ell-1)\sqrt{q}. \tag*{(6)}

Three factorials

Representations with nonconsecutive largest arguments

Let

E(X)=#{n≤X:n!(n−ℓ)!c!=□ for some ℓ≥2 and 1≤c<n−ℓ}.E(X)=\#\{n\le X:n!(n-\ell)!c!=\square\text{ for some }\ell\ge2\text{ and }1\le c<n-\ell\}.

Theorem 3.1. For every ε>0\varepsilon>0 we have E(X)≪εX2/5+εE(X)\ll_\varepsilon X^{2/5+\varepsilon}.

Removing the square ((n−ℓ)!)2((n-\ell)!)^2, a representation counted by E(X)E(X) satisfies

c!(n)ℓ=□.(7)c!(n)_\ell=\square. \tag*{(7)}

In Tao’s terminology [14 Definition 1.2(iii)], this says that {N+1,…,N+H}\{N+1,\ldots,N+H\} with N=n−ℓN=n-\ell and H=ℓH=\ell is an interval of type F3F_3, the relevant factorial being c!c! with 1≤c<N1\le c<N. By [14 Lemma 4.2], every interval of type F3F_3 satisfies

H≤exp⁡((log⁡N)2/3+o(1))(N→∞),H\le\exp((\log N)^{2/3+o(1)})\qquad(N\to\infty),

and by [14 Lemma 4.1] we have H<NH<N, so N>n/2N>n/2. The bound on the smallest argument is elementary, as in Lemma 4.1 below: every prime in (c/2,c](c/2,c] occurs exactly once in c!c!, and hence divides (n)ℓ(n)_\ell, so that ϑ(c)−ϑ(c/2)≤ℓlog⁡n\vartheta(c)-\vartheta(c/2)\le\ell\log n. Consequently

ℓ≤exp⁡((log⁡n)2/3+o(1)),c≪ℓlog⁡n.(8)\ell\le\exp((\log n)^{2/3+o(1)}),\qquad c\ll\ell\log n. \tag*{(8)}

In particular, for every fixed η>0\eta>0 and every sufficiently large XX, all such representations with n≤Xn\le X satisfy ℓ,c≤Xη\ell,c\le X^\eta; the finitely many exceptions with small nn do not affect Theorem 3.1.

Proof of Theorem 3.1. Fix 0<η<1/1000<\eta<1/100 and let XX be large, so that ℓ,c≤Xη\ell,c\le X^\eta in every representation under consideration. Case 1: s(c!)≤Xℓ/5s(c!) \le X^{\ell/5}. Write n−i=diui2n-i=d_i u_i^2 with di=s(n−i)d_i=s(n-i) for 0≤i<ℓ0\le i<\ell. A prime p>ℓp>\ell divides at most one term of the block, so by (7) it divides one of the did_i if and only if it divides s(c!)s(c!). A prime p≤ℓp\le\ell divides at most ℓ/p+1\ell/p+1 terms. Hence

log⁡∏i=0ℓ−1di≤log⁡s(c!)+∑p≤ℓ(ℓp+1)log⁡p=log⁡s(c!)+ℓlog⁡ℓ+O(ℓ).\log\prod_{i=0}^{\ell-1}d_i\le\log s(c!)+\sum_{p\le\ell}\left(\frac{\ell}{p}+1\right)\log p=\log s(c!)+\ell\log\ell+O(\ell).

Choose i<ji<j so that di,djd_i,d_j are the two smallest squarefree parts. Then

didj≤(∏k=0ℓ−1dk)2/ℓ≪ℓ2s(c!)2/ℓ≪X2/5+2η.d_i d_j\le\left(\prod_{k=0}^{\ell-1}d_k\right)^{2/\ell}\ll\ell^2s(c!)^{2/\ell}\ll X^{2/5+2\eta}.

Subtracting the corresponding terms gives

diui2−djuj2=j−i≠0.d_i u_i^2-d_j u_j^2=j-i\ne0.

We count these Pell equations without fixing cc or ℓ\ell. There are X2/5+2η+o(1)X^{2/5+2\eta+o(1)} pairs of positive integers (di,dj)(d_i,d_j) with product O(X2/5+2η)O(X^{2/5+2\eta}), and at most XηX^\eta values of j−ij-i. For each choice, Lemma 2.1 gives Xo(1)X^{o(1)} solutions (ui,uj)(u_i,u_j), and n=diui2+in=d_i u_i^2+i is then determined up to at most XηX^\eta choices of ii. Case 1 therefore contributes at most X2/5+4η+o(1)X^{2/5+4\eta+o(1)} values of nn.

Case 2: s(c!)>Xℓ/5s(c!)>X^{\ell/5}. Fix cc and ℓ\ell, and let Ac,ℓA_{c,\ell} be the set of possible integers n≤Xn\le X for this pair. We apply Lemma 2.2 with two sets of primes.

First let P0P_0 be the set of primes p>ℓp>\ell dividing s(c!)s(c!). Such a prime occurs to an odd power in c!c!, so it must divide a term of the block; since p>ℓp>\ell, this confines nn to the ℓ\ell classes 0,1,…,ℓ−10,1,\ldots,\ell-1 modulo pp. These primes contribute

∑p∈P0log⁡pℓ≥log⁡s(c!)−ϑ(ℓ)ℓ≥log⁡X5−O(1).\sum_{p\in P_0}\frac{\log p}{\ell}\ge\frac{\log s(c!)-\vartheta(\ell)}{\ell}\ge\frac{\log X}{5}-O(1).

Next let P1P_1 be the set of primes qq with Y<q≤QY<q\le Q, where

Y=X3η,Q=X2/5+4η.Y=X^{3\eta},\qquad Q=X^{2/5+4\eta}.

These primes exceed cc and ℓ\ell; in particular P1P_1 is disjoint from P0⊆[1,c]P_0\subseteq[1,c]. For q∈P1q\in P_1, every n∈Ac,ℓn\in A_{c,\ell} makes f(n)f(n) a square modulo qq, where f(z)=c!(z)ℓf(z)=c!(z)_\ell has the ℓ\ell distinct roots 0,1,…,ℓ−10,1,\ldots,\ell-1 and a nonzero leading coefficient modulo qq. The number of residues zz for which f(z)f(z) is a square or zero is

ρ(q)=12(q+ℓ+∑z∈Fqχq(f(z)))≤q2+ℓ+(ℓ−1)q2\rho(q)=\frac{1}{2}\left(q+\ell+\sum_{z\in\mathbb{F}_q}\chi_q(f(z))\right)\le\frac{q}{2}+\frac{\ell+(\ell-1)\sqrt q}{2}

by (6). As ℓ/q≤X−η/2\ell/\sqrt q\le X^{-\eta/2}, this gives 1/ρ(q)≥(2/q)(1−O(X−η/2))1/\rho(q)\ge(2/q)(1-O(X^{-\eta/2})), and so

∑q∈P1log⁡qρ(q)≥(2−o(1))log⁡QY+O(1)=(45+2η−o(1))log⁡X.\sum_{q\in P_1}\frac{\log q}{\rho(q)}\ge(2-o(1))\log\frac{Q}{Y}+O(1)=\left(\frac45+2\eta-o(1)\right)\log X.

Adding the two contributions and subtracting log⁡X\log X, the denominator Δ\Delta in Lemma 2.2 is at least ηlog⁡X\eta\log X for large XX. The numerator is at most ϑ(c)+ϑ(Q)≪Q\vartheta(c)+\vartheta(Q)\ll Q. Hence

∣Ac,ℓ∣≪ηX2/5+4ηlog⁡X.|A_{c,\ell}|\ll_\eta\frac{X^{2/5+4\eta}}{\log X}.

Summing over the at most X2ηX^{2\eta} pairs (c,ℓ)(c,\ell), Case 2 contributes Oη(X2/5+6η)O_\eta(X^{2/5+6\eta}) values of nn.

Combining the two cases and taking η\eta small in terms of ε\varepsilon proves the theorem.

Remark 3.2. The exponent 2/52/5 comes from balancing the two cases. If the cases are separated at s(c!)=Xσℓs(c!) = X^{\sigma\ell}, the first contributes X2σ+o(1)X^{2\sigma+o(1)}, while in the second the primes dividing s(c!)s(c!) supply σlog⁡X\sigma\log X of the sieve denominator and the quadratic residue conditions must supply the rest, which leads to the bound X(1−σ)/2+o(1)X^{(1-\sigma)/2+o(1)}. The two exponents agree when σ=1/5\sigma= 1/5. Without the first set of primes the larger sieve alone would give only X1/2+o(1)X^{1/2+o(1)}.

The main term

Proof of Theorem 1.1. For a∈Sa \in\mathcal{S} let c(a)c(a) be the least c≥1c \ge1 with s(c!)=as(c!) = a. A consecutive representation n!(n−1)!c!=□n!(n-1)!c! = \square exists if and only if n=au2n = au^2 for some a∈Sa \in\mathcal{S} with c(a)<n−1c(a) < n-1. The families {au2}\{au^2\} are disjoint, since a=s(n)a = s(n).

Every prime in (c/2,c](c/2,c] divides s(c!)s(c!), so s(c!)≥eδcs(c!) \ge e^{\delta c} for some δ>0\delta> 0 and all large cc. Hence

#{a∈S:a≤Z}≪log⁡(2Z),∑a∈Sa−1/2<∞.(9)\#\{a \in\mathcal{S}: a \le Z\} \ll\log(2Z), \qquad\sum_{a \in\mathcal{S}} a^{-1/2} < \infty. \tag*{(9)}

The same estimate gives c(a)≪log⁡(2a)c(a) \ll\log(2a), so c(a)<a−1c(a) < a-1 for all but finitely many aa, and the condition c(a)<n−1c(a) < n-1 excludes only O(1)O(1) integers nn. The number of n≤Xn \le X of this form is therefore

∑a∈Sa≤X⌊X/a⌋+O(1)=(κ3+1)X+O(log⁡X),\sum_{\substack{a \in\mathcal{S}\\a\le X}} \left\lfloor\sqrt{X/a} \right\rfloor+ O(1) = (\kappa_3+1)\sqrt{X} + O(\log X),

since the rounding errors are O(log⁡X)O(\log X) by (9), and so is the tail:

X∑a∈Sa>Xa−1/2≪∑j≥02−j/2log⁡(2j+1X)≪log⁡X.\sqrt{X}\sum_{\substack{a \in\mathcal{S}\\a>X}} a^{-1/2} \ll\sum_{j \ge0}2^{-j/2}\log(2^{j+1}X) \ll\log X.

Every other nn admitting a three-factor representation is counted by E(X)E(X). By Theorem 3.1, the number of n≤Xn \le X admitting a three-factor representation is therefore

(κ3+1)X+Oε(X2/5+ε).(10)(\kappa_3+1)\sqrt{X} + O_{\varepsilon}(X^{2/5+\varepsilon}). \tag*{(10)}

It remains to remove the nn with F(n)=2F(n)=2. By the theorem of Erdős and Selfridge [4 Theorem 1], a product of two or more consecutive positive integers is never a perfect power. Hence n!r!=□n!r! = \square with r<nr<n forces r=n−1r=n-1 and n=□n=\square; that is, D2\mathcal{D}_2 consists of the squares n≥4n \ge4. These squares were included in (10) (take c=1c=1), and there are X+O(1)\sqrt{X}+O(1) of them up to XX. Subtracting them proves Theorem 1.1. □

Four and five factorials: two blocks

To prove that many integers require five or six factors, we must exclude shorter representations. The integers with a three-factor representation have already been counted in (10); for squarefree integers, this leaves representations with four or five factorials to consider. Pairing the four largest factorials reduces the problem to two blocks of consecutive integers. Write the arguments of a five-factor representation as

n>n−ℓ1>m>m−ℓ2>c≥1.n > n-\ell_1 > m > m-\ell_2 > c \ge1.

Since n!(n−ℓ1)!=(n)ℓ1((n−ℓ1)!)2n!(n-\ell_1)! = (n)_{\ell_1}((n-\ell_1)!)^2 and m!(m−ℓ2)!=(m)ℓ2((m−ℓ2)!)2m!(m-\ell_2)! = (m)_{\ell_2}((m-\ell_2)!)^2, the representation is equivalent to

(n)ℓ1(m)ℓ2c!=□,n>n−ℓ1>m>m−ℓ2>c≥0.(11)(n)_{\ell_1}(m)_{\ell_2}c! = \square,\qquad n > n-\ell_1 > m > m-\ell_2 > c \ge0. \tag*{(11)}

A four-factor representation corresponds to (11) with c=0c=0. We call

B1={n−ℓ1+1,…,n},B2={m−ℓ2+1,…,m}.B_1=\{n-\ell_1+1,\ldots,n\},\qquad B_2=\{m-\ell_2+1,\ldots,m\}.

the upper and lower block; they have lengths ℓ1,ℓ2≥1\ell_1,\ell_2\ge1. When ℓ1=ℓ2=1\ell_1=\ell_2=1 the four largest arguments form two consecutive pairs.

Lemma 4.1. Every solution of (11) satisfies c≪(ℓ1+ℓ2)log⁡n+1c\ll(\ell_1+\ell_2)\log n+1.

Proof. Every prime in (c/2,c](c/2,c] occurs exactly once in c!c! and therefore divides (n)ℓ1(m)ℓ2(n)_{\ell_1}(m)_{\ell_2}. Hence ϑ(c)−ϑ(c/2)≤(ℓ1+ℓ2)log⁡n\vartheta(c)-\vartheta(c/2)\le(\ell_1+\ell_2)\log n, and the claim follows from the prime number theorem.

Lemma 4.2. Every solution of (11) satisfies

ℓ1≪n3/5,ℓ2≪ℓ1log⁡n+n3/5.\ell_1\ll n^{3/5},\qquad\ell_2\ll\ell_1\log n+n^{3/5}.

In particular L=max⁡(ℓ1,ℓ2)≤n2/3L=\max(\ell_1,\ell_2)\le n^{2/3} for all sufficiently large nn.

Proof. If ℓ1≥n/2\ell_1\ge n/2, a prime in (n/2,n](n/2,n] (which exists by Bertrand’s postulate) divides exactly one term of B1B_1 and nothing else in (11), which is impossible. Hence ℓ1<n/2\ell_1<n/2, and the same argument shows that (n−ℓ1,n](n-\ell_1,n] contains no prime. By (4), ℓ1≪n3/5\ell_1\ll n^{3/5}.

For the lower block we may assume ℓ2≥m3/5\ell_2\ge m^{3/5} and mm large. Put y=min⁡(ℓ2,m/2)y=\min(\ell_2,m/2), so that m3/5≤y≤m/2m^{3/5}\le y\le m/2 and ℓ2≤2y\ell_2\le2y. Each prime in (m−y,m](m-y,m] divides exactly one term of B2B_2, does not divide c!c!, and therefore divides (n)ℓ1(n)_{\ell_1}. By (4),

ℓ2≤2y≪ϑ(m)−ϑ(m−y)≤log⁡((n)ℓ1)≤ℓ1log⁡n.\ell_2\le2y\ll\vartheta(m)-\vartheta(m-y)\le\log((n)_{\ell_1})\le\ell_1\log n.

To force the upper block to have length one, we will choose nn so that s(n−1)s(n-1) has a large prime factor. The next lemma gives the restriction on this prime factor when ℓ1≥2\ell_1\ge2.

Lemma 4.3. Let n=apn=ap with pp prime, p>np>\sqrt n and p>max⁡(ℓ1,ℓ2,c)p>\max(\ell_1,\ell_2,c), and suppose that (11) holds with ℓ1≥2\ell_1\ge2. Then

P(s(n−1))≤max⁡(ℓ1,c,aℓ2).P(s(n-1))\le\max(\ell_1,c,a\ell_2).

Proof. The prime pp divides nn exactly once, divides no other term of B1B_1, and does not divide c!c!. It must therefore divide a term of B2B_2. Since p>ℓ2p>\ell_2, that term is unique:

m−j=tpfor some 0≤j<ℓ2 and 1≤t<a,m-j=tp\qquad\text{for some }0\le j<\ell_2\text{ and }1\le t<a,

where t<at<a because m<nm<n.

Now let q>max⁡(ℓ1,c,aℓ2)q>\max(\ell_1,c,a\ell_2) be a prime dividing n−1n-1 to an odd power. It divides no other term of B1B_1 and does not divide c!c!. If it divided a term m−im-i of B2B_2, it would divide

a(m−i)−t(n−1)=a(j−i)+t.a(m-i)-t(n-1)=a(j-i)+t.

This integer is nonzero since 0<t<a0<t<a, and has absolute value less than aℓ2<qa\ell_2<q, which is a contradiction. So qq occurs to an odd power in (11), which is impossible.

Long blocks

Lemma 5.1. Let 0<α<ε≤10−30 < \alpha< \varepsilon\le10^{-3}. If nn is sufficiently large, P(n)>n1−αP(n) > n^{1-\alpha}, and (11) holds, then max⁡(ℓ1,ℓ2)<nε\max(\ell_1,\ell_2) < n^\varepsilon.

We prove the lemma by finding a prime that divides exactly one term of the two blocks, to the first power, and does not divide c!c!. Such a prime contradicts the square condition in (11). The following estimate will supply the prime once we have constructed a smooth weight with a positive integral.

Lemma 5.2. Fix ε>0\varepsilon> 0. Let nn be large, nε≤L≤n2/3n^\varepsilon\le L \le n^{2/3}, Q=L(log⁡n)2Q = L(\log n)^2, 0<θ<10 < \theta< 1 and M∈{n,θn}M \in\{n,\theta n\}. Let W:R3→[0,1]W : \mathbb{R}^3 \to[0,1] be smooth and Z3\mathbb{Z}^3-periodic, with ∥∂βW∥∞≪β(log⁡n)CW∣β∣\|\partial^\beta W\|_\infty\ll_\beta(\log n)^{C_W|\beta|} for some fixed CW>0C_W > 0 and every multi-index β\beta. Then, for every fixed Λ>0\Lambda> 0,

∑Q<q≤2QW(nq,θnq,Mq2)=∫Q2QW(nv,θnv,Mv2)dvlog⁡v+O(Q(log⁡n)Λ).\sum_{Q<q\le2Q} W\left(\frac{n}{q},\frac{\theta n}{q},\frac{M}{q^2}\right) = \int_Q^{2Q} W\left(\frac{n}{v},\frac{\theta n}{v},\frac{M}{v^2}\right)\frac{\mathrm{d}v}{\log v} + O\left(\frac{Q}{(\log n)^\Lambda}\right).

where the implied constant depends on ε\varepsilon, Λ\Lambda, CWC_W and the implied constants in the derivative bounds.

Proof. Expand WW in a Fourier series. The derivative bounds allow us to truncate at frequencies bounded by a power of log⁡n\log n, with uniform error O((log⁡n)−B)O((\log n)^{-B}) for any prescribed B>0B > 0. The resulting error in either the prime sum or the integral is O(Q(log⁡n)−B)O(Q(\log n)^{-B}).

Each remaining Fourier mode contributes the phase

(k1+k2θ)nq+k3Mq2\frac{(k_1+k_2\theta)n}{q}+\frac{k_3M}{q^2}

with integers k1,k2,k3k_1,k_2,k_3 of polylogarithmic size. Proposition 1.12(i) of [9], with exponent j=2j=2, compares the prime sum for each such mode with its integral, with error OB(Q(log⁡Q)−B)O_B(Q(\log Q)^{-B}) for every fixed B>0B > 0, provided both real phase coefficients are O(exp⁡((log⁡Q)5/4))O(\exp((\log Q)^{5/4})). Our coefficients are O(n(log⁡n)O(1))O(n(\log n)^{O(1)}), and log⁡n=o((log⁡Q)5/4)\log n=o((\log Q)^{5/4}) since Q≥nεQ\ge n^\varepsilon. As there are only (log⁡n)O(1)(\log n)^{O(1)} modes, with total coefficient size (log⁡n)O(1)(\log n)^{O(1)}, the lemma follows. □\square

Proof of Lemma 5.1. Suppose that L=max⁡(ℓ1,ℓ2)≥nεL=\max(\ell_1,\ell_2)\ge n^\varepsilon, and write n=apn=ap with p=P(n)p=P(n), so that a<nαa<n^\alpha. By Lemmas 4.1 and 4.2, p>max⁡(ℓ1,ℓ2,c,n)p>\max(\ell_1,\ell_2,c,\sqrt n) for large nn. As in the proof of Lemma 4.3, pp divides exactly one term m−jm-j of B2B_2, and

m−j=θn,θ=ta∈(0,1),1≤t<a.(12)m-j=\theta n,\qquad\theta=\frac{t}{a}\in(0,1),\qquad1\le t<a. \tag*{(12)}

Thus B2B_2 consists of the integers θn+e\theta n+e with j−ℓ2<e≤jj-\ell_2<e\le j, and in particular ∣e∣<L|e|<L. Write θ=A0/A\theta=A_0/A in lowest terms, so 2≤A≤a<nα2\le A\le a<n^\alpha. Put

Q=L(log⁡n)2,δ=LQ=(log⁡n)−2,J=[n2Q,nQ].Q=L(\log n)^2,\qquad\delta=\frac{L}{Q}=(\log n)^{-2},\qquad J=\left[\frac{n}{2Q},\frac{n}{Q}\right].

By Lemma 4.1, c≪Llog⁡nc\ll L\log n, so Q>max⁡(ℓ1,ℓ2,c)Q>\max(\ell_1,\ell_2,c) for large nn. Since A<nαA<n^\alpha, nε≤L≤n2/3n^\varepsilon\le L\le n^{2/3} and α<ε\alpha<\varepsilon,

AQ=o(1),AQn≪n−1/3+α(log⁡n)2=o(1).(13)\frac{A}{Q}=o(1),\qquad\frac{AQ}{n}\ll n^{-1/3+\alpha}(\log n)^2=o(1). \tag*{(13)}

The second estimate ensures that JJ contains many periods of length AA. The first will let us exclude square divisibility while retaining whole periods.

Every prime q∈(Q,2Q]q \in(Q,2Q] divides at most one term of each block and does not divide c!c!. We first construct a weight detecting primes that divide one block and avoid the other. We then modify it to exclude divisibility by q2q^2.

Separating the blocks. We seek a smooth Z2\mathbb{Z}^2-periodic function H:R2→[0,1]H:\mathbb{R}^2 \to[0,1] such that H(n/q,θn/q)>0H(n/q,\theta n/q)>0 implies that qq divides a term of exactly one block, and such that

∫IH(u,θu) du≫Aδ(14)\int_I H(u,\theta u)\,\mathrm{d}u \gg A\delta \tag*{(14)}

for every interval I=[u0,u0+A]I=[u_0,u_0+A] with u0∈Zu_0\in\mathbb{Z}. We also choose M∈{n,θn}M\in\{n,\theta n\} so that every term of the selected block lies within LL of MM.

For smooth 11-periodic functions f,gf,g, we have the identity

∫If(u)g(θu) du=∫01f(x)∑k=0A−1g(kA+θx) dx.(15)\int_I f(u)g(\theta u)\,\mathrm{d}u=\int_0^1 f(x)\sum_{k=0}^{A-1}g\left(\frac{k}{A}+\theta x\right)\,\mathrm{d}x. \tag*{(15)}

Indeed, split II into its AA unit intervals. On the interval beginning at u0+ru_0+r, substitute u=u0+r+xu=u_0+r+x; the residues θ(u0+r)\theta(u_0+r) run through k/Ak/A modulo 11, since A0A_0 and AA are coprime. We will also use ∫If(θu) du=A∫01f\int_I f(\theta u)\,\mathrm{d}u=A\int_0^1 f, which follows directly from θA=A0∈Z\theta A=A_0\in\mathbb{Z}.

Case 1: ℓ1≥ℓ2/100\ell_1\ge\ell_2/100. Then ℓ1≥L/100\ell_1\ge L/100. We select the upper block and take M=nM=n. Choose smooth 11-periodic functions f,g:R→[0,1]f,g:\mathbb{R}\to[0,1] such that ff is supported in (ℓ1/(16Q),3ℓ1/(8Q))(\ell_1/(16Q),3\ell_1/(8Q)) modulo 11 and equals 11 on [ℓ1/(8Q),ℓ1/(4Q)][\ell_1/(8Q),\ell_1/(4Q)], and gg is supported in (δ,1−δ)(\delta,1-\delta) modulo 11 and equals 11 on [2δ,1−2δ][2\delta,1-2\delta]. Set H(x,y)=f(x)g(y)H(x,y)=f(x)g(y).

If H(n/q,θn/q)>0H(n/q,\theta n/q)>0, then 0<q{n/q}<3ℓ1/40<q\{n/q\}<3\ell_1/4. Since q{n/q}q\{n/q\} is an integer, qq divides a term of B1B_1. Also {θn/q}∈(δ,1−δ)\{\theta n/q\}\in(\delta,1-\delta), so θn\theta n is at distance more than δq>L\delta q>L from every multiple of qq. Thus qq divides no term of B2B_2.

At least ⌊A/2⌋≥A/3\lfloor A/2\rfloor\ge A/3 of the points k/Ak/A, 0≤k<A0\le k<A, lie in [1/4,3/4][1/4,3/4]. For each of them and every xx in the support of ff in [0,1)[0,1), we have 0≤θx≤3δ/80\le\theta x\le3\delta/8, hence g(k/A+θx)=1g(k/A+\theta x)=1. By (5.4),

∫IH(u,θu) du≥A3∫01f≥Aℓ124Q≥Aδ2400,\int_I H(u,\theta u)\,\mathrm{d}u\ge\frac{A}{3}\int_0^1f\ge\frac{A\ell_1}{24Q}\ge\frac{A\delta}{2400},

which proves (14) in this case.

Case 2: ℓ2>100ℓ1\ell_2>100\ell_1. Now L=ℓ2L=\ell_2. We select the lower block and take M=θnM=\theta n. Let ff be a smooth 11-periodic function with values in [0,1][0,1], supported strictly inside

(−j2Q,ℓ2−j2Q)(mod1)\left(-\frac{j}{2Q},\frac{\ell_2-j}{2Q}\right)\pmod1

and equal to 11 on its middle subinterval of length δ/8\delta/8. The whole interval has length δ/2\delta/2, and ∫01f≥δ/8\int_0^1f\ge\delta/8. Let gg be a smooth 11-periodic function with values in [0,1][0,1] which vanishes on [0,ℓ1/Q][0,\ell_1/Q] modulo 11 and equals 11 outside

E=[0,ℓ1Q+δ1000]∪[1−δ1000,1],E=\left[0,\frac{\ell_1}{Q}+\frac{\delta}{1000}\right]\cup\left[1-\frac{\delta}{1000},1\right],

so that ∣E∣<0.012δ|E|<0.012\delta. Set H(x,y)=g(x)f(y)H(x,y)=g(x)f(y).

If H(n/q,θn/q)>0H(n/q,\theta n/q)>0, let ξ\xi be the representative of θn/q\theta n/q modulo 11 in the support of ff. Since θn=tp\theta n=tp is an integer, so is qξq\xi, and −j<qξ<ℓ2−j-j<q\xi<\ell_2-j because q≤2Qq\le2Q. Hence θn−qξ\theta n-q\xi is a term of B2B_2 divisible by qq. Since g(n/q)≠0g(n/q)\ne0, we have {n/q}>ℓ1/Q>ℓ1/q\{n/q\}>\ell_1/Q>\ell_1/q, so qq divides no term of B1B_1. On every interval II of length AA with integer endpoints,

∫IH(u,θu) du≥∫If(θu) du−∫I(1−g(u)) du≥Aδ8−A∣E∣≥Aδ10.\int_I H(u,\theta u)\,\mathrm{d}u \ge\int_I f(\theta u)\,\mathrm{d}u-\int_I(1-g(u))\,\mathrm{d}u \ge\frac{A\delta}{8}-A|E| \ge\frac{A\delta}{10}.

This proves (14) in the second case.

In both cases we construct ff and gg by translating and rescaling fixed smooth functions. In Case 1, their transition widths can be chosen at least a fixed multiple of δ\delta, since ℓ1/Q≥δ/100\ell_1/Q \ge\delta/100. In Case 2, the transition widths of ff are comparable to δ\delta, and those of gg are δ/1000\delta/1000, independently of ℓ1/Q\ell_1/Q. Each differentiation costs the inverse of a transition width, so

∥f(r)∥∞+∥g(r)∥∞≪rδ−r,\lVert f^{(r)}\rVert_\infty+\lVert g^{(r)}\rVert_\infty\ll_r\delta^{-r},

uniformly in the parameters; changing jj in Case 2 only translates ff.

Excluding square divisibility. The selected prime might still divide its term more than once. We now exclude this possibility while preserving (14) on a fixed proportion of the complete periods in JJ.

Every term of the selected block lies within LL of MM. Put U=M/Q2U=M/Q^2. If U<1/4U<1/4, then M+L<Q2M+L<Q^2 for large nn, so no term of the block is divisible by q2q^2 for q>Qq>Q, and we take G=1G=1. Otherwise, fix a small absolute constant τ0>0\tau_0>0 and a smooth 1-periodic G:R→[0,1]G:\mathbb{R}\to[0,1] supported where τ0<{ζ}<1−τ0\tau_0<\{\zeta\}<1-\tau_0 and equal to 1 where 2τ0≤{ζ}≤1−2τ02\tau_0\le\{\zeta\}\le1-2\tau_0. If G(M/q2)>0G(M/q^2)>0, then MM is at distance more than τ0q2>L\tau_0q^2>L from every multiple of q2q^2, so again no term of the block is divisible by q2q^2.

Under the substitution u=n/vu=n/v, the interval [Q,2Q][Q,2Q] becomes JJ, and M/v2M/v^2 becomes ϕ(u)=Mu2/n2\phi(u)=Mu^2/n^2. Partition JJ into intervals I=[u0,u0+A]I=[u_0,u_0+A] with u0∈Zu_0\in\mathbb{Z}, discarding two end pieces of total length at most 2A2A. Since 0<ϕ′(u)≤2/Q0<\phi'(u)\le2/Q on JJ, the variation of ϕ\phi on each period is at most 2A/Q<τ02A/Q<\tau_0 for large nn, by (13).

Suppose U≥1/4U\ge1/4. Then ϕ(J)=[U/4,U]\phi(J)=[U/4,U]. The points in this interval within 3τ03\tau_0 of an integer have total length O(τ0(U+1))O(\tau_0(U+1)), hence relative measure O(τ0)O(\tau_0), uniformly for U≥1/4U\ge1/4. Since du/dz\mathrm{d}u/\mathrm{d}z varies by at most a factor 2 for z=ϕ(u)z=\phi(u) in this range, their preimage in JJ also has relative measure O(τ0)O(\tau_0). Any complete period containing a point outside this preimage has G(ϕ(u))=1G(\phi(u))=1 throughout: the distance from an integer starts above 3τ03\tau_0 and changes by less than τ0\tau_0. Call these periods good. Their total length is at least

(1−Cτ0−4AQn)∣J∣≥12∣J∣\left(1-C\tau_0-\frac{4A Q}{n}\right)|J|\ge\frac{1}{2}|J|

once τ0\tau_0 is small and nn is large. When G=1G=1, every complete period is good.

On each good period, multiplication by G(ϕ(u))G(\phi(u)) leaves the integral in (14) unchanged. Summing over these periods gives

∫JH(u,θu)G(ϕ(u)) du≫δ∣J∣≫δnQ.\int_J H(u,\theta u)G(\phi(u))\,\mathrm{d}u\gg\delta|J|\gg\frac{\delta n}{Q}.

Applying the prime comparison. Set W(x,y,ζ)=H(x,y)G(ζ)W(x,y,\zeta)=H(x,y)G(\zeta). By construction, positivity of W(n/q,θn/q,M/q2)W(n/q,\theta n/q,M/q^2) would make qq divide exactly one term of the two blocks, to the first power, and nothing in c!c!. The square condition therefore forces

S(W)=∑Q<q≤2QW(nq,θnq,Mq2)=0.S(W)=\sum_{Q<q\le2Q}W\left(\frac{n}{q},\frac{\theta n}{q},\frac{M}{q^2}\right)=0.

The derivative bounds for f,gf,g, together with the fixed derivative bounds for GG, give

∥∂βW∥∞≪βδ−∣β∣=(log⁡n)2∣β∣,(16)\lVert\partial^\beta W\rVert_\infty\ll_\beta\delta^{-|\beta|}=(\log n)^{2|\beta|}, \tag*{(16)}

so Lemma 5.2 applies with CW=2C_W=2 and Λ=5\Lambda=5.

On the other hand, ∣dv∣/log⁡v≍Q2(nlog⁡Q)−1 du\lvert dv\rvert/\log v \asymp Q^2(n\log Q)^{-1}\,du under u=n/vu=n/v, so the corresponding integral satisfies

I(W)≫Q2nlog⁡Q⋅δnQ≫εQ(log⁡n)3.I(W)\gg\frac{Q^2}{n\log Q}\cdot\frac{\delta n}{Q}\gg_{\varepsilon}\frac{Q}{(\log n)^3}.

Thus Lemma 5.2 gives S(W)=I(W)+O(Q(log⁡n)−5)>0S(W)=I(W)+O(Q(\log n)^{-5})>0 for large nn, a contradiction.

Short blocks

Lemma 6.1. Let 0<ε≤10−30<\varepsilon\leq10^{-3}. The number of integers n≤Xn\leq X that have a prime factor p>X1−εp>X^{1-\varepsilon} and satisfy

n!(n−1)!m!(m−ℓ2)!c!=□,n−1>m>m−ℓ2>c≥0,2≤ℓ2≤Xε,n!(n-1)!m!(m-\ell_2)!c!=\square,\qquad n-1>m>m-\ell_2>c\geq0,\qquad2\leq\ell_2\leq X^\varepsilon,

for some m,ℓ2,cm,\ell_2,c, is O(X1/2+5ε(log⁡X)2)O(X^{1/2+5\varepsilon}(\log X)^2).

Proof. Write n=apn=ap, so that a<Xεa<X^\varepsilon. By Lemma 4.1, c≪ℓ2log⁡X≤Xε+o(1)c\ll\ell_2\log X\leq X^{\varepsilon+o(1)}, so p>max⁡(ℓ2,c,n)p>\max(\ell_2,c,\sqrt n) for large XX. As in the proof of Lemma 4.3, m−j=tpm-j=tp for a unique 0≤j<ℓ20\leq j<\ell_2 and some 1≤t<a1\leq t<a.

Fix (a,t,ℓ2,j,c)(a,t,\ell_2,j,c) and put

f(z)=at c!∏0≤i<ℓ2i≠j(z−i).(17)f(z)=at\,c!\prod_{\substack{0\leq i<\ell_2\\i\ne j}}(z-i). \tag*{(17)}

Removing p2p^2 from (11) (with ℓ1=1\ell_1=1) shows that f(m)f(m) is a square. Each possible m≤Xm\leq X determines n=a(m−j)/tn=a(m-j)/t.

For every prime X/2<q≤X\sqrt X/2<q\leq\sqrt X, we have q>max⁡(a,t,c,ℓ2)q>\max(a,t,c,\ell_2) for large XX. Thus ff has nonzero leading coefficient and ℓ2−1\ell_2-1 distinct roots modulo qq. By (6), the number ρ(q)\rho(q) of residues for which ff is a square or zero satisfies

ρ(q)≤q2+ℓ2−1+(ℓ2−2)q2≤3q4,\rho(q)\leq\frac q2+\frac{\ell_2-1+(\ell_2-2)\sqrt q}{2}\leq\frac{3q}{4},

uniformly in the parameters, since ℓ2/q≪Xε−1/4=o(1)\ell_2/\sqrt q\ll X^{\varepsilon-1/4}=o(1). Apply (5) to the possible values of mm, with P\mathcal P consisting of the primes in this interval. As (q−ρ(q))/ρ(q)≥1/3(q-\rho(q))/\rho(q)\geq1/3, the number of possible mm is

≪X(∑X/2<q≤Xq−ρ(q)ρ(q))−1≪Xlog⁡X.\ll X\left(\sum_{\sqrt X/2<q\leq\sqrt X}\frac{q-\rho(q)}{\rho(q)}\right)^{-1}\ll\sqrt X\log X.

There are O(X5εlog⁡X)O(X^{5\varepsilon}\log X) parameter tuples, since a,t,ℓ2,j≤Xεa,t,\ell_2,j\leq X^\varepsilon and c≪Xεlog⁡Xc\ll X^\varepsilon\log X. Summing gives O(X1/2+5ε(log⁡X)2)O(X^{1/2+5\varepsilon}(\log X)^2) values of nn, which proves the stated bound.

We now combine the two-block estimates of § 4–§ 6 with the three-factor bound (10).

Corollary 6.2. Let 0<ε≤10−30<\varepsilon\leq10^{-3}. Apart from at most X1/2+6ε+o(1)X^{1/2+6\varepsilon+o(1)} exceptions, every squarefree n∈[X/2,X]n\in[X/2,X] with

P(n)>X1−ε/2andP(s(n−1))>X3εP(n)>X^{1-\varepsilon/2}\qquad\text{and}\qquad P(s(n-1))>X^{3\varepsilon}

has no representation with fewer than five factorials, and each of its five-factor representations has the form

n!(n−1)!m!(m−1)!c!=□,n−1>m>m−1>c≥1.n!(n-1)!m!(m-1)!c!=\square,\qquad n-1>m>m-1>c\geq1.

Proof. Write n=apn=ap with p=P(n)p=P(n), so a<Xε/2a<X^{\varepsilon/2}. Consider a four- or five-factor representation, in the notation of (11). Since p>n1−ε/2p>n^{1-\varepsilon/2}, Lemma 5.1 (with α=ε/2\alpha=\varepsilon/2) gives ℓ1,ℓ2<Xε\ell_1,\ell_2<X^\varepsilon, and then Lemma 4.1 gives c≤Xε+o(1)c\le X^{\varepsilon+o(1)}. Thus max⁡(ℓ1,c,aℓ2)<X3ε\max(\ell_1,c,a\ell_2)<X^{3\varepsilon}, and Lemma 4.3 forces ℓ1=1\ell_1=1. By Lemma 6.1, ℓ2≥2\ell_2\ge2 occurs for at most X1/2+6ε+o(1)X^{1/2+6\varepsilon+o(1)} values of nn. Otherwise ℓ1=ℓ2=1\ell_1=\ell_2=1; a four-factor representation would then give nm=□nm=\square with m<nm<n, which is impossible for squarefree nn.

A two-factor representation would make nn a square (§ 3.2), and by (10) only O(X)O(\sqrt{X}) integers n≤Xn\le X have a three-factor representation.

Proof of Theorem 1.2

The remaining five-factor representations

Let n=apn=ap be as in Corollary 6.2, and consider a five-factor representation n!(n−1)!m!(m−1)!c!=□n!(n-1)!m!(m-1)!c!=\square. Its square condition is nmc!=□nmc!=\square. By Lemma 4.1, c≪log⁡X<pc\ll\log X<p, so pp divides mm, say m=tpm=tp with 1≤t<a1\le t<a. Removing p2p^2 we obtain atc!=□atc!=\square, that is, t=s(ac!)v2t=s(ac!)v^2 for some integer v≥1v\ge1. Such a t<at<a exists if and only if s(ac!)<as(ac!)<a. We are therefore led to the set

R={a≥1 squarefree:s(ac!)≥a for all c≥0}.\mathcal{R}=\{a\ge1\text{ squarefree}:s(ac!)\ge a\text{ for all }c\ge0\}.

If a∈Ra\in\mathcal{R}, then nn has no five-factor representation. The condition is automatic for c≤1c\le1.

Lemma 7.1. The set R\mathcal{R} has positive lower density.

Proof. Let B0B_0 be large. The squarefree integers with no prime factor at most B0B_0 have density

ϱB0=6π2∏p≤B0pp+1≲1log⁡B0,\varrho_{B_0}=\frac{6}{\pi^2}\prod_{p\le B_0}\frac{p}{p+1}\lesssim\frac{1}{\log B_0},

and each of them satisfies s(ac!)=a s(c!)≥as(ac!)=a\,s(c!)\ge a for c≤B0c\le B_0.

We now estimate how many of these integers fail the condition for some c>B0c>B_0. Put sc=s(c!)s_c=s(c!). For squarefree aa we have s(ac!)=asc/gcd⁡(a,sc)2s(ac!)=a s_c/\gcd(a,s_c)^2, so s(ac!)<as(ac!)<a if and only if gcd⁡(a,sc)>sc\gcd(a,s_c)>\sqrt{s_c}. In that case aa is divisible by a divisor d>scd>\sqrt{s_c} of scs_c, so

#{a≤Z:a squarefree,s(ac!)<a}≤∑d∣scd>scZd≤Zτ(sc)sc.\#\{a\le Z:a\text{ squarefree},s(ac!)<a\}\le\sum_{\substack{d\mid s_c\\d>\sqrt{s_c}}}\frac{Z}{d}\le\frac{Z\tau(s_c)}{\sqrt{s_c}}.

The primes in (c/2,c](c/2,c] show that sc≥e(1/2+o(1))cs_c\ge e^{(1/2+o(1))c}, while τ(sc)≤2π(c)=eo(c)\tau(s_c)\le2^{\pi(c)}=e^{o(c)}. Summing over c>B0c>B_0 gives a total loss of O(Ze−γB0)O(Ze^{-\gamma B_0}) from our initial set, for some absolute γ>0\gamma>0. Since e−γB0=o(ϱB0)e^{-\gamma B_0}=o(\varrho_{B_0}), the lower density of R\mathcal{R} is at least ϱB0/2\varrho_{B_0}/2 for large B0B_0.

This is a quantitative form of an observation of Erdős and Graham [3 p. 354].

Supply of candidates

For a squarefree a≤Xαa\le X^\alpha, the primes p∈(X/(2a),X/a]p\in(X/(2a),X/a] give about X/(alog⁡X)X/(a\log X) squarefree integers n=ap∈(X/2,X]n=ap\in(X/2,X]. Summing over aa in a set of positive lower density yields ≫X\gg X candidates. We first check that the condition on n−1n-1 in Corollary 6.2 removes only a small proportion of them. Recall that an integer is yy-smooth if all its prime factors are at most yy.

Lemma 7.2. For all sufficiently small fixed ε>0\varepsilon>0, the number of n∈[X/2,X]n\in[X/2,X] with P(s(n−1))≤X3εP(s(n-1))\le X^{3\varepsilon} is at most CXe−1/(6ε)+O(X3/4)CXe^{-1/(6\varepsilon)}+O(X^{3/4}), where CC is absolute.

Proof. Write n−1=s(n−1)u2n-1=s(n-1)u^2. The number of nn with u>X1/4u>X^{1/4} is at most ∑u>X1/4X/u2≪X3/4\sum_{u>X^{1/4}}X/u^2\ll X^{3/4}. For the remaining nn we have s(n−1)≥X1/2/3s(n-1)\ge X^{1/2}/3 when XX is large.

Put y=X3εy=X^{3\varepsilon} and σ=1/log⁡y\sigma=1/\log y. Expanding into sums over squarefree divisors and using ⌊X/d⌋≤X/d\lfloor X/d\rfloor\le X/d gives

1X∑v≤X∏p∣vp≤ypσ≤∏p≤y(1+pσ−1p)≪1.\frac{1}{X}\sum_{v\le X}\prod_{\substack{p\mid v\\p\le y}}p^\sigma\le\prod_{p\le y}\left(1+\frac{p^\sigma-1}{p}\right)\ll1.

because pσ−1≪σlog⁡pp^\sigma-1\ll\sigma\log p for p≤yp\le y and ∑p≤y(log⁡p)/p≪log⁡y\sum_{p\le y}(\log p)/p\ll\log y. If s(n−1)s(n-1) is yy-smooth, its squarefreeness gives

∏p∣n−1p≤ypσ≥s(n−1)σ≥(X1/2/3)1/log⁡y=e1/(6ε)+o(1).\prod_{\substack{p\mid n-1\\p\le y}}p^\sigma\ge s(n-1)^\sigma\ge(X^{1/2}/3)^{1/\log y}=e^{1/(6\varepsilon)+o(1)}.

The lemma follows from Markov’s inequality.

Proposition 7.3. Let A\mathcal{A} be a set of squarefree positive integers such that #(A∩[1,Y])≥κY\#(\mathcal{A}\cap[1,Y])\ge\kappa Y for some κ>0\kappa>0 and all large YY. Let ε>0\varepsilon>0 be sufficiently small in terms of κ\kappa, and put α=ε/2\alpha=\varepsilon/2. Then for all large XX there are ≫καX\gg_\kappa\alpha X squarefree integers n=ap∈[X/2,X]n=ap\in[X/2,X] with a∈Aa\in\mathcal{A}, Xα/2≤a≤Xα/2X^{\alpha/2}\le a\le X^{\alpha/2}, p=P(n)>X1−αp=P(n)>X^{1-\alpha} and P(s(n−1))>X3εP(s(n-1))>X^{3\varepsilon}.

These integers have no representation with fewer than five factorials, and every five-factor representation has two consecutive pairs as in Corollary 6.2. If A⊆R\mathcal{A}\subseteq\mathcal{R}, they have no five-factor representation either.

Proof. For each a∈Aa\in\mathcal{A} with Xα/2≤a≤Xα/2X^{\alpha/2}\le a\le X^{\alpha/2}, let pp run over the primes in (X/(2a),X/a](X/(2a),X/a]. Then p>X1−αp>X^{1-\alpha} is larger than aa and than X\sqrt{X}, so n=apn=ap is squarefree, P(n)=pP(n)=p, and distinct pairs (a,p)(a,p) give distinct nn. By the prime number theorem, the number of such nn is

≫Xlog⁡X∑a∈AXα/2≤a≤Xα/21a.\gg\frac{X}{\log X}\sum_{\substack{a\in\mathcal{A}\\X^{\alpha/2}\le a\le X^{\alpha/2}}}\frac{1}{a}.

To bound this sum from below, we use the positive lower density of A\mathcal{A}. Partial summation gives

∑a∈AY≤a≤Y2/21a≥∫YY2/2#(A∩[1,u])u2 du−1≥κlog⁡Y−O(1).\sum_{\substack{a\in\mathcal{A}\\Y\le a\le Y^{2}/2}}\frac{1}{a}\ge\int_Y^{Y^{2}/2}\frac{\#(\mathcal{A}\cap[1,u])}{u^2}\,du-1\ge\kappa\log Y-O(1).

Taking Y=Xα/2Y=X^{\alpha/2}, we obtain ≫καX\gg\kappa\alpha X candidates.

By Lemma 7.2, at most CXe−1/(6ε)+O(X3/4)CXe^{-1/(6\varepsilon)}+O(X^{3/4}) of them have P(s(n−1))≤X3εP(s(n-1))\le X^{3\varepsilon}. Since e−1/(6ε)=o(ε)e^{-1/(6\varepsilon)}=o(\varepsilon), we can make this less than half the count above by choosing ε\varepsilon sufficiently small in terms of κ\kappa. Corollary 6.2 removes a further o(X)o(X) integers and gives the first assertion. The second follows from the discussion of R\mathcal{R} above.

Six factors

By Lemma 7.1, Proposition 7.3 applies with A=R\mathcal{A}=\mathcal{R} and yields ≫X\gg X integers n=ap∈[X/2,X]n=ap\in[X/2,X] with no representation by fewer than six factorials. Since a≥Xα/2a\ge X^{\alpha/2} and p≥X1−αp\ge X^{1-\alpha}, the six arguments in (3) are distinct for large XX, so F(n)=6F(n)=6. This proves the case k=6k=6 of Theorem 1.2.

Five factors

If dbc0!=w2d b c_0! = w^2, then for n=dzn = dz and m=bzm = bz,

n!(n−1)!m!(m−1)!c0!=nmc0!((n−1)!(m−1)!)2=(wz(n−1)!(m−1)!)2.(18)n!(n-1)!m!(m-1)!c_0! = nm c_0!((n-1)!(m-1)!)^2 = (wz(n-1)!(m-1)!)^2. \tag*{(18)}

Identities of this kind are due to Straus; see [3 Fact 7, pp. 346–347].

Proposition 7.4. Let d>1d > 1 be squarefree, and suppose that dbc0!d b c_0! is a square for some integers 1≤b<d1 \le b < d and c0≥2c_0 \ge2. Let V≥1V \ge1 be an integer coprime to dd. Then for all large XX there are ≫d,b,c0,VX\gg_{d,b,c_0,V} X squarefree n∈[X/2,X]n \in[X/2,X] with d∣nd \mid n, (n,V)=1(n,V)=1 and F(n)=5F(n)=5.

Proof. The set A\mathcal{A} of squarefree aa with d∣ad \mid a and (a,V)=1(a,V)=1 has density

6π2∏q∣d1q+1∏q∣Vqq+1>0.\frac{6}{\pi^2}\prod_{q\mid d}\frac{1}{q+1}\prod_{q\mid V}\frac{q}{q+1}>0.

so Proposition 7.3 yields ≫X\gg X integers n=apn=ap with no representation by fewer than five factorials. They satisfy d∣nd \mid n, and (n,V)=1(n,V)=1 because p>Vp>V. Writing n=dzn=dz, identity (18) is a five-factor representation of nn, whose arguments n>n−1>bz>bz−1>c0n>n-1>bz>bz-1>c_0 are distinct for large XX. Hence F(n)=5F(n)=5.

For even nn we take (d,b,c0,V)=(2,1,2,1)(d,b,c_0,V)=(2,1,2,1), which gives

(2z)!(2z−1)!z!(z−1)!2!=(2z(2z−1)!(z−1)!)2(2z)!(2z-1)!z!(z-1)!2!=(2z(2z-1)!(z-1)!)^2

and for odd nn we take (d,b,c0,V)=(3,2,3,2)(d,b,c_0,V)=(3,2,3,2), which gives

(3z)!(3z−1)!(2z)!(2z−1)!3!=(6z(3z−1)!(2z−1)!)2.(3z)!(3z-1)!(2z)!(2z-1)!3!=(6z(3z-1)!(2z-1)!)^2.

This completes the proof of Theorem 1.2.

Further questions

By (2) and Theorem 1.1,

lim inf⁡X→∞D4(X)X≥1−6π2.\liminf_{X\to\infty}\frac{D_4(X)}{X}\ge1-\frac{6}{\pi^2}.

If the squarefree integers with F(n)=4F(n)=4 had density zero, as Erdős and Graham suggested [3 p. 346], then D4(X)/XD_4(X)/X would tend to 1−6/π21-6/\pi^2. Our two-block argument requires a prime factor exceeding X1−αX^{1-\alpha} for a small fixed α>0\alpha>0, and does not decide this.

Question 8.1. Do the limits lim⁡X→∞Dk(X)/X\lim_{X\to\infty}D_k(X)/X exist for k=4,5,6k=4,5,6? Can their values be expressed as Euler products or convergent series?

The proof of Lemma 5.1 depends on the large prime factor of nn through the small denominator AA of θ\theta, which enters both estimates in (13).

Question 8.2. Does the conclusion of Lemma 5.1 hold for all but o(X)o(X) integers n≤Xn\le X, without the assumption P(n)>n1−αP(n)>n^{1-\alpha}?

Perfect powers from a bounded number of factorials

At the end of their paper, Erdős and Graham [3 p. 354] state that, for every m≥2m \ge2, infinitely many mm-th powers can be written as products of a bounded number of factorials. They leave the proof for a later paper. Bérczes, Dujella, Hajdu, Saradha and Tijdeman [1 p. 339] report that they could not find this continuation. In this appendix we give a construction with distinct factorials whose arguments are affine functions of a parameter. Throughout the appendix, mm denotes the exponent.

Theorem A.1. For every integer m≥2m \ge2 there are an integer N≥1N \ge1 and distinct affine functions ai(t)=αit+βia_i(t) = \alpha_i t + \beta_i, 1≤i≤N1 \le i \le N, with integer coefficients αi>0\alpha_i > 0 and βi≥0\beta_i \ge0, such that for every sufficiently large integer tt the numbers ai(t)a_i(t) are distinct and at least 2, and ∏i=1Nai(t)!\prod_{i=1}^{N} a_i(t)! is an mm-th power. Moreover one can take m∣Nm \mid N and

N≤{2m(m−1)⌈em⌉if m is a prime power,2cm(cm+1)⌈ecm+1⌉in general,cm=⌈mlog⁡m⌉.N \le\begin{cases} 2m(m-1)\lceil e^m\rceil& \text{if } m \text{ is a prime power},\\ 2c_m(c_m+1)\lceil e^{c_m+1}\rceil& \text{in general}, \end{cases} \qquad c_m=\lceil m\log m\rceil.

In particular N≤exp⁡(O(mlog⁡m))N \le\exp(O(m\log m)).

Theorem 2.1 of [1] concerns products in which factorials may be repeated, and [1 Theorem 4.2] gives, for infinitely many nn, cubes that are products of fewer than 32log⁡n\frac{3}{2}\log n distinct factorials with largest argument nn. Theorem A.1 gives a number of factors depending only on the exponent, along an arithmetic progression of largest arguments (Corollary A.2). Related constructions for products of disjoint blocks of consecutive integers were studied by Skałba [12, 13]. Expressing a block as a factorial ratio and clearing the denominator modulo mm-th powers generally repeats the denominator factorial m−1m-1 times; the construction below preserves distinctness by working directly with individual factorials.

For a finite abelian group GG, the Davenport constant D(G)D(G) is the least integer DD such that every sequence of DD elements of GG, repetitions allowed, has a nonempty subsequence with sum zero. Let Cm=Z/mZC_m = \mathbb{Z}/m\mathbb{Z}. By Olson’s theorem [11],

D(Cmr)=1+r(m−1)if m is a prime power,D(C_m^r)=1+r(m-1) \qquad\text{if } m \text{ is a prime power},

and the bound of van Emde Boas and Kruyswijk [15] (see also Meshulam [10]) gives, for m≥3m \ge3,

D(Cmr)≤⌊m(1+(r−1)log⁡m)⌋+1≤cmr.D(C_m^r)\le\lfloor m(1+(r-1)\log m)\rfloor+1\le c_mr.

The last inequality holds because the quantity inside the floor is strictly less than the integer rcmrc_m. For m=2m=2, Olson’s formula gives D(C2r)=r+1≤2r=c2rD(C_2^r)=r+1\le2r=c_2r. Thus D(Cmr)≤cmrD(C_m^r)\le c_mr for every m≥2m\ge2.

Proof of Theorem A.1. We express the factorials as monomials in a fixed finite set of formal generators. The Davenport constant then supplies a nonempty subfamily whose exponent vectors sum to zero modulo mm.

Let R,K≥1R,K\ge1 and LR=lcm⁡(1,…,R)L_R=\operatorname{lcm}(1,\ldots,R). For 1≤ℓ≤R1\le\ell\le R and 0≤j≤⌊K/ℓ⌋0\le j\le\lfloor K/\ell\rfloor consider

Fℓ,j(t)=(LRtℓ+j)!.F_{\ell,j}(t)=\left(\frac{L_Rt}{\ell}+j\right)!.

Call the terms with a given ℓ\ell the ℓ\ell-th row. For j≥1j\ge1, passing from Fℓ,j−1F_{\ell,j-1} to Fℓ,jF_{\ell,j} multiplies the factorial by (LRt+ℓj)/ℓ(L_Rt+\ell j)/\ell. Since ℓj≤K\ell j\le K, all rows use linear factors from the same list LRt+1,…,LRt+KL_Rt+1,\ldots,L_Rt+K. With the generators

Φℓ(t)=(LRtℓ)!(1≤ℓ≤R),Yi(t)=LRt+i(1≤i≤K),\Phi_\ell(t)=\left(\frac{L_Rt}{\ell}\right)!\quad(1\le\ell\le R),\qquad Y_i(t)=L_Rt+i\quad(1\le i\le K),

and the primes p≤Rp \le R, we have

Fℓ,j(t)=Φℓ(t)ℓ−j∏h=1jYℓh(t),ℓ−j=∏p≤Rp−jvp(ℓ).F_{\ell,j}(t)=\Phi_{\ell}(t)\ell^{-j}\prod_{h=1}^{j}Y_{\ell h}(t),\qquad\ell^{-j}=\prod_{p\le R}p^{-jv_p(\ell)}.

where vp(ℓ)v_p(\ell) is the exponent of pp in ℓ\ell and ℓh≤K\ell h\le K. Thus each Fℓ,jF_{\ell,j} is a monomial in r=R+K+π(R)r=R+K+\pi(R) generators, with an exponent vector in Zr\mathbb{Z}^{r} (possibly with negative entries) that does not depend on tt. Reducing these vectors modulo mm gives a sequence of

M0=∑ℓ=1R(⌊Kℓ⌋+1)>K∑ℓ=1R1ℓ>Klog⁡R,M_0=\sum_{\ell=1}^{R}\left(\left\lfloor\frac{K}{\ell}\right\rfloor+1\right)>K\sum_{\ell=1}^{R}\frac{1}{\ell}>K\log R,

elements of CmrC_m^r.

Suppose that M0≥D(Cmr)M_0\ge D(C_m^r). Then some nonempty subsequence of at most D(Cmr)D(C_m^r) terms has sum zero. The selection is independent of tt. For the corresponding factorials, every generator occurs with total exponent divisible by mm. Thus for every positive integer tt their product is the mm-th power of a positive rational number. Since the product is an integer, this rational number is an integer too.

Let NN be the number of selected factorials. The generator Φℓ\Phi_\ell occurs exactly in the terms of the ℓ\ell-th row, with exponent 11, so the number of selected terms in each row is divisible by mm; in particular m∣Nm\mid N.

Arguments in the same row are distinct. Arguments in different rows have different slopes LR/ℓL_R/\ell, whose differences are at least 11, and shifts in [0,K][0,K]; so they are distinct for t>Kt>K. All arguments are at least LRt/R≥2L_Rt/R\ge2 for large tt.

The number of available factorials exceeds Klog⁡RK\log R, whereas the number of generators is K+R+π(R)K+R+\pi(R). We choose RR first to make log⁡R\log R large enough, and then KK to ensure M0≥D(Cmr)M_0\ge D(C_m^r). If mm is a prime power, let R=⌈em⌉R=\lceil e^m\rceil, R0=R+π(R)R_0=R+\pi(R) and K=(m−1)R0K=(m-1)R_0. Then r=mR0r=mR_0 and M0>Klog⁡R≥m(m−1)R0=r(m−1)M_0>K\log R\ge m(m-1)R_0=r(m-1), so M0≥D(Cmr)M_0\ge D(C_m^r) and N≤D(Cmr)=1+m(m−1)R0N\le D(C_m^r)=1+m(m-1)R_0. Since m∣Nm\mid N, we get N≤m(m−1)R0≤2m(m−1)⌈em⌉N\le m(m-1)R_0\le2m(m-1)\lceil e^m\rceil.

For general mm, let R=⌈ecm+1⌉R=\lceil e^{c_m+1}\rceil, R0=R+π(R)R_0=R+\pi(R) and K=cmR0K=c_mR_0. Then r=(cm+1)R0r=(c_m+1)R_0 and M0>Klog⁡R≥cm(cm+1)R0=cmr≥D(Cmr)M_0>K\log R\ge c_m(c_m+1)R_0=c_mr\ge D(C_m^r), which gives N≤cm(cm+1)R0≤2cm(cm+1)⌈ecm+1⌉N\le c_m(c_m+1)R_0\le2c_m(c_m+1)\lceil e^{c_m+1}\rceil.

Corollary A.2. For every m≥2m\ge2 there are N≥1N\ge1, q0≥1q_0\ge1, a residue class bb modulo q0q_0 and λ>0\lambda>0 such that every sufficiently large n≡b(modq0)n\equiv b\pmod{q_0} admits a representation

a1!⋯aN!=ym,λn≤a1<⋯<aN=n,a_1!\cdots a_N!=y^m,\qquad\lambda n\le a_1<\cdots<a_N=n,

with NN bounded as in Theorem A.1.

Proof. For large tt the order of the functions ai(t)a_i(t) in Theorem A.1 is fixed. The largest has the form q0t+bq_0t+b, and takes every sufficiently large value n≡b(modq0)n\equiv b\pmod{q_0}, while the ratio of the smallest to the largest tends to min⁡iαi/max⁡iαi>0\min_i\alpha_i/\max_i\alpha_i>0.

Remark A.3. If only a specified set of rows is used, LRL_R can be replaced by the least common multiple of their denominators. The construction is finite and effective.

Acknowledgements

Large language models (ChatGPT and Claude) were used in developing and checking arguments, locating references, and editing the exposition. The author is responsible for all content.

References

  1. [1]A. Bérczes, A. Dujella, I. Hajdu, N. Saradha and R. Tijdeman, Products of factorials which are powers, Acta Arith. 190 (2019), 339–350. doi:10.4064/aa171008-16-10.DOI
  2. [2]T. F. Bloom, Erdős Problem #374, https://www.erdosproblems.com/374, accessed September 2026.
  3. [3]P. Erdős and R. L. Graham, On products of factorials, Bull. Inst. Math. Acad. Sinica 4 (1976), 337–355. Author archive.
  4. [4]P. Erdős and J. L. Selfridge, The product of consecutive integers is never a power, Illinois J. Math. 19 (1975), 292–301. Author archive.DOI
  5. [5]P. X. Gallagher, A larger sieve, Acta Arith. 18 (1971), 77–81. doi:10.4064/aa-18-1-77-81.DOI
  6. [6]M. N. Huxley, On the difference between consecutive primes, Invent. Math. 15 (1972), 164–170. doi:10.1007/BF01418933.DOI
  7. [7]R. Lidl and H. Niederreiter, Finite Fields, 2nd ed., Encyclopedia Math. Appl. 20, Cambridge University Press, 1997.
  8. [9]K. Matomäki, M. Radziwiłł, X. Shao, T. Tao and J. Teräväinen, Singmaster’s conjecture in the interior of Pascal’s triangle, Q. J. Math. 73 (2022), 1137–1177. doi:10.1093/qmath/haac006.DOI
  9. [10]R. Meshulam, An uncertainty inequality and zero subsums, Discrete Math. 84 (1990), 197–200. doi:10.1016/0012-365X(90)90375-R.DOI
  10. [11]J. E. Olson, A combinatorial problem on finite Abelian groups, I, J. Number Theory 1 (1969), 8–10. doi:10.1016/0022-314X(69)90021-3.DOI
  11. [12]M. Skałba, Products of disjoint blocks of consecutive integers which are powers, Colloq. Math. 98 (2003), 1–3. doi:10.4064/cm98-1-1.DOI
  12. [13]M. Skałba, Products of disjoint blocks of integers being high powers, Int. J. Number Theory 15 (2019), 85–88. doi:10.1142/S1793042118501749.DOI
  13. [14]T. Tao, Products of consecutive integers with unusual anatomy, preprint (2026). arXiv:2603.27990.arxiv.org/abs/2603.27990
  14. [15]P. van Emde Boas and D. Kruyswijk, A combinatorial problem on finite abelian groups III, Report ZW 8/69, Mathematisch Centrum, Amsterdam, 1969. CWI repository.

Paper details

vlnc:W_2jxv8kpd
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

ChatGPT, Claude

View statement
Looking for related papers…
Contents