betaFeedback

WorksMathematics

Reconstruction and sign prediction from sampled prime factors

Abstract

How much of an integer can be recovered from a few of its prime factors? We study exact prime labels sampled with logarithmic weights from an integer of harmonic law, distinguishing reconstruction, certification without error, and prediction of a prescribed sign. With one observed integer, sampling with replacement has its transition at order log⁡M\log M, whereas sequential removal has a uniform termination profile and a Gaussian transition at order log⁡log⁡M\log\log M. For the two related integers nn and an+1an+1, a∈{1,3}a\in\{1,3\}, one conditionally independent label from each gives optimal reconstruction probability 1/2+o(1)1/2+o(1); the optimal zero-error certificate has mass 3−4log⁡2+o(1)3-4\log2+o(1). One diverging budget and one auxiliary label suffice for reconstruction with probability tending to one under every coupling with the specified conditional marginals. Under conditional independence of the two sampling chains, we determine fixed-budget reconstruction and entropy profiles for the with-replacement, without-replacement and mixed experiments, with matching reconstruction upper bounds over all decoders. Two labels also predict every prescribed sign with success at least 3/4−o(1)3/4-o(1). For either Liouville sign we give a strict asymptotic upper bound below 21293/2620821293/26208, using large-sieve cancellation, smooth-supported dispersion, and an explicit extension to rational residue classes. The remaining signed posterior is identified precisely. Finally, when one observer knows a rough cofactor and another knows three complete small-prime parts, reconstruction and one-message Liouville-sign prediction are governed by a four-variable Dickman probability, for which we give a reproducible numerical enclosure.

Prepared with AI assistance

Introduction and main results

Knowing a prime divisor of an integer gives both a congruence and a piece of its factorisation. These two uses of the same observation lead to different reconstruction mechanisms. Repeated observations of a single integer must eventually determine its missing small valuations. Observations of two neighbouring integers can instead combine through the Chinese remainder theorem, long before either factorisation has been fully revealed. This paper quantifies the best decisions available from the exact observed labels.

A small example explains why the decision itself must be specified. Take an origin in [10,100)[10,100), and suppose that the observations are 5∣n5 \mid n and 7∣n+17 \mid n+1. The compatible origins are 20, 55, 90. Returning the least one is correct when the origin is 20, even though the same transcript cannot certify that answer without error. Predicting a sign is a third problem: a transcript may be informative about a sign even when it does not determine the integer. All three questions concern the posterior distribution, but optimise different functionals of it.

The sampled-label experiments

For an integer M≥3M \ge3, set

IM=[M,M2)∩N,TM=∑n∈IM1n,μM(n)=1IM(n)nTM,L=log⁡M,V=log⁡log⁡M.(1)I_M = [M,M^2) \cap\mathbb{N}, \qquad T_M = \sum_{n \in I_M} \frac{1}{n}, \qquad\mu_M(n) = \frac{\mathbf{1}_{I_M}(n)}{nT_M}, \qquad L = \log M, \qquad V = \log\log M. \tag*{(1)}

The hidden origin is n∼μMn \sim\mu_M. Write vp(n)v_p(n) for its prime valuations, Ω(n)=∑pvp(n)\Omega(n) = \sum_p v_p(n), ω(n)=#{p:p∣n}\omega(n) = \#\{p : p \mid n\} and λ(n)=(−1)Ω(n)\lambda(n) = (-1)^{\Omega(n)}. All logarithms are natural unless a base is written explicitly. For laws on the same space, dTV(P,Q)=12∥P−Q∥1d_{\mathrm{TV}}(P,Q) = \frac{1}{2}\lVert P-Q\rVert_1.

At a nontrivial integer uu, one prime label has distribution

κu(p)=vp(u)log⁡plog⁡u.(2)\kappa_u(p) = \frac{v_p(u)\log p}{\log u}. \tag*{(2)}

With replacement, each observation uses this kernel at the original uu. Without replacement, one occurrence of the selected prime is removed and the kernel is applied to the remaining cofactor; after termination the transcript is padded by a distinguished symbol. The exact prime labels, their order and their repetitions are observed. The unrevealed cofactor, log⁡u\log u, and the total number of prime factors are not supplied. When a final termination bit is included, its role will be stated explicitly; we also prove the corresponding limits without it.

