On the least common multiple of several random integers
Alin Bostan, Alexander Marynych, Kilian Raschel

TL;DR
This paper investigates the asymptotic distribution of the least common multiple of several random integers, providing a probabilistic criterion for convergence and identifying the limit as an infinite product of independent prime-indexed variables.
Contribution
It introduces a probabilistic approach to analyze the distribution of the LCM of random integers and extends existing theorems by deriving new convergence criteria and explicit limit representations.
Findings
Established a criterion for distributional convergence of scaled LCMs
Identified the limit as an infinite product of independent prime-related variables
Computed the generating function of a related geometric sum
Abstract
Let denote the least common multiple of independent random integers uniformly chosen in . In this note, using a purely probabilistic approach, we derive a criterion for the convergence in distribution as of for a wide class of multiplicative arithmetic functions~ with polynomial growth . Furthermore, we identify the limit as an infinite product of independent random variables indexed by prime numbers. Along the way, we compute the generating function of a trimmed sum of independent geometric laws, occurring in the above infinite product. This generating function is rational; we relate it to the generating function of a certain max-type Diophantine equation, of which we solve a generalized version. Our results extend theorems by Erd\H{o}s and Wintner (1939), Fern\'{a}ndez and Fern\'{a}ndez (2013) and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
On the least common multiple
of several random integers
Alin Bostan
Alin Bostan, Inria, Université Paris-Saclay, 1 rue Honoré d’Estienne d’Orves, 91120 Palaiseau, France
,
Alexander Marynych
Alexander Marynych, Faculty of Computer Science and Cybernetics, Taras Shevchenko National University of Kyiv, 01601 Kyiv, Ukraine
and
Kilian Raschel
Kilian Raschel, CNRS & Institut Denis Poisson, Université de Tours and Université d’Orléans, 37200 Tours, France
Abstract.
Let denote the least common multiple of independent random integers uniformly chosen in . In this note, using a purely probabilistic approach, we derive a criterion for the convergence in distribution as of for a wide class of multiplicative arithmetic functions with polynomial growth . Furthermore, we identify the limit as an infinite product of independent random variables indexed by prime numbers. Along the way, we compute the generating function of a trimmed sum of independent geometric laws, occurring in the above infinite product. This generating function is rational; we relate it to the generating function of a certain max-type Diophantine equation, of which we solve a generalized version. Our results extend theorems by Erdős and Wintner (1939), Fernández and Fernández (2013) and Hilberdink and Tóth (2016).
Key words and phrases:
Convergence in distribution, least common multiple, prime products, trimmed sums of geometric laws
2010 Mathematics Subject Classification:
Primary: 11A05, 11N37; Secondary: 11A25, 60F05
This project has received funding from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme under the Grant Agreement No 759702.
1. Introduction
A celebrated result due to Dirichlet [13] states that two random positive integers are coprime with probability . A heuristic argument goes as follows. A prime divides a random integer with probability , and does not divide independent and simultaneously with probability . Hence the event occurs with probability
[TABLE]
where denotes the set of prime numbers. An equivalent restatement is that two random positive integers admit an expected number of common positive integer divisors, or that the expected number of integers between and which are coprime with equals . More generally, Cesàro showed [7, 8] that for positive random integers, the probability that they are relatively prime is , where is the Riemann zeta function. For a nice account of the rich history of Dirichlet’s result, see [1].
As stated, these facts are however not very precise, since there is no uniform distribution on the set of positive integers. What we have implicitly considered above is the uniform distribution on and then we have taken the limit as goes to infinity. Formally, if denotes the probability that positive integers, chosen uniformly at random from , are relatively prime, i.e.
[TABLE]
then
[TABLE]
Moreover, the following estimates for the rate of convergence are known for , and , see e.g. [29] and [12]. Further refinements of these celebrated results can be found in the recent papers [18, 25, 26].
Cesàro also considered similar questions when the greatest common divisor (gcd) is replaced by the least common multiple (lcm). He proved in [9] that the expected lcm of two random integers is asymptotically equal to their product multiplied by the constant , and more generally that if and are independent copies of a random variable with the uniform distribution on , then the moments of their least common multiple behave like
[TABLE]
In contrast with the case of the gcd, the extension of this result to the lcm of several random integers is much more subtle. This is the topic of the current note.
Let thus be independent copies of a random variable with the uniform distribution on . In what follows, we are interested in asymptotic properties of the distribution of the least common multiple
[TABLE]
as , and more generally of the quantity , for a wide class of multiplicative arithmetic functions , with denoting . Recall that a function is said to be arithmetic if its domain of definition is and its range is . An arithmetic function is called multiplicative if and if as soon as and are coprime.
Our motivation for the present paper comes from two recent works, one by Fernández and Fernández [19] and the other by Hilberdink and Tóth [23].
In 2013 Fernández and Fernández proved, see Theorem 3(b) in [19], a generalization of Cesàro’s result for the lcm of three random integers. More precisely, they showed that the moments behave asymptotically like as tends to infinity for every fixed . Here, the constant is equal (in the notation of [19]) to , where is the asymptotic proportion of triples of integers that are pairwise coprime, and where is the Dirichlet series . An easy computation shows that the constant admits the equivalent expression
[TABLE]
In particular the expected lcm of three random positive integers is asymptotically equal to their product multiplied by the constant . The method used by Fernández and Fernández [19, §4] relies on probabilistic arguments combined with the classical identity
[TABLE]
Although this identity does admit a generalization for integers, the probabilistic arguments used in [19] do not seem to extend smoothly to the case .
Instead of that, for arbitrary , Fernández and Fernández provide in Theorem 1 in [19] upper (resp. lower) bounds for the upper (resp. lower) limit of the probability , , but these upper and lower bounds are different. Only for and these bounds imply that the sequence actually converges to a nondegenerate limit, which is when and the aforementioned constant when .
It is natural to ask whether such a convergence result also holds for . The positive answer to this question is implicit in the work of Hilberdink and Tóth [23], see Theorem 2.1 therein. Generalizing both the results of Cesàro [9] (for ) and Fernández and Fernández [19] (for ), they managed to prove that for any and , the moments behave asymptotically like as tends to infinity, where the constant is equal to
[TABLE]
Hilberdink and Tóth also proved, see Corollary 1 in [23], that the -variate sum above simplifies in the cases , and to an explicit rational function in , allowing to retrieve the value due to Cesàro, and the value in Eq. (1) due to Fernández and Fernández. The method used by Hilberdink and Tóth for is effective and could yield an algorithm that computes (in principle) a formula similar to (1) for any given . However, the algorithm has complexity exponential in , so in practice it yields formulas for few values of .
One of the byproducts of the present work is that we further simplify the expression of in (2). Precisely, we prove, see Corollary 2.7 below, that
[TABLE]
where is the following explicit univariate rational function:
[TABLE]
The fact that the term in the product defining in (2) is a rational function in is not surprising. This follows from the fact that if denotes the number of solutions in , where , of the max-type linear Diophantine equation
[TABLE]
then a classical result due to Ehrhart [14] implies that the generating functions
[TABLE]
are rational. Indeed, one can split the orthant into wedges , where is a permutation of , get a rational generating function on each wedge by [14], and use inclusion-exclusion to take care of the boundaries where the regions intersect. What is more interesting in our case is that we get an explicit generating function. Details are given in the Appendix.
A trivial consequence of Theorem 2.1 in [23] is that for every , the sequence of moments converges to the constant as , whence, by the classical method of moments (see e.g. Example (d) on page 251 in [17]) the following convergence in distribution holds
[TABLE]
where is a random variable with values in such that for all . Conversely, since the sequence is uniformly bounded by , the convergence in distribution (4) yields the convergence of the moments, and thereby a particular case of Theorem 2.1 in [23] when restricted to power functions . The aforementioned Theorem 2.1 in [23] provides general conditions on a multiplicative function of a polynomial growth that ensure the convergence of moments
[TABLE]
as , to a finite positive limit. The approach used in [23] to derive convergence of (5) is purely analytical. Even in the simple case (4) it does not shed light on the probabilistic mechanisms behind this convergence, nor on the probabilistic structure of the limit . Moreover, in general it does not provide a distributional convergence of
[TABLE]
as . The main contributions of the current note is a derivation of a criterion for the convergence in distribution of (6), as , by using a purely probabilistic approach, see Theorem 2.3 below. Furthermore, we manage to identify the limit of (6) as an infinite product of independent random variables indexed by the set of prime numbers . Further comparison of our main results and Theorem 2.1 in [23] shall be given in Remark 2.5 below.
As we shall see, our main result is very close in spirit to a well-known result in probabilistic number theory, namely the celebrated Erdős–Wintner theorem, see for example [15] or Theorem 3 in [22]. Let us recall that the latter asserts that if is a random variable with uniform distribution on and if is an additive arithmetic function, then the sequence converges in distribution if and only if the following three series converge for some :
[TABLE]
Moreover, if the limit of exists, it necessarily satisfies
[TABLE]
and thus is a sum of independent random variables indexed by primes. The underlying probabilistic result behind the Erdős–Wintner result is Kolmogorov’s three series theorem, see Chap. III.4 in [30]. Let us further point out that by Kolmogorov’s three series theorem, the conditions (7) are equivalent to the almost sure convergence of the series
[TABLE]
where is a family of mutually independent geometric random variables, such that
[TABLE]
Thus (8) is a representation of , the limit of as .
Let us finally mention some recent works related to the problem considered here. In two recent papers [2, 10] the authors analyze an asymptotic behavior of , where is a random subset of obtained by removing every element with a fixed probability . Since in this case the cardinality of increases linearly as , the model exhibits a completely different asymptotic behavior, see e.g. Corollary 1.5 in [2]. Another related problem was addressed in [24, 31], where it was proved that the set of -tuples of positive integers such that any of them are relatively prime possesses an asymptotic density. Similarly to our results the explicit formula for this density involves product over of rational functions of , see Eq. (6) in [31].
We close the introduction by setting up some notation. We shall denote by the exponent of the prime number in the prime factorization of , that is
[TABLE]
Note that is zero for all but finitely many . We shall further ubiquitously use the family of mutually independent random variables such that is distributed like in (9) for every . Finally, given any , we shall denote by the maximum of real numbers .
2. Main results
Given a multiplicative function and , define the infinite random product
[TABLE]
We characterize the convergence of in Proposition 2.1 below. The denominators in the infinite product (10) should be thought of as normalization factors. Note also that taking as the identity function and , the quantity becomes
[TABLE]
The ordinary generating function of and the moments of will be computed in Proposition 2.6 and Proposition 2.7.
For and , put
[TABLE]
Proposition 2.1**.**
The infinite product on the right-hand side of (10) converges a.s. if and only if the following three assumptions are satisfied: for some ,
- (a)
the series converges; 2. (b)
the series converges; 3. (c)
the series converges.
If moreover as along the prime numbers, then (a) holds automatically, (b) implies (c), and (b) is equivalent to
- (d)
the series converges.
Remark 2.2*.*
Note that the assumption (i) in [23] implies as along the prime numbers, as well as (d).
In order to illustrate how demanding item (d) above is, let us recall the most classical result on the Bertrand-type series:
[TABLE]
The proof of Proposition 2.1, as well as proofs of all results from this section, are postponed to Section 3. With Proposition 2.1 at hand, we can formulate our main result.
Theorem 2.3**.**
Assume that is a multiplicative arithmetic function and that . The following statements are equivalent:
- (i)
the infinite product (10) defining converges a.s.; 2. (ii)
the conditions (a), (b) and (c) of Proposition 2.1 are satisfied; 3. (iii)
* converges a.s. and the following convergence in distribution holds*
[TABLE] 4. (iv)
* converges a.s. and*
[TABLE]
where are independent copies of a random variable with the uniform distribution on , and are also independent of .
Remark 2.4*.*
The identity function obviously satisfies assumptions (a), (b) and (c) with , thus with our notation (11),
[TABLE]
and
[TABLE]
The quantity in (11) is a.s. positive. As we have already mentioned in the introduction, both (15) and (16) follow from the results of [23].
Remark 2.5*.*
Let us now compare our Theorem 2.3 with Theorem 2.1 in [23] in more details. Whereas Hilberdink and Tóth’s main focus is placed on the convergence of the first moments (5) of the variables (6) (and actually of all moments, because in (5) one may replace by ), our Theorem 2.3 provides much less restrictive conditions, see Remark 2.2 above, ensuring the convergence in distribution of (6). Obviously, these results do overlap in some particular cases: convergence of moments can give convergence in distribution (e.g. if the method of moments applies, as for (4)); conversely, convergence in distribution may yield convergence of moments (for example, when the limit is compactly supported). But in general, they are of different nature. Furthermore, the limiting random variable (10), being almost surely finite under assumptions (a), (b) and (c) in Proposition 2.1, might have infinite power moments. Thereby in general we cannot expect convergence of the moments under (a), (b) and (c) alone. Another important observation is that we do not need any assumptions about the behavior of for (condition (ii) in [23]). Indeed, as we shall show in Section 3, powers of primes do not have impact in the a.s. convergence of the infinite product which defines . Note that the same phenomenon occurs in the Erdős–Wintner theorem, see conditions (7). On the other hand, the behavior of should impact the finiteness of power moments of explaining the appearance of condition (ii) in [23].
Let us close Section 2 by studying some properties of the random variable in (11). Plainly, it is an infinite product of blocks along primes , each of them being equal to raised to the power , where
[TABLE]
Besides the very particular case , for which the latter reduces to (and thus everything is known), the law of the random variable in (17) is not trivial. Let us mention in passing that quantities
[TABLE]
where are iid random variables and is their arrangement in nondecreasing order, are called trimmed sums, see for instance [11]. However, we have not been able to locate in the vast body of literature on trimmed sums any results about the exact distribution of .
Proposition 2.6**.**
Let and . The ordinary generating function of is rational and is given for by
[TABLE]
In particular, one has , as well as
[TABLE]
Notice that the expression of above is clear, as is distributed as .
Using Proposition 2.6 we immediately obtain the following corollary generalizing formulas (11) and (12) in [23].
Corollary 2.7**.**
For we have
[TABLE]
In particular, using the Euler product of the Riemann zeta-function
[TABLE]
we obtain , as well as
[TABLE]
In general, it is not possible to further simplify the above Euler products. Notice that many well-known constants (in particular in number theory) have Euler product expansions, see e.g. [27, 28] and the whole Chap. 2 in [20].
3. Proofs
Proof of Proposition 2.1.
Passing to logarithms, we see that the a.s. convergence of the infinite product is equivalent to the a.s. convergence of the series
[TABLE]
First of all, note that since it is enough to show that
[TABLE]
converges a.s. Further, we apply the Borel–Cantelli lemma to check that for any ,
[TABLE]
Indeed,
[TABLE]
Thus, the event occurs only for finitely many a.s. and the convergence of (19) is equivalent to that of
[TABLE]
because obviously the event implies . Note that the series in (21) consists of independent summands. Therefore, the assumptions (i), (ii) and (iii) are necessary and sufficient for the a.s. convergence of (21) by Kolmogorov’s three series theorem (see page 317 in [17]), since
[TABLE]
The main ingredient in the subsequent proofs is contained in the following elementary lemma. Its first part is well known in the probabilistic literature and is given explicitly in [4], see formula (1.45) on page 28 therein. The second and third parts are just slight extensions thereof. Recall that denotes a random variable with uniform distribution on .
Lemma 3.1**.**
Let
[TABLE]
be the decomposition of into prime factors. Then
- (i)
we have
[TABLE] 2. (ii)
we have
[TABLE]
with being uniformly distributed on and independent of ; 3. (iii)
for , and , we have
[TABLE]
where the constant in the -term does not depend on .
Proof.
Let us prove part (ii). Fix , and . One has
[TABLE]
Part (i) obviously follows from part (ii). For the item (iii), notice that
[TABLE]
and thus
[TABLE]
The proof is complete. ∎
Proof of Theorem 2.3.
With Lemma 3.1 at hand, the proof of Theorem 2.3 is more or less straightforward. From Proposition 2.1, we already know that (i) and (ii) are equivalent.
Let us show that (i) implies (iii). Let us first write the prime power decompositions
[TABLE]
Then
[TABLE]
and, using multiplicativity of ,
[TABLE]
Fix and decompose
[TABLE]
By Lemma 3.1 (i) and the continuous mapping theorem, see Theorem 2.7 in [5],
[TABLE]
By (i) we have
[TABLE]
Denoting by the event and using Theorem 3.2 in [5], it remains to show that for every fixed ,
[TABLE]
We have
[TABLE]
We deal with the latter two summands separately. For , we have
[TABLE]
To deal with we pick such that the conditions (a), (b) and (c) in Proposition 2.1 hold. We have
[TABLE]
The first probability can be estimated as follows
[TABLE]
as , by assumption (a) in Proposition 2.1.
It remains to check that
[TABLE]
see (23). To that aim, we first notice that
[TABLE]
Moreover, the events are disjoint and equiprobable. Thus, the limit (24) follows if we can check that
[TABLE]
where .
Keeping in mind that for , we see that that it is enough to prove that
[TABLE]
as well as
[TABLE]
Note that if , thus (26) is equivalent to
[TABLE]
The latter relation follows from Markov’s inequality, since
[TABLE]
The latter sum converges to zero as , by assumption (c) in Proposition 2.1.
In order to derive (25), we again use Markov’s inequality to obtain
[TABLE]
and, further,
[TABLE]
We have already estimated the first sum, and thus focus only on the second one. Firstly, as and using part (iii) of Lemma 3.1, we may write
[TABLE]
With the above expansion at hand, we have
[TABLE]
With denoting the number of primes , we have
[TABLE]
as , since as by the prime number theorem.
Finally, using assumption (b) of Proposition 2.1, we see that
[TABLE]
and (25) follows.
Summarizing, we see that (i) implies (iii). To see that (iii) implies (iv), just note that by Lemma 3.1 (ii) and (iii), we have
[TABLE]
Therefore, (14) follows by the continuity of multiplication and the continuous mapping theorem. Obviously, (iv) implies (i). The proof of Theorem 2.3 is complete. ∎
Proof of Proposition 2.6.
We start with an auxiliary lemma, which in our opinion is interesting in its own and will be extended in Appendix A to more general Diophantine equations.
Lemma 3.2**.**
Let and be fixed integers. Then
[TABLE]
and
[TABLE]
Proof.
It is known that the number of compositions of into summands from the set is given by
[TABLE]
see e.g. I.15 on page 45 in [21]. Note that the quantity on the left-hand side of (27) is equal to the number of compositions of into summands from the set . Let be the number of non-zero summands. Then
[TABLE]
which proves (27). Formula (28) follows by subtraction. ∎
Now we are in position to prove Proposition 2.6. We have:
[TABLE]
Using Lemma 3.2 we continue as follows
[TABLE]
where the last equality follows by evaluating the term in square brackets at . The claim of lemma is now a simple consequence of the binomial theorem and subsequent evaluation of resulting geometric series. ∎
Appendix A On a Diophantine equation
In passing, the proof of Proposition 2.6 shows that the number of solutions of the Diophantine equation
[TABLE]
has a rational generating function which can be expressed as follows:
[TABLE]
This may be generalized in the following way. For fixed and , consider the Diophantine equation
[TABLE]
and denote by the number of solutions to (30).
Theorem A.1**.**
We have
[TABLE]
In particular, the generating function is rational.
Proof.
Decomposing upon the value of the maximum of , one may write
[TABLE]
Further,
[TABLE]
where we have put
[TABLE]
It remains to apply formula (6) in [16], which is an extension of (27), to obtain
[TABLE]
Acknowledgments
We would like to express our gratitude to Djalil Chafaï and Richard Stanley for interesting discussions and to thank the anonymous referee for drawing our attention to related papers.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Abramovich, S. and Nikitin, Y. Yu. (2017). On the probability of co-primality of two natural numbers chosen at random: from Euler identity to Haar measure on the ring of adeles. Bernoulli News , 24 , 7–13.
- 2[2] Alsmeyer, G., Kabluchko, Z. and Marynych, A. (2019). Limit theorems for the least common multiple of a random set of integers. To appear in Trans. Amer. Math. Soc.
- 3[3] Apostol, T. (1976). Introduction to analytic number theory. Undergraduate Texts in Mathematics. Springer-Verlag, New York-Heidelberg.
- 4[4] Arratia, R., Barbour, A. D. and Tavaré, S. (2003). Logarithmic Combinatorial Structures: a Probabilistic Approach . EMS Monographs in Mathematics. European Mathematical Society.
- 5[5] Billingsley, P. (1999). Convergence of probability measures. Second edition. Wiley Series in Probability and Statistics: Probability and Statistics. John Wiley & Sons.
- 6[6] Bingham, N. H., Goldie, C. M. and Teugels, J. L. (1989). Regular variation . Encyclopedia of Mathematics and its Applications, 27. Cambridge University Press.
- 7[7] Cesàro, E. (1884). Probabilités de certains faits arithmétiques. Mathesis , 4 , 150–151.
- 8[8] Cesàro, E. (1885). Sur le plus grand commun diviseur de plusieurs nombres. Ann. Mat. Pura Appl. , 13 , 291–294.