For a transcript TT, define the optimal reconstruction probability and sign advantage by

RM(T)=sup⁡n^P(n^(T)=n),AM(W;T)=∥E[W(n)∣T]∥1,(3)R_M(T) = \sup_{\hat n} \mathbb{P}(\hat n(T)=n), \qquad A_M(W;T) = \lVert\mathbb{E}[W(n)\mid T]\rVert_1, \tag*{(3)}

where W:IM→{−1,1}W : I_M \to\{-1,1\} is a prescribed sign. The best probability of a correct sign decision is (1+AM(W;T))/2(1+A_M(W;T))/2. An error-free certificate may output ⊥\perp, but every integer it outputs must be correct on every positive-probability transcript. There is no computational restriction on any decoder.

One anchor: two observation clocks

One anchor already displays the effect of the sampling rule. With replacement, the transition occurs at r≍log⁡Mr \asymp\log M. § 3.6 identifies the complete critical profiles through a product of geometric–Poisson channels, including the averaging over the unobserved logarithmic size. Their small-time asymptotics are

I(τ)∼π212τ2,J(τ)∼(log⁡2)τ(τ↓0),I(\tau) \sim\frac{\pi^2}{12}\tau^2, \qquad J(\tau) \sim(\log2)\tau\qquad(\tau\downarrow0),

where II is the sign-advantage profile and JJ the reconstruction profile. The limit in MM is taken first. Below this scale both quantities vanish; above it both tend to one.

Without replacement the correct clock is the total number of prime occurrences. In the notation of § 3.8,

sup⁡r≥0∣RM(r)−P(Ω(n)≤r)∣⟶0,(4)\sup_{r \ge0} \left|R_M(r)-\mathbb{P}(\Omega(n)\le r)\right| \longrightarrow0, \tag*{(4)}

and the same comparison holds for the Liouville advantage. Consequently, for fixed t∈Rt \in\mathbb{R} and r=V+tV+o(V)r = V + t\sqrt{V} + o(\sqrt{V}), reconstruction tends to Φ(t)\Phi(t) and sign-prediction success to (1+Φ(t))/2(1+\Phi(t))/2. The nontrivial part of (4) is its upper bound: every decoder has negligible extra success before termination. The proof separates a finite set of small valuations, shows that they are unlikely to be observed sufficiently far before termination, and then lets this finite set grow. Erdős–Kac supplies the Gaussian shape after this decision comparison has been established.

Two anchors: the exact labels form a useful joining

Take anchors u0=nu_0=n and u1=an+1u_1=an+1, with a∈{1,3}a \in\{1,3\}. Each chain follows one of the two rules above. For positive budgets, one budget tending to infinity already suffices for reconstruction with probability tending to one, for every coupling having the specified conditional marginals. An explicit asymmetric decoder combines the almost-complete factor information at one anchor with one sufficiently large auxiliary prime at the other.

Exact fixed-budget profiles require conditional independence of the two chains given nn. Write ++ for with replacement and −- for without replacement. For positive fixed r,sr,s,

RM+,+(r,s)⟶1−(r+sr)−1,(5)\mathcal{R}^{+,+}_{M}(r,s) \longrightarrow1-\binom{r+s}{r}^{-1}, \tag*{(5)}
RM−,−(r,s)⟶1−∫x+y≤1fr−(x)fs−(y) dx dy,(6)\mathcal{R}^{-,-}_{M}(r,s) \longrightarrow1-\int_{x+y\leq1} f_r^-(x)f_s^-(y)\,\mathrm{d}x\,\mathrm{d}y, \tag*{(6)}
RM+,−(r,s)⟶1−(r+1)−s,(7)\mathcal{R}^{+,-}_{M}(r,s) \longrightarrow1-(r+1)^{-s}, \tag*{(7)}

where x,y>0x,y>0 in the integral and

fr−(x)=[−log⁡(1−x)]r−1(r−1)!,0<x<1.f_r^-(x)=\frac{[-\log(1-x)]^{r-1}}{(r-1)!}, \qquad0<x<1.

The density for the with-replacement observed logarithmic product is fr+(x)=rxr−1f_r^+(x)=rx^{r-1}. These are classical size-biased partition densities. The arithmetic step is to count the two-anchor observation jointly on the region where its congruence modulus is smaller than the origin, and then show that no decoder extracts a positive limiting reconstruction mass from this region. Full proofs appear below, together with the leading entropy and mutual-information coefficients. No independence of the two complete affine factorisations is assumed.

In particular, one label at each anchor gives optimal reconstruction 1/2+o(1)1/2+o(1). The optimal error-free certificate instead has mass

3−4log⁡2+o(1).(8)3-4\log2+o(1). \tag*{(8)}

The gap comes from the distinction illustrated by the opening example: a decoder may correctly choose one of several possible origins, while an error-free certificate must abstain there.

A universal sign guarantee and the Liouville remainder

With one conditionally independent label at each anchor, there is an observable acceptance region of mass 1/2+o(1)1/2+o(1) on which the decoder’s conditional error tends uniformly to zero. Returning any prescribed sign of the decoded origin, and guessing fairly elsewhere, gives success at least 3/4−o(1)3/4-o(1), uniformly over the prescribed sign. A fixed periodic sign, for example (−1)n(-1)^n, attains this limit.

For the arithmetic signs W(n)=λ(n)W(n)=\lambda(n) or λ(an+1)\lambda(an+1), the optimal success probability has the more informative form

Succ⁡M∗(W)=34+12ΛM(W)+o(1),(9)\operatorname{Succ}^{*}_{M}(W)=\frac{3}{4}+\frac{1}{2}\Lambda_M(W)+o(1), \tag*{(9)}

where ΛM(W)\Lambda_M(W) is the absolute mass of the signed posterior on the unreconstructed sector, defined in § 4.10. This isolates the quantity that would have to vanish to make the universal guarantee exact for Liouville. Large-sieve cancellation, smooth-supported dispersion and a rational-residue extension give, for both signs,

34≤lim inf⁡MSucc⁡M∗(W)≤lim sup⁡MSucc⁡M∗(W)≤1316−126208−38γη<2129326208.(10)\frac{3}{4} \le\liminf_{M} \operatorname{Succ}^{*}_{M}(W) \le\limsup_{M} \operatorname{Succ}^{*}_{M}(W) \le\frac{13}{16} - \frac{1}{26208} - \frac{3}{8}\gamma_{\eta} < \frac{21293}{26208}. \tag*{(10)}

The positive constant γη\gamma_{\eta} is a specified Dickman integral. The supplementary saving involving it is not assigned a numerical value, because the smooth-dispersion input supplies its exponent by existence. The rational-sector saving 1/262081/26208 is explicit. The equality Succ⁡M∗(λ)=3/4+o(1)\operatorname{Succ}^{*}_{M}(\lambda)=3/4+o(1) is not proved here.

A different observation: complete small-prime parts

Part III studies an experiment with substantially more structured information. Alice receives ry(n)r_y(n); Bob receives the complete zz-smooth parts of n+1,3n+1,3n+2n+1,3n+1,3n+2. The harmonic window is now (U,V](U,V], with 1≤U<V1\le U<V, y,z→∞y,z\to\infty, ℓ=log⁡(V/U)→∞\ell=\log(V/U)\to\infty and log⁡(2max⁡(y,z))=o(ℓ)\log(2\max(y,z))=o(\ell). If b/log⁡2y→tb/\log_2 y\to t and log⁡z/log⁡y→τ\log z/\log y\to\tau, the optimal reconstruction probability is

P(t,τ)=P{D0<t, D0<τ(D1+D2+D3)},P(t,\tau)=\mathbb{P}\{D_0<t,\ D_0<\tau(D_1+D_2+D_3)\},

for independent Dickman probability variables. The reconstruction upper bound permits interaction, while one message attains it. For one message from Bob to Alice, optimal Liouville-sign success tends to (1+P(t,τ))/2(1+P(t,\tau))/2. At equal thresholds and unlimited normalised budget, P(∞,1)P(\infty,1) lies in (0.9302864610,0.9302864868)(0.9302864610,0.9302864868). This different numerical value belongs to the complete-table experiment, rather than to the two-prime-label experiment.

Table 1 collects the observation, budget and decision assumptions. In particular, the three constants for one label at each anchor concern three different loss functions. The numerical Dickman constant concerns the richer complete-table experiment.

Previous work and the role of the arithmetic inputs

The probabilistic structure of prime factors has a substantial classical literature. Billingsley’s [2] work concerns the distribution of large prime divisors; Donnelly and Grimmett [4] establish the stick-breaking limit for logarithmically size-biased factors removed successively. Arratia [5] develops couplings with Poisson–Dirichlet factor sizes, and Haddad and Koukoulopoulos [7] prove an optimal-order refinement of the logarithmic-factor coupling. The GEM densities and Ewens partition weights used below are part of the partition theory described by Pitman [6]. Bach’s [3] algorithm addresses the related generative problem of producing a uniform random integer together with its factorisation. In the present experiments, the integer is hidden and only specified samples of its factors are observed. The factor-size limits are inputs to the decision analysis; they do not determine the posteriors of the exact prime labels. Likewise, the Gaussian theorem for the number of prime factors is due to Erdős and Kac [1]; its transfer to the harmonic window here follows by partial summation.

The harmonic Euler model in Part III also has a direct antecedent. Pinsky [8, Proposition 1 and Theorem 1] gives the exact law proportional to 1/a1/a on integers supported on a finite initial set of primes, its independent geometric valuations, and the Dickman limit of the normalised logarithm, with density e−γρe^{-\gamma}\rho. Jaramillo and Yang [9, Proposition 4.1 and Section 4.3] discuss the representation of a harmonic integer in [1,N][1,N] by independent geometric valuations conditioned on their product being at most NN. Further developments concern conditioned Dickman limits for additive functionals [10] and attenuated Poisson–Dirichlet approximations for the prime-factor configuration of a harmonic sample [11]. Thus neither the Euler model nor its Dickman marginal.

References

  1. [1]P. Erdős and M. Kac, The Gaussian Law of Errors in the Theory of Additive Number Theoretic Functions, American Journal of Mathematics 62 (1940), 738–742. doi:10.2307/2371483. https://combinatorica.hu/~p_erdos/1940-12.pdf.DOI
  2. [2]P. Billingsley, On the distribution of large prime divisors, Periodica Mathematica Hungarica 2 (1972), 283–289. doi:10.1007/BF02018667.DOI
  3. [3]E. Bach, How to Generate Factored Random Numbers, SIAM Journal on Computing 17 (1988), 179–193. doi:10.1137/0217012.DOI
  4. [4]P. Donnelly and G. Grimmett, On the Asymptotic Distribution of Large Prime Factors, Journal of the London Mathematical Society (2) 47 (1993), 395–404. doi:10.1112/jlms/s2-47.3.395. Theorem 1 and Corollary 2.DOI
  5. [5]R. Arratia, On the Amount of Dependence in the Prime Factorization of a Uniform Random Integer, in Contemporary Combinatorics, Bolyai Society Mathematical Studies 10 (2002), 29–91. Archived edition: arXiv:1305.0941v1 (manuscript updated September 2000).
  6. [6]J. Pitman, Combinatorial Stochastic Processes, Lecture Notes in Mathematics 1875, Springer, 2006. doi:10.1007/b11601500. Equations (2.19), (3.3) and Theorem 3.2.DOI
  7. [7]T. Haddad and D. Koukouloṕoulos, On Arratia’s coupling and the Dirichlet law for the factors of a random integer, Journal de l’École polytechnique — Mathématiques 12 (2025), 1565–1604. doi:10.5802/jep.317. Theorem 1; arXiv:2406.09360v4.DOI
  8. [8]R. G. Pinsky, A Natural Probabilistic Model on the Integers and Its Relation to Dickman-Type Distributions and Buchstab’s Function, in Probability and Analysis in Interacting Physical Systems, Springer Proceedings in Mathematics & Statistics 283 (2019), 267–294. doi:10.1007/978-3-030-15338-0_10. Proposition 1 and Theorem 1 in arXiv:1606.02965v6, 1 February 2017; first circulated in 2016.DOI
  9. [9]A. Jaramillo and X. Yang, Approximation of smooth numbers for harmonic samples: a Stein method approach, arXiv:2409.16527v2, 3 March 2025; first circulated in 2024. Theorem 3.1, Proposition 4.1 and Section 4.3.arxiv.org/abs/2409.16527
  10. [10]V. Bernal Ramirez and A. Jaramillo, Additive functionals of Harmonic samples: the conditioned Dickman regime, arXiv:2512.02926v2, 8 June 2026. Theorem 3.1.arxiv.org/abs/2512.02926
  11. [11]V. Bernal Ramirez, D. Torres-Flores and A. Jaramillo, Attenuated Poisson Dirichlet approximations for divisibility configurations, arXiv:2606.30349, 29 June 2026.arxiv.org/abs/2606.30349
  12. [12]O. Gorodetsky, A Kubilius model for sieve-theoretic sequences, Analysis Mathematica 52 (2026), 999–1022. doi:10.1007/s10476-026-00178-w. arXiv:2608.14190v1, 14 August 2026.DOI
  13. [13]T. Tao, Mertens’ theorems, expository note, 11 December 2013. Theorem 1 and Remark 1. https://terrytao.wordpress.com/2013/12/11/mertens-theorems/.
  14. [14]J. Teräväinen, On binary correlations of multiplicative functions, Forum of Mathematics, Sigma 6 (2018), e10. doi:10.1017/fms.2018.10. Theorems 1.4 and 1.11, with Definition 1.1, Remark 1.8 and Section 4 in arXiv:1710.01195v2, 21 May 2018.DOI
  15. [15]K. Matomäki, M. Radziwiłł and T. Tao, An averaged form of Chowla’s conjecture, Algebra & Number Theory 9 (2015), 2167–2196. doi:10.2140/ant.2015.9.2167. The classical Davenport estimate is recalled after Lemma 1.4.DOI
  16. [16]S. Drapeau, A. Granville and X. Shao, Smooth-supported multiplicative functions in arithmetic progressions beyond the x^{1/2}-barrier, Mathematika 63 (2017), 895–918. doi:10.1112/S0025579317000225. Theorem 2.2; arXiv:1704.04831.DOI
  17. [17]A. Pascadi, Smooth numbers in arithmetic progressions to large moduli, Compositio Mathematica 161 (2025), 1923–1974. doi:10.1112/S0010437X2500747X. Theorem 1.7, p. 1926, and Theorem 4.2, pp. 1934–1935, in the published edition; arXiv:2304.11696.DOI
  18. [18]B. Green, A note on multiplicative functions on progressions to large moduli, Proceedings of the Royal Society of Edinburgh, Section A: Mathematics 148 (2018), 63–77. doi:10.1017/S0308210517000191. Corrected edition: arXiv:1604.04481v4, 23 April 2018, Proposition 2.2 and equation (3.2).DOI
  19. [19]É. Fouvry and M. Radziwiłł, Level of distribution of unbalanced convolutions, Annales Scientifiques de l’École Normale Supérieure (4) 55 (2022), 537–568. doi:10.24033/asens.2501. Theorem 1.2 and Corollary 1.3 in arXiv:1811.08672v1, 21 November 2018.DOI
  20. [20]S. Bettin and V. Chandee, Trilinear forms with Kloosterman fractions, Advances in Mathematics 328 (2018), 1234–1262. doi:10.1016/j.aim.2018.01.026. Theorem 1, equation (1.2), in arXiv:1502.00769v1, 3 February 2015.DOI
  21. [21]T. Wright, Trilinear Kloosterman fractions I: partially fixed moduli and unbalanced convolutions, arXiv:2604.25177v2, 7 August 2026. Theorem 2.1.arxiv.org/abs/2604.25177
  22. [22]N. G. de Bruijn, On the number of positive integers ≤ x and free of prime factors > y, Proceedings of the Koninklijke Nederlandse Akademie van Wetenschappen, Series A 54 (1951), 50–60. Section 1, equations (1.1)–(1.4), p. 51; the proof of (1.4) is in Section 4. Original article.
  23. [23]R. de la Bretèche and G. Tenenbaum, Friable Averages of Oscillating Arithmetic Functions, in Number Theory in Memory of Eduard Wirsing, Springer, 2023, 43–71. doi:10.1007/978-3-031-31617-3_5. The revised preprint is entitled Friable averages of oscillating multiplicative functions, arXiv:2207.04777v14, 20 July 2024.DOI
  24. [24]H. Iwaniec and E. Kowalski, Analytic Number Theory, American Mathematical Society Colloquium Publications 53, American Mathematical Society, Providence, RI, 2004. doi:10.1090/coll/053. Chapter 5; the fundamental lemma in Section 6.4, pp. 158–160; Sections 7.4–7.5. Authors’ corrections, 8 March 2010.DOI
  25. [25]I. Kontoyiannis, Some information-theoretic computations related to the distribution of prime numbers, arXiv:0710.4076v2, 6 November 2007. Conference version: Counting the primes using entropy, 2008 IEEE Information Theory Workshop, doi:10.1109/ITW.2008.4578665.
  26. [26]J. L. Carter and M. N. Wegman, Universal Classes of Hash Functions, Journal of Computer and System Sciences 18 (1979), 143–154. doi:10.1016/0022-0000(79)90044-8.DOI
  27. [27]M. E. Hellman and J. Raviv, Probability of Error, Equivocation, and the Chernoff Bound, IEEE Transactions on Information Theory 16 (1970), 368–372. doi:10.1109/TIT.1970.1054466. Section III, equation (18), p. 369. Author’s copy.DOI
  28. [28]J. Gil-Pelaez, Note on the Inversion Theorem, Biometrika 38 (1951), 481–482. doi:10.1093/biomet/38.3-4.481.
  29. [29]D. Slepian and J. K. Wolf, Noiseless Coding of Correlated Information Sources, IEEE Transactions on Information Theory 19 (1973), 471–480. doi:10.1109/TIT.1973.1055037.DOI
  30. [30]I. Delsol, O. Rioul, J. Béguinot, V. Rabiet and A. Souloumiac, An Information Theoretic Condition for Perfect Reconstruction, Entropy 26 (2024), 86. doi:10.3390/e26010086. Sections 6.3–6.4.DOI
  31. [31]B. Pouly, Arithmetic reconstruction and error recovery from three quadratic traces, 2026. doi:10.5281/zenodo.23371860. hexagon:2610.00353v1.
  32. [32]OpenAI, The joint Dickman law for consecutive integers, OpenAI Math Release preprint, 24 September 2026. Repository snapshot, 6 October 2026 (commit adc7f1241b42).DOI
  33. [33]OpenAI, Ordinary two-point correlations of multiplicative functions, OpenAI Math Release preprint, 24 September 2026. Repository snapshot, 6 October 2026 (commit adc7f1241b42).DOI
  34. [34]P. Borwein, S. K. K. Choi and M. Coons, Completely multiplicative functions taking values in {−1, 1}, Transactions of the American Mathematical Society 362 (2010), 6279–6291. doi:10.1090/S0002-9947-2010-05235-3.DOI
  35. [35]B. Pouly, An explicit bound below one half for a quartic Liouville correlation, 2026. doi:10.5281/zenodo.24443184.hub.valency.io/works/W_wf49bkyd
  36. [36]B. Pouly, Simultaneous quadratic probes: reconstruction thresholds and marked Poisson limits, 2026. doi:10.5281/zenodo.24443281.hub.valency.io/works/W_akucjp3s

Paper details

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

views · 5

downloads · 0

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

  • Mathematics

OpenAI GPT-6 Astra Pro, OpenAI Codex

View statement
Looking for related papers…
Contents