\documentclass[11pt,a4paper]{article} \usepackage{iftex} \ifPDFTeX \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \else \usepackage{lmodern,fontspec} \IfFileExists{TeXGyreTermesX-Regular.otf}{ \setmainfont{TeXGyreTermesX-Regular.otf}[ BoldFont=TeXGyreTermesX-Bold.otf, ItalicFont=TeXGyreTermesX-Italic.otf, BoldItalicFont=TeXGyreTermesX-BoldItalic.otf] }{\setmainfont{Latin Modern Roman}} \IfFontExistsTF{Consolas}{\setmonofont{Consolas}}{\setmonofont{Latin Modern Mono}} \fi \usepackage[english]{babel} \usepackage{microtype} \usepackage[margin=25mm,headheight=15pt]{geometry} \usepackage{amsmath,amssymb,amsthm,mathtools,booktabs,array,longtable} \usepackage{xcolor,graphicx,hyperref,bookmark,fancyhdr} \hypersetup{colorlinks=true,linkcolor=blue!40!black,urlcolor=blue!40!black, citecolor=blue!40!black,pdftitle={Reconstruction and sign prediction from sampled prime factors}, pdfauthor={Brice Pouly},pdfsubject={Prime-factor observations, optimal reconstruction, Liouville signs and communication}} \pagestyle{fancy}\fancyhf{} \fancyhead[L]{\small Reconstruction and sign prediction from prime factors} \fancyhead[R]{}\fancyfoot[C]{\thepage} \renewcommand{\headrulewidth}{0.3pt} \fancypagestyle{plain}{\fancyhf{}\fancyfoot[C]{\thepage}\renewcommand{\headrulewidth}{0pt}} \setlength{\parindent}{1.1em}\setlength{\parskip}{2pt} \setlength{\emergencystretch}{3em} \allowdisplaybreaks[2] \setcounter{tocdepth}{1} \newcommand{\E}{\mathbb E} \newcommand{\Prb}{\mathbb P} \newcommand{\TV}{d_{\mathrm{TV}}} \newcommand{\Cov}{\operatorname{Cov}} \newcommand{\ind}{\mathbf1} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \title{\vspace{-8mm}\textbf{Reconstruction and sign prediction\\from sampled prime factors}} \author{Brice Pouly\\[2mm]\small Prepared with AI assistance} \date{} \begin{document} \maketitle \begin{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$, whereas sequential removal has a uniform termination profile and a Gaussian transition at order $\log\log M$. For the two related integers $n$ and $an+1$, $a\in\{1,3\}$, one conditionally independent label from each gives optimal reconstruction probability $1/2+o(1)$; the optimal zero-error certificate has mass $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)$. For either Liouville sign we give a strict asymptotic upper bound below $21293/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. \end{abstract} \tableofcontents \section{Introduction and main results} \label{sec:introduction} 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)$, and suppose that the observations are $5\mid n$ and $7\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. \subsection{The sampled-label experiments} For an integer $M\ge3$, set \begin{equation}\label{intro:harmonic} I_M=[M,M^2)\cap\mathbb N,\qquad T_M=\sum_{n\in I_M}\frac1n,\qquad \mu_M(n)=\frac{\mathbf1_{I_M}(n)}{nT_M},\qquad L=\log M,\quad V=\log\log M. \end{equation} The hidden origin is $n\sim\mu_M$. Write $v_p(n)$ for its prime valuations, $\Omega(n)=\sum_pv_p(n)$, $\omega(n)=\#\{p:p\mid n\}$ and $\lambda(n)=(-1)^{\Omega(n)}$. All logarithms are natural unless a base is written explicitly. For laws on the same space, $\TV(P,Q)=\tfrac12\|P-Q\|_1$. At a nontrivial integer $u$, one prime label has distribution \begin{equation}\label{intro:kernel} \kappa_u(p)=\frac{v_p(u)\log p}{\log u}. \end{equation} With replacement, each observation uses this kernel at the original $u$. 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$, 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 $\mathsf T$, define the optimal reconstruction probability and sign advantage by \begin{equation}\label{intro:risks} \mathcal R_M(\mathsf T)=\sup_{\widehat n}\Prb(\widehat n(\mathsf T)=n), \qquad \mathcal A_M(W;\mathsf T)=\|\E[W(n)\mid\mathsf T]\|_1, \end{equation} where $W:I_M\to\{-1,1\}$ is a prescribed sign. The best probability of a correct sign decision is $(1+\mathcal A_M(W;\mathsf T))/2$. An error-free certificate may output $\bot$, but every integer it outputs must be correct on every positive-probability transcript. There is no computational restriction on any decoder. \subsection{One anchor: two observation clocks} One anchor already displays the effect of the sampling rule. With replacement, the transition occurs at $r\asymp\log M$. Section~\ref{subsec:wr-critical} 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(\tau)\sim\frac{\pi^2}{12}\tau^2, \qquad J(\tau)\sim(\log2)\tau \qquad(\tau\downarrow0), \] where $I$ is the sign-advantage profile and $J$ the reconstruction profile. The limit in $M$ 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 Section~\ref{sec:wor}, \begin{equation}\label{intro:termination} \sup_{r\ge0}\left|\mathcal R_M^-(r) -\Prb(\Omega(n)\le r)\right|\longrightarrow0, \end{equation} and the same comparison holds for the Liouville advantage. Consequently, for fixed $t\in\mathbb R$ and $r=V+t\sqrt V+o(\sqrt V)$, reconstruction tends to $\Phi(t)$ and sign-prediction success to $(1+\Phi(t))/2$. The nontrivial part of \eqref{intro:termination} 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. \subsection{Two anchors: the exact labels form a useful joining} Take anchors $u_0=n$ and $u_1=an+1$, with $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 $n$. Write $+$ for with replacement and $-$ for without replacement. For positive fixed $r,s$, \begin{align} \mathcal R_M^{+,+}(r,s) &\longrightarrow1-\binom{r+s}{r}^{-1}, \label{intro:fixed-wr}\\ \mathcal R_M^{-,-}(r,s) &\longrightarrow1-\int_{x+y\le1}f_r^-(x)f_s^-(y)\,dx\,dy, \label{intro:fixed-wor}\\ \mathcal R_M^{+,-}(r,s) &\longrightarrow1-(r+1)^{-s}, \label{intro:mixed} \end{align} where $x,y>0$ in the integral and \[ f_r^-(x)=\frac{[-\log(1-x)]^{r-1}}{(r-1)!},\qquad 0{\raggedright\arraybackslash}p{.24\linewidth} >{\raggedright\arraybackslash}p{.35\linewidth} >{\raggedright\arraybackslash}p{.35\linewidth}@{}} \toprule Observation and budget & Limit or guarantee & Decision and hypotheses \\ \midrule One anchor, with replacement; $r/\log M\to\tau>0$ & Reconstruction $J(\tau)$; Liouville advantage $I(\tau)$. & Independent draws given $n$; $\log n$ is hidden. The uniform-in-budget statements are absolute-error limits (Section~\ref{sec:wr}). \\ \addlinespace[7pt] One anchor, without replacement; deterministic $r$ & Reconstruction and Liouville advantage equal $\Prb(\Omega(n)\le r)+o(1)$, uniformly in $r$. & Sequential removal. If $r=V+o(\sqrt V)$, reconstruction tends to $1/2$ and sign success to $3/4$. Termination conventions are treated explicitly (Section~\ref{sec:wor}). \\ \addlinespace[7pt] Two anchors; fixed positive budgets $r,s$ & Exact reconstruction profiles \eqref{intro:fixed-wr}--\eqref{intro:mixed}; corresponding entropy coefficients. & Conditional independence of the two chains given $n$. Budgets stay fixed as $M\to\infty$ (Sections~\ref{sec:replace-fixed}--\ref{sec:labels-fixed-entropy}). \\ \addlinespace[7pt] Two anchors; positive budgets with $\max(r,s)\to\infty$ & Reconstruction probability tends to one. & Sufficiency holds for every coupling with the specified conditional marginals. Necessity uses conditional independence (Corollaries~\ref{cor:asym-budget} and~\ref{cor:budget-budget-criterion}). \\ \addlinespace[7pt] One label at each anchor & Optimal reconstruction $1/2$; optimal zero-error certificate $3-4\log2$; success at least $3/4$ for every prescribed sign. & Conditional independence given $n$. The certificate must never return a false integer; the other criteria allow error. Liouville has the bounds \eqref{intro:sign-bound}, with equality at $3/4$ left open. \\ \addlinespace[7pt] Complete small-prime data; $b/\log_2 y\to t$, $\log z/\log y\to\tau$ & Optimal reconstruction $P(t,\tau)$. At $t=\infty$, $\tau=1$, it lies in $(0.9302864610,\allowbreak 0.9302864868)$. & Alice knows $r_y(n)$; Bob knows the three neighbour parts. The budget counts Bob's bits to Alice; Alice may send unlimited bits in return. One message attains the bound (Theorem~\ref{comm:thm-reconstruction}). \\ \addlinespace[7pt] The same complete data; one message Bob $\to$ Alice & Optimal $\lambda(n)$-prediction success $(1+P(t,\tau))/2$. & Bob's encoder uses his table and independent public randomness; there is no preliminary message from Alice. The sign upper bound is proved for this protocol (Theorem~\ref{comm:one-message}). \\ \bottomrule \end{tabular} \end{table} \subsection{Previous work and the role of the arithmetic inputs} The probabilistic structure of prime factors has a substantial classical literature. Billingsley's work~\cite{Billingsley} concerns the distribution of large prime divisors; Donnelly and Grimmett~\cite{DG} establish the stick-breaking limit for logarithmically size-biased factors removed successively. Arratia~\cite{Arratia} develops couplings with Poisson--Dirichlet factor sizes, and Haddad and Koukoulopoulos~\cite{HaddadKoukoulopoulos} 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~\cite{Pitman}. Bach's algorithm~\cite{Bach} 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~\cite{EK}; its transfer to the harmonic window here follows by partial summation. The harmonic Euler model in Part~III also has a direct antecedent. Pinsky~\cite[Proposition~1 and Theorem~1]{Pinsky} gives the exact law proportional to $1/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^{-\gamma}\rho$. Jaramillo and Yang~\cite[Proposition~4.1 and Section~4.3]{JaramilloYang} discuss the representation of a harmonic integer in $[1,N]$ by independent geometric valuations conditioned on their product being at most $N$. Further developments concern conditioned Dickman limits for additive functionals~\cite{BernalJaramillo} and attenuated Poisson--Dirichlet approximations for the prime-factor configuration of a harmonic sample~\cite{BernalTorresJaramillo}. Thus neither the Euler model nor its Dickman marginal is a contribution of this paper. The additional work in Part~III is the joint separation of the small-prime parts from the remaining logarithmic location on a moving harmonic window, followed by the decision and communication analysis. General total-variation comparisons with geometric models for sequences of positive level of distribution are developed by Gorodetsky~\cite{Gorodetsky}; the simultaneous weighted cell estimates needed here are stated and proved in the form used by our protocols. Information-theoretic arguments involving prime factorisation appear, for example, in Kontoyiannis~\cite{Kontoyiannis}. Delsol et al.~\cite[Sections~6.3--6.4]{Delsol} study reconstruction from full prime signatures and congruence data, with observations and priors different from the sampled-label experiments. The correlated-source coding theorem of Slepian and Wolf~\cite{SlepianWolf} provides a broader context for communication with side information; it concerns repeated samples from a fixed joint source, whereas our profiles concern one arithmetic sample from a growing family. The public hashing step uses the classical universal-hashing principle of Carter and Wegman~\cite{CarterWegman}. The binary Bayes-error/entropy inequalities are classical as well; see Hellman and Raviv~\cite{HellmanRaviv}. In each case the paper's task is to identify the relevant arithmetic posterior or collision law. The inversion formula used in the certified Dickman calculation is the classical formula of Gil-Pelaez~\cite{GilPelaez}. For the two-anchor logarithmic limit, the analytic input is Teräväinen's binary correlation theorem~\cite{Teravainen}. We give the transfer from fixed thresholds to thresholds depending on the origin, and the restriction needed for the anchor $3n+1$. Independence of the limiting normalised logarithms does not imply independence of the exact labels: their joint entropy and total variation retain substantial dependence. Recent preprints~\cite{OpenAIJointDickman,OpenAITwoPoint} address ordinary joint Dickman laws for the largest prime factors of consecutive integers and ordinary two-point correlations of multiplicative functions. They are included for context; the proofs here use the explicitly stated Teräväinen and dispersion inputs. Results for fixed affine forms do not by themselves supply the uniform estimates over growing moduli and residues required by the signed posteriors. The sign upper bounds use the classical Liouville exponential-sum estimate recalled in~\cite{MRT}, the smooth-support theorem of Drappeau--Granville--Shao~\cite{DrappeauGranvilleShao}, Green's bilinear reduction~\cite{Green}, and Bettin--Chandee's Kloosterman-fraction bound~\cite{BettinChandee}. Later results improve several distribution ranges. Fouvry and Radziwiłł~\cite[Corollary~1.3]{FouvryRadziwill} reach level $17/33-\varepsilon$ for multiplicative functions under their Siegel--Walfisz hypothesis, with a common integer residue and error $O_\varepsilon(x/(\log x)^{1-\varepsilon})$; their prime-modulus convolution theorem has a stronger error in its own range. Pascadi's published Theorem~1.7~\cite{Pascadi} reaches level $66/107-\varepsilon$ for one-bounded completely multiplicative functions with smooth support and a Siegel--Walfisz condition, allowing specified rational classes; its smoothness and residue ranges remain part of the hypothesis. His Theorem~4.2 makes the removal of small-conductor characters explicit. Wright's Theorem~2.1~\cite{Wright} treats Kloosterman fractions with a partially fixed denominator and is structurally relevant to the denominator factors arising here. Applying these results to our posteriors would require verifying their coefficient norms, parameter ranges, character terms, and frequency sums. We retain the proved denominator cost and the range $39\vartheta+22\kappa<20$ obtained from the stated Green--Bettin--Chandee argument; we do not identify that range with the best distribution level available in other settings. The smooth-number approximation is credited to de Bruijn~\cite{deBruijn}. Friable averages of oscillating functions form another established part of the analytic background; see de la Bretèche and Tenenbaum~\cite{BretecheTenenbaum}. The communication proofs use the classical additive and multiplicative large sieves and the fixed-dimensional fundamental lemma of the sieve~\cite{IwaniecKowalski}, with their uniformity requirements recorded below. The results are therefore formulated at the level of the specified observation experiments: their optimal decision profiles, the effect of combining two anchors, and the signed dispersion transfers that control the remaining ambiguity. The reconstruction target is a hidden integer. In the quadratic-probe model~\cite{PoulyProbes}, a public panel of randomly chosen primes probes the Legendre symbols of \(n,n+1,3n+1,3n+2\). Here the conditional sampling law selects prime divisors of the forms themselves, with weights given by their valuations and logarithms. In~\cite{PoulyTraces}, the target is instead a multiplicative function observed on prescribed quadratic traces. Finally, a high probability of reading a Liouville sign does not estimate its unconditional mean; Section~\ref{sec:quartic} records the covariance that remains for a quartic correlation. \subsection{Organisation and limits} Part~I builds the one-anchor profiles, the two-anchor decoders, and the fixed-budget reconstruction and entropy formulas. Part~II passes from reconstruction to sign decisions, proves the cancellation estimates, and distinguishes observable confidence from a zero-error certificate. Part~III gives a self-contained treatment of the complete-table communication experiment and its numerical constant. In all fixed-budget asymptotics, the budgets are held fixed while $M\to\infty$; no growing-budget uniformity is inferred from them. The uniform one-anchor profiles and the coupling-independent reconstruction estimates have their own proofs. This separation of contracts is also used whenever a parameter must be sent to zero after the arithmetic limit. \part{Reconstruction from sampled labels} \section{A small-prime factorization shared by the two experiments} \label{sec:common} The obstruction to reconstructing an integer from a few sampled factors is already present in any fixed finite set of small primes. We first separate those valuations from the remaining cofactor. Throughout, $M\ge3$ is an integer, $I_M=[M,M^2)\cap\mathbb N$, $L=\log M$ and $\mu_M(n)=\mathbf1_{I_M}(n)/(nT_M)$, where \begin{equation}\label{eq:common-divisibility} T_M=\sum_{n\in I_M}\frac1n=L+O(M^{-1}),\qquad T_M\ge L, \qquad \Prb_{\mu_M}(a\mid n)\le\frac2a\quad(a\ge1). \end{equation} For the divisibility bound, write $n=ak$ and use the upper bound $1+L$ for the harmonic sum over $k\in[M/a,M^2/a)$. Fix a finite set $S$ of primes before taking $M\to\infty$, and put \[ P_S=\prod_{p\in S}p,\qquad c_S=\prod_{p\in S}(1-p^{-1}),\qquad d=D_S(n)=\prod_{p\in S}p^{v_p(n)},\qquad m=n/d. \] An integer is called $S$-smooth if all its prime factors belong to $S$. The probability measure \[ \pi_S(d)=\frac{c_S}{d}\mathbf1_{\{d\text{ is }S\text{-smooth}\}} \] has independent geometric valuations: $\Prb(v_p(d)=e)=(1-p^{-1})p^{-e}$ for $e\ge0$. This classical small-prime model is discussed in \cite[\S1.1]{Arratia}. For a harmonic integer on $[1,N]$, Jaramillo and Yang~\cite[Proposition~4.1]{JaramilloYang} give an exact representation by independent geometric valuations conditioned on their product being at most $N$. The comparison below also separates the remaining cofactor and pays for moving the harmonic window; its product reference law is not conditioned on that product bound. Define \[ a_{M,S}=\mu_M((n,P_S)=1),\qquad \rho_{M,S}=\mu_M(\,\cdot\mid(n,P_S)=1). \] For all sufficiently large $M$, depending on $S$, the conditional measure is defined and $a_{M,S}=c_S+O_S((ML)^{-1})$. \begin{lemma}[An independent small part]\label{lem:small-part} The law $\eta_M=\mathcal L(D_S(n),n/D_S(n))$ satisfies \begin{equation}\label{wr:base-tv} \beta_{M,S}:=\TV(\eta_M,\pi_S\otimes\rho_{M,S}) =O_S(L^{-1}+M^{-1/2}). \end{equation} The product $dm$ under the reference law need not belong to $I_M$; the displayed error includes this change of window. \end{lemma} \begin{proof} The unique decomposition $n=dm$ gives \[ \eta_M(d,m)=\frac{ \mathbf1_{\{d\text{ is }S\text{-smooth}\}} \mathbf1_{(m,P_S)=1}\mathbf1_{M\le dmM$, it is $O(L+1)$. The convergent series \[ \sum_{d\ S\text{-smooth}}\frac{\log d}{d}<\infty, \qquad \sum_{d\ S\text{-smooth}}d^{-1/2} =\prod_{p\in S}(1-p^{-1/2})^{-1}<\infty \] show that the change has $\ell^1$ cost $O_S(L^{-1}+M^{-1/2})$. Indeed, the number of $S$-smooth $d\le M$ is $O_S(\sqrt M)$, and the reciprocal sum over $d>M$ is $O_S(M^{-1/2})$. Inclusion--exclusion at the fixed modulus $P_S$ gives \[ H_{M,S}:=\sum_{\substack{m\in I_M\\(m,P_S)=1}}\frac1m =c_SL+O_S(M^{-1}). \] The modified measure has mass $H_{M,S}/(c_ST_M)=1+O_S((ML)^{-1})$, and its normalization is exactly $\pi_S\otimes\rho_{M,S}$. \end{proof} We shall use the finite constants \begin{equation}\label{eq:common-moments} h_S:=\E_{\pi_S}\Omega(d)=\sum_{p\in S}\frac1{p-1},\qquad b_S:=\E_{\pi_S}\log d=\sum_{p\in S}\frac{\log p}{p-1}. \end{equation} Two different properties of the small part control the two decision problems: \[ \max_d\pi_S(d)=c_S\longrightarrow0, \qquad \ell_S:=\E_{\pi_S}\lambda(d) =\prod_{p\in S}\frac{p-1}{p+1}\longrightarrow0 \] as $S$ increases to the set of all primes. The first bound controls exact reconstruction; the second controls parity. Both limits follow from $\sum_p1/p=\infty$. Appending the same observation kernel contracts total variation. Thus the error in a success probability is at most $\beta_{M,S}$, whereas the error in the expectation of a function bounded in absolute value by one is at most $2\beta_{M,S}$. \section{One anchor with replacement} \label{sec:wr} Given $n\sim\mu_M$, draw independent prime labels with common law \[ \kappa_n(q)=\frac{v_q(n)\log q}{\log n},\qquad \mathcal P_r=(P_1,\ldots,P_r)\sim\kappa_n^{\otimes r}. \] The observation contains the exact labels, their order and their repetitions. It does not contain $\log n$. Write \[ \mathcal R_M^+(r)=\sup_{\widehat n}\Prb\{\widehat n(\mathcal P_r)=n\}, \qquad \mathcal A_M^+(r)=\left\|\E[\lambda(n)\mid\mathcal P_r]\right\|_1. \] The optimal sign-prediction probability is $(1+\mathcal A_M^+(r))/2$. Decision rules may depend on $M,r$ and have unrestricted computational complexity. Independent randomization does not improve either optimum. \subsection{Small valuations below the logarithmic scale} Append the exact kernel $\kappa_{dm}^{\otimes r}$ to both laws in Lemma~\ref{lem:small-part}. Under the product law, $m\ge M$ and $(d,m)=1$, so, for $d>1$, \[ \kappa_{dm}=\frac{\log m}{\log(dm)}\kappa_m +\frac{\log d}{\log(dm)}\kappa_d. \] A coordinatewise coupling replaces the kernel by $\kappa_m^{\otimes r}$ at cost at most $r\log d/L$; the cost is zero when $d=1$. Since $\E_{\pi_S}\log d=b_S<\infty$, the true joint law of $(d,m,\mathcal P_r)$ is within total variation \begin{equation}\label{wr:small-tv} O_S\left(\frac{r+1}{L}+M^{-1/2}\right) \end{equation} of the experiment in which $d\sim\pi_S$ and $m\sim\rho_{M,S}$ are independent and then $\mathcal P_r\sim\kappa_m^{\otimes r}$. This second kernel replacement will only be used when $r=o(L)$. In the reference experiment, $d$ is independent of $(m,\mathcal P_r)$. For any decoder and fixed $(m,\mathcal P_r)$, the equality $\widehat n(\mathcal P_r)=dm$ selects at most one value of $d$. Consequently, \begin{equation}\label{wr:low-reconstruction} \mathcal R_M^+(r)\le c_S+ O_S\left(\frac{r+1}{L}+M^{-1/2}\right). \end{equation} For any test $|\varphi|\le1$, complete multiplicativity gives \[ \left|\E_{\rm ref}\lambda(dm)\varphi(\mathcal P_r)\right| \le\left|\E_{\pi_S}\lambda(d)\right| =\prod_{q\in S}\frac{1-q^{-1}}{1+q^{-1}}. \] Conditional duality therefore yields \begin{equation}\label{wr:low-sign} \mathcal A_M^+(r)\le\prod_{q\in S}\frac{1-q^{-1}}{1+q^{-1}} +O_S\left(\frac{r+1}{L}+M^{-1/2}\right). \end{equation} For $r_M=o(L)$, first let $M\to\infty$ with $S$ fixed and then let $S=\{q:q\le Q\}$ increase through the primes. We obtain \begin{equation}\label{wr:low-limits} \mathcal R_M^+(r_M)\longrightarrow0, \qquad \mathcal A_M^+(r_M)\longrightarrow0. \end{equation} The small-prime set remains fixed during the arithmetic limit. \subsection{An explicit decoder above the logarithmic scale} \label{subsec:wr-high} Let $N_q=\#\{j:P_j=q\}$ and $R_r=\prod_{q:N_q>0}q$. For $r\ge1$ the transcript alone defines \begin{equation}\label{wr:decoder} \widehat e_q=\left\lfloor\frac{N_q\log R_r}{r\log q}+\frac12\right\rfloor, \qquad \widehat n_r=\prod_{q:N_q>0}q^{\widehat e_q}. \end{equation} There are finite absolute constants $C_1,C_2$ such that \begin{equation}\label{wr:high-error} \Prb(\widehat n_r\ne n)\le C_1\frac Lr+\frac{C_2}{L} \qquad(M\ge3, r\ge1). \end{equation} Here is a proof retaining the dependence on the sample size. Define the radical defect \[ D(n)=\log\frac n{\operatorname{rad}(n)} =\sum_q\sum_{k\ge2}(\log q)\mathbf1_{q^k\mid n} \] and the convergent constants \[ U_1=\sum_q\frac{\log q}{q(q-1)},\qquad U_2=\sum_q\frac{(q+1)(\log q)^2}{q(q-1)^2},\qquad S_0=\sum_q\frac1{(q-1)\log q}. \] The first two series converge by comparison with sums over integers; the third follows from Chebyshev's bound $\pi(x)\ll x/\log x$, summed over dyadic intervals. The divisibility estimate \eqref{eq:common-divisibility} implies \begin{equation}\label{wr:radical-moments} \E D\le2U_1,\qquad \E D^2\le2(U_1^2+U_2), \qquad \max_qv_q(n)\le1+D/\log2. \end{equation} For the diagonal contribution to the second moment, use $\sum_{k,j\ge2}q^{-\max(k,j)}=(q+1)/(q(q-1)^2)$; for distinct primes use the product of their powers. In the proof only, introduce $\widetilde e_q=N_q\log n/(r\log q)$ for $q\mid n$. The conditional binomial law gives \[ \E[\widetilde e_q\mid n]=e_q:=v_q(n),\qquad \operatorname{Var}(\widetilde e_q\mid n) \le\frac{2e_qL}{r\log q}. \] Chebyshev's inequality at threshold $1/3$, followed by a union bound and $\E v_q(n)\le2/(q-1)$, yields \[ \Prb(G^c)\le36S_0L/r,\qquad G=\{\text{for every }q\mid n: |\widetilde e_q-e_q|<1/3\}. \] On $G$, every prime divisor has been observed and $R_r=\operatorname{rad}(n)$. The difference between $\widetilde e_q$ and the quantity rounded in \eqref{wr:decoder} is at most \[ (e_q+1/3)\frac D{\log n} \le\frac1L\left(\frac43D+\frac{D^2}{\log2}\right). \] If the right side is less than $1/6$, all the rounded valuations are correct. Markov's inequality and \eqref{wr:radical-moments} prove \eqref{wr:high-error}, for example with \[ C_1=36S_0,\qquad C_2=16U_1+\frac{12(U_1^2+U_2)}{\log2}. \] Thus $r_M/L\to\infty$ implies $\mathcal R_M^+(r_M)\to1$ and $\mathcal A_M^+(r_M)\to1$. More generally, any deterministic sign $W_M(n)$ can then be predicted with vanishing error by evaluating $W_M(\widehat n_r)$, extending it arbitrarily outside $I_M$ if necessary. These are averaged statements under $\mu_M$. Pointwise reconstruction from the sampling law is impossible, since $\kappa_{n^k}=\kappa_n$. \subsection{Recovering the logarithmic size before the integer} The product of the distinct observed labels satisfies \[ \log\frac n{R_r}=D(n)+\sum_{q\mid n}(\log q)\mathbf1_{N_q=0}. \] Put $a=r/(2L)>0$. A prime of valuation $e$ is missed with conditional probability at most $q^{-ae}$. Since $\Prb(v_q(n)=e)\le2q^{-e}$, \begin{equation}\label{wr:log-mass} \E\log\frac n{R_r} \le2U_1+2\sum_q\frac{\log q}{q^{1+a}-1} =2U_1-2\frac{\zeta'(1+a)}{\zeta(1+a)} \ll1+L/r. \end{equation} The last estimate follows by partial summation from $\sum_{k\le x}\Lambda(k)\ll x$. Hence $\log R_{r_M}/\log n\to1$ in $L^1$ whenever $r_M\to\infty$. In the range $r_M\to\infty$ and $r_M=o(L)$, almost all of the logarithmic size is recovered, although exact reconstruction has vanishing success probability and the optimal Liouville prediction has success tending to $1/2$. \subsection{The geometric--Poisson channel at the critical scale} \label{subsec:wr-critical} For $a\ge0$, let $\operatorname{Poi}_a(k)=e^{-a}a^k/k!$, with $\operatorname{Poi}_0(0)=1$. For a prime $q$ and $u\ge0$, define \begin{align} w_q(e,k;u)&=(1-q^{-1})q^{-e}\operatorname{Poi}_{ue\log q}(k), \qquad e,k\ge0,\label{wr:local-law}\\ I_q(u)&=\sum_{k\ge0}\left|\sum_{e\ge0}(-1)^e w_q(e,k;u)\right|, &J_q(u)&=\sum_{k\ge0}\max_{e\ge0}w_q(e,k;u). \label{wr:local-values} \end{align} These are respectively the optimal parity advantage and exact-value success for a geometric valuation observed through a Poisson count. For $\tau>0$, put \begin{equation}\label{wr:profiles} I(\tau)=\int_1^2\prod_qI_q(\tau/s)\,ds,\qquad J(\tau)=\int_1^2\prod_qJ_q(\tau/s)\,ds. \end{equation} \begin{theorem}[Critical profiles with replacement]\label{thm:wr-profile} For every fixed $\tau>0$, \begin{equation}\label{wr:pointwise} \mathcal A_M^+(\lfloor\tau L\rfloor)\longrightarrow I(\tau),\qquad \mathcal R_M^+(\lfloor\tau L\rfloor)\longrightarrow J(\tau). \end{equation} Both profiles are continuous and nondecreasing, take values strictly between zero and one on $(0,\infty)$, and tend to one at infinity. After the limit in $M$, they satisfy \begin{equation}\label{wr:small-intensity} I(\tau)\sim\frac{\pi^2}{12}\tau^2,\qquad J(\tau)\sim(\log2)\tau\qquad(\tau\downarrow0). \end{equation} \end{theorem} \paragraph{An auxiliary cofactor that can be estimated.} Fix $Q\ge2$ and $S=\{q:q\le Q\}$. Temporarily reveal $m=n/D_S(n)$, and denote the enriched optima by $\mathcal A^{\rm aux}_{M,Q}$ and $\mathcal R^{\rm aux}_{M,Q}$. The original transcript already provides $\widehat m_Q=\prod_{q>Q,N_q>0}q$. If $r=\lfloor\tau L\rfloor$, then, for large $M$, $r\ge\tau L/2$, and a prime $q>Q$ of valuation $e$ is missed with probability at most $q^{-\tau e/4}$. Thus \begin{equation}\label{wr:oracle-error} \Prb(\widehat m_Q\ne m) \le2\sum_{q>Q}\left(q^{-2}+\frac1{q^{1+\tau/4}-1}\right) =:\delta_Q(\tau)\longrightarrow0. \end{equation} The two summands pay respectively for repeated large prime factors and for unobserved large primes. Replacing the auxiliary cofactor by its estimate in an optimal rule gives \begin{equation}\label{wr:oracle-remove} \begin{split} 0&\le\mathcal A^{\rm aux}_{M,Q}-\mathcal A_M^+(r)\le2\delta_Q(\tau),\\ 0&\le\mathcal R^{\rm aux}_{M,Q}-\mathcal R_M^+(r)\le\delta_Q(\tau). \end{split} \end{equation} These comparisons are uniform over all decision rules. Lemma~\ref{lem:small-part} next replaces the law of $(d,m)$ by $\pi_S\otimes\rho_{M,S}$ while retaining the exact kernel $\kappa_{dm}^{\otimes r}$. Its error tends to zero by contraction, even when $r\asymp L$. The subcritical replacement of that kernel by $\kappa_m^{\otimes r}$ is not made here. \paragraph{The small counts are sufficient.} Write $e_q=v_q(d)$ and $K_q=\#\{j:P_j=q\}$ for $q\in S$. Conditional on $(d,m)$, these counts and the count outside $S$ are multinomial with probabilities \[ \alpha_q=\frac{e_q\log q}{\log m+\log d},\qquad \alpha_0=\frac{\log m}{\log m+\log d}. \] Given $m$ and the small counts, the category positions are uniform and the outside labels have law $\kappa_m$, independently of $d$. The rest of the transcript therefore provides no further information about $d$. This sufficiency statement holds for the finite experiment. Set $s=\log m/L\in[1,2]$, and first restrict to $d\le D$. Uniformly in $m$, \[ \sum_{q\in S}\alpha_q=O_D(L^{-1}),\qquad r\alpha_q=(\tau/s)e_q\log q+O_{D,\tau}(L^{-1}). \] The total count of the small categories can be coupled to a Poisson variable at cost at most $2r(\sum\alpha_q)^2=O_{D,\tau}(L^{-1})$. Given this total, the allocation among categories is unchanged, so the vector couples to independent Poisson variables of means $r\alpha_q$. Changing these means to $(\tau/s)e_q\log q$ costs at most the sum of their differences. The tail $d>D$ has mass $\pi_S(d>D)\to0$, uniformly in $m$. Taking $M\to\infty$ and then $D\to\infty$ proves total-variation convergence of the joint law of the small valuations and counts to the finite product of the channels \eqref{wr:local-law}, uniformly in $m$. The known sign $\lambda(m)$ can be removed. Absolute convergence and product factorization give optimal values $\prod_{q\in S}I_q(u)$ and $\prod_{q\in S}J_q(u)$, where $u=\tau/s$. Each local value is continuous: truncate the valuation, use total-variation continuity of Poisson laws, and then remove the geometric tail. Under $\rho_{M,S}$, the variable $s=\log m/L$ converges to the uniform distribution on $[1,2]$, by harmonic inclusion--exclusion at the fixed modulus $P_S$. Consequently, \[ \lim_M\mathcal A^{\rm aux}_{M,Q} =\int_1^2\prod_{q\le Q}I_q(\tau/s)\,ds,\qquad \lim_M\mathcal R^{\rm aux}_{M,Q} =\int_1^2\prod_{q\le Q}J_q(\tau/s)\,ds. \] The total number of samples has remained deterministic. Poisson limits have only been used for a fixed finite collection of small prime counts. \paragraph{Infinite products and removal of the cofactor.} Put $x=q^{-1}$ and $y=q^{-1-u}\le x$. The parity rule that answers $+1$ at count zero and $-1$ otherwise has correlation \[ A_q(u)=(1-x)\left(\frac2{1+y}-\frac1{1+x}\right) =1-\frac{2(y+x^2)}{(1+x)(1+y)}>0. \] The valuation rule that answers zero at count zero and one otherwise has success \[ B_q(u)=(1-x)(1+x-y)=1-x^2-(1-x)y>0. \] It follows that \[ 1\ge I_q\ge A_q,\quad 1-I_q\le2y+2x^2,\qquad 1\ge J_q\ge B_q,\quad1-J_q\le y+x^2. \] The defects are uniformly summable for $u\ge u_0>0$, so the infinite products are positive and continuous on $(0,\infty)$. They are strictly less than one: when the count at prime $2$ is zero, several valuations of different parity still have positive posterior mass. Letting $Q\to\infty$ in \eqref{wr:oracle-remove} establishes \eqref{wr:pointwise} for the original observation. \paragraph{Small intensity.} At count zero the signed mass is $(1-x)/(1+y)>0$. At a positive count the valuation-one contribution has negative sign. The improvement over the preceding parity rule is therefore bounded by twice the mass of valuations $e\ge2$. Similarly, zero is the most likely valuation at count zero, and the possible improvement over the choice one at positive counts is bounded by the mass of $e\ge2$. Hence \[ 0\le I_q(u)-A_q(u)\le2x^2,\qquad 0\le J_q(u)-B_q(u)\le x^2. \] Uniformly for $u\ge0$, \[ \frac{I_q(u)}{(1-q^{-1-u})^2}=1+O(q^{-2}),\qquad \frac{J_q(u)}{1-q^{-1-u}}=1+O(q^{-2}). \] The corresponding regularized products $H_I,H_J$ are continuous down to zero. Since $I_q(0)=(1-x)/(1+x)$ and $J_q(0)=1-x$, \[ H_I(0)=\prod_q(1-q^{-2})^{-1}=\zeta(2),\qquad H_J(0)=1. \] Euler's product and the simple pole of $\zeta$ at one give \[ \prod_qI_q(u)=\zeta(1+u)^{-2}H_I(u)\sim\zeta(2)u^2,\qquad \prod_qJ_q(u)=\zeta(1+u)^{-1}H_J(u)\sim u. \] These equivalents hold uniformly for $u\in[\tau/2,\tau]$ as $\tau\downarrow0$. Integrating $s^{-2}$ and $s^{-1}$ over $[1,2]$ proves \eqref{wr:small-intensity}. \paragraph{Monotonicity and large intensity.} When $u\le v$, thinning a Poisson count of mean $ve\log q$ produces a count of mean $ue\log q$. Extra information cannot decrease an optimal decision value; the local values and both profiles are therefore nondecreasing. Rounding $K/(u\log q)$ estimates the valuation with error at most $4/[u(q-1)\log q]$, by Chebyshev's inequality. A parity error costs at most twice the reconstruction error, so \[ 1-J(\tau)\le\frac{6S_0}{\tau},\qquad 1-I(\tau)\le\frac{12S_0}{\tau}. \] This proves both limits at infinity and completes the theorem. \subsection{Uniformity over deterministic budgets} \label{subsec:wr-uniform} Extend $I,J$ by $I(0)=J(0)=0$. Pointwise convergence, continuity and monotonicity imply the absolute uniform limits \begin{equation}\label{wr:uniform} \begin{split} \sup_{r\in\mathbb N_0}|\mathcal A_M^+(r)-I(r/L)|&\longrightarrow0,\\ \sup_{r\in\mathbb N_0}|\mathcal R_M^+(r)-J(r/L)|&\longrightarrow0. \end{split} \end{equation} Indeed, longer transcripts contain the shorter ones, so the finite optimal values are nondecreasing in $r$. On a compact interval $r/L\in[a,b]\subset(0,\infty)$, bracket them by their values on a finite grid and use uniform continuity of the profiles. For $r/Lb$, bound below by the value near $bL$ and then let $b\to\infty$. All values lie in $[0,1]$. The convergence in \eqref{wr:uniform} is absolute. It does not turn \eqref{wr:small-intensity}, whose limit in $\tau$ follows the limit in $M$, into a relative asymptotic for a moving $\tau_M\to0$. Moreover, $I$ is an $L^1$ posterior advantage; it does not by itself identify the optimal quadratic risk. Its product representation uses $\lambda(dm)=\lambda(d)\lambda(m)$ and concerns this one-anchor observation. \section{One anchor without replacement: the termination profile} \label{sec:wor} Removing an observed occurrence changes the sampling weights after every step. In this experiment the number of prime occurrences, rather than the logarithmic size, determines the transition. The proof again separates finitely many small valuations, and uses exponential clocks to show that they are unlikely to have been observed well before termination. \subsection{The observation and the optimal profiles} Starting from $n\sim\mu_M$, remove one prime occurrence $p$ from the current cofactor $m>1$, assigning each occurrence weight $\log p/\log m$. The transcript $T_r$ records the first $r$ ordered labels, with an absorbing symbol after exhaustion, and a final bit indicating whether exhaustion has occurred by step $r$. Budgets $r\in\mathbb N_0$ are deterministic. Neither $\Omega(n)$ nor a nontrivial cofactor is revealed. Put \[ F_r=\{\Omega(n)\le r\},\qquad \mathcal R_M^-(r)=\sup_{\widehat n}\Prb\{\widehat n(T_r)=n\}, \qquad q_{M,r}=\E[\lambda(n)\mid T_r]. \] The decoder may abstain, and may use independent randomization; neither option changes the optimal probability of a correct answer. Let $V=\log\log M$, and let $\Phi$ be the standard normal distribution function. \begin{theorem}[Uniform exact reconstruction]\label{thm:wor-exact} As $M\to\infty$, \begin{equation}\label{eq:W-optimal-exact} \sup_{r\ge0} \left|\mathcal R_M^-(r)-\Prb_{\mu_M}(\Omega(n)\le r)\right| \longrightarrow0. \end{equation} Consequently, \begin{equation}\label{eq:W-gaussian-exact} \sup_{r\ge0}\left| \mathcal R_M^-(r)-\Phi\left(\frac{r-V}{\sqrt V}\right) \right|\longrightarrow0. \end{equation} \end{theorem} \begin{theorem}[The Liouville posterior]\label{thm:wor-sign} Uniformly over deterministic budgets, \begin{equation}\label{eq:W-lambda-posterior} \sup_{r\ge0}\E\left|q_{M,r}-\lambda(n)\mathbf1_{F_r}\right| \longrightarrow0. \end{equation} In particular, uniformly in $r$, \[ \|q_{M,r}\|_1=\Prb(F_r)+o(1),\qquad \E q_{M,r}^2=\Prb(F_r)+o(1). \] If $r=V+t\sqrt V+o(\sqrt V)$ for fixed $t$, the optimal reconstruction probability tends to $\Phi(t)$, while the optimal sign-prediction probability tends to $(1+\Phi(t))/2$. The minimal absolute and quadratic prediction risks for $\lambda(n)$ both tend to $1-\Phi(t)$. \end{theorem} Theorem~\ref{thm:wor-exact} is an upper bound for every decoder, including those that try to infer the unobserved factors before termination. It is attained asymptotically by the rule that multiplies the observed labels when the final bit certifies exhaustion. \subsection{Small prime factors remain hidden before termination} Fix the set $S$ from Section~\ref{sec:common}, and use the quantities $c_S,a_{M,S},\beta_{M,S},h_S,b_S$ defined there. Let $K_r(u)$ be the law of the without-replacement transcript, including its final bit, when the initial integer is $u\ge1$. Attach independent exponential clocks of rate $\log p$ to all prime occurrences of $u$. Listing them in increasing order realizes the required sampling law: after each removal the total rate of the remaining clocks is the logarithm of the current cofactor. This is the usual exponential-clock representation of size-biased sampling \cite[\S1.3]{Arratia}. Let $Z_\tau(m)$ count the clocks belonging to $m$ that have not rung by time $\tau$. Keep those clocks and add the clocks of $d$ to couple $K_r(m)$ and $K_r(dm)$. The added total rate is $\log d$. On \[ \{\Omega(m)>r+K\}\cap\{Z_{1/K}(m)\le K\} \] and in the absence of an added arrival before $1/K$, the first $r$ labels coincide and neither transcript has terminated. Therefore, for every $K\ge1$, \[ \mathbf1_{\{\Omega(m)>r+K\}} \TV(K_r(dm),K_r(m)) \le \frac{\E[Z_{1/K}(m)\mid m]}K+\frac{\log d}K. \] This remains a valid upper bound when its right side exceeds one. The harmonic divisibility estimate gives \[ \E_{\rho_{M,S}}v_p(m)\le\frac{2}{a_{M,S}(p-1)}. \] Hence \[ \E_{\rho_{M,S}}Z_{1/K}(m) \le\frac2{a_{M,S}}\sum_p\frac{p^{-1/K}}{p-1} \le\frac{2}{a_{M,S}}\{\log(K+1)+1\}. \] For the last inequality, use $\sum_pp^{-1-\tau}\le\log\zeta(1+\tau)\le\log(1+1/\tau)$ and $\sum_p1/[p(p-1)]\le1$. Averaging over $d\sim\pi_S$ yields, uniformly in $r$, \begin{equation}\label{eq:W-deep-kernel} \E_{\pi_S\otimes\rho_{M,S}} \left[\mathbf1_{\{\Omega(m)>r+K\}} \TV(K_r(dm),K_r(m))\right]\le C_{M,S,K}, \end{equation} where \[ C_{M,S,K}= \frac{2\{\log(K+1)+1\}/a_{M,S}+b_S}{K}. \] The variables $(d,m)$ are only a device for comparing experiments; they are not included in the actual observation. \subsection{Moving the nonterminated event} Define the uniform Erdős--Kac discrepancy \[ \Delta_M=\sup_{x\in\mathbb R} \left|\Prb_{\mu_M}\left( \frac{\Omega(n)-V}{\sqrt V}\le x\right)-\Phi(x)\right|. \] We verify below that $\Delta_M\to0$. An interval of length $2K$ then satisfies \[ \sup_r\rho_{M,S}\{r-K<\Omega(m)\le r+K\} \le\frac{2\Delta_M+2K/\sqrt{2\pi V}}{a_{M,S}}. \] Under the product law set $G_r=\{\Omega(dm)>r\}$ and $H_r=\{\Omega(m)>r+K\}$. Since $H_r\subseteq G_r$ and \[ G_r\setminus H_r \subseteq\{\Omega(d)>K\}\cup \{r-K<\Omega(m)\le r+K\}, \] Markov's inequality gives \begin{equation}\label{eq:W-mask-error} \Prb_{\pi_S\otimes\rho_{M,S}}(G_r\setminus H_r) \le B_{M,S,K}:= \frac{h_S}{K}+ \frac{2\Delta_M+2K/\sqrt{2\pi V}}{a_{M,S}}. \end{equation} This estimate is uniform in $r$. \subsection{Proof of the reconstruction theorem} Fix a decoder $\widehat n$. Its success on $F_r$ is at most $\Prb(F_r)$. For its success on $F_r^c$, first use Lemma~\ref{lem:small-part}, then replace $G_r$ by $H_r$ using \eqref{eq:W-mask-error}, and finally use the kernel comparison \eqref{eq:W-deep-kernel}. Each test is an indicator, so each total-variation cost is paid once: \begin{align*} \Prb\{\widehat n(T_r)=n,F_r^c\} &\le\beta_{M,S}+B_{M,S,K}+C_{M,S,K}\\ &\quad+ \E_{\pi_S\otimes\rho_{M,S}K_r(m)} \left[\mathbf1_{H_r}\mathbf1_{\{\widehat n(T_r)=dm\}}\right]. \end{align*} In the last experiment $d$ is independent of $(m,T_r)$ and of the decoder's independent randomization. For fixed values of those variables, success selects at most one $d$, with mass at most $c_S$. Since multiplying the labels reconstructs $n$ on the observable event $F_r$, we have for every $r$ \begin{equation}\label{eq:W-finite-exact} 0\le\mathcal R_M^-(r)-\Prb(F_r) \le c_S+\beta_{M,S}+B_{M,S,K}+C_{M,S,K}. \end{equation} Take $K=\max(1,\lfloor V^{1/4}\rfloor)$. For fixed $S$, $a_{M,S}\to c_S>0$ and all the displayed error terms tend to zero. It follows that \[ \limsup_{M\to\infty}\sup_{r\ge0} \{\mathcal R_M^-(r)-\Prb(F_r)\}\le c_S. \] Now let $S=\{p:p\le y\}$ and then $y\to\infty$. Since $c_S\to0$, this proves \eqref{eq:W-optimal-exact}. The proof uses the order $M\to\infty$ followed by $S$ increasing through the primes. \subsection{Proof of the signed posterior theorem} For any test $|\varphi|\le1$ of the transcript, the same transport applied to signed functions gives \begin{align*} \left|\E[\lambda(n)\mathbf1_{F_r^c}\varphi(T_r)]\right| &\le2\beta_{M,S}+B_{M,S,K}+2C_{M,S,K}\\ &\quad+\left| \E_{\pi_S\otimes\rho_{M,S}K_r(m)} [\lambda(d)\lambda(m)\mathbf1_{H_r}\varphi(T_r)] \right|. \end{align*} The last term factors through the average of $\lambda(d)$ and is at most $\ell_S=\prod_{p\in S}(p-1)/(p+1)$. Thus \begin{equation}\label{eq:W-finite-signed} \left|\E[\lambda(n)\mathbf1_{F_r^c}\varphi(T_r)]\right| \le\ell_S+2\beta_{M,S}+B_{M,S,K}+2C_{M,S,K}. \end{equation} With the same order of limits this tends to zero, uniformly in $r,\varphi$. Since $F_r$ is observable and $q_{M,r}=\lambda(n)$ on $F_r$, conditional duality identifies the supremum over $\varphi$ with $\E[\mathbf1_{F_r^c}|q_{M,r}|]$. This proves \eqref{eq:W-lambda-posterior}. The second-moment conclusion follows from $|q_{M,r}|\le1$. For a sign target, the minimal absolute and quadratic risks are respectively $1-\E|q_{M,r}|$ and $1-\E q_{M,r}^2$, giving the asserted limits. \subsection{Erdős--Kac on the harmonic window} The classical theorem \cite{EK} first applies to $\omega(n)$ under uniform sampling from $[1,x]$. In that experiment, \[ \E(\Omega(n)-\omega(n)) \le\sum_p\frac1{p(p-1)}<\infty, \] so Markov's inequality replaces $\omega$ by $\Omega$ on the scale $\sqrt{\log\log x}$. Continuity of the limiting normal distribution then gives uniform convergence of the distribution functions. For $x\in[M,M^2]$, the centering $\log\log x$ differs from $V$ by at most $\log2+o(1)$, and the standard deviations are uniformly equivalent. The discrepancy therefore tends to zero simultaneously for all such $x$ and all thresholds. Apply partial summation to $A_r(x)=\sum_{n\le x}\mathbf1_{\{\Omega(n)\le r\}}$. The boundary terms in the normalized harmonic sum are $O(1/T_M)$, and the integral has weight $dt/(tT_M)$ on $[M,M^2]$ and total mass $1+o(1)$. The preceding uniform convergence implies $\Delta_M\to0$, uniformly in the integer threshold $r$. This also proves \eqref{eq:W-gaussian-exact}. \subsection{Removing the final bit and translating the anchor} Without the final bit, $\{\Omega(n)0$, so one may condition on it. The proof does not assert uniformity after division by a vanishing event probability, nor does it cover stopping rules that reveal hidden occurrence counts or nontrivial cofactors. \section{Two anchors: reconstruction and dependence} \label{sec:two} We now observe $u_0=n$ and $u_1=an+1$, where $a\in\{1,3\}$ is fixed and $n\sim\mu_M$. Anchor $i$ supplies $r_i$ labels according to either sampling protocol. Within an anchor sampled with replacement, the draws are conditionally independent. The two chains may be coupled arbitrarily, provided that each has its prescribed conditional marginal law. Without replacement, let $D_i$ be the product of all removed occurrences; with replacement, let $D_i$ be the product of the distinct labels seen. In either case $D_i\mid u_i$. Set \[ m_i=u_i/D_i,\qquad R=\log m_0+\log m_1,\qquad s_M=\frac1{r_0+1}+\frac1{r_1+1}. \] Only $D_0,D_1$ are observed. The cofactors $m_i$ enter the proof. \subsection{A logarithmic remainder estimate} \begin{lemma}[Unobserved logarithmic mass]\label{lem:two-remainder} For $u=n,n+1$ or $3n+1$, either sampling protocol satisfies \begin{equation}\label{eq:two-rest} \E\log\frac u{D_r}\le\frac{120L}{r+1}+42 \qquad(M\ge3,\ r\ge0). \end{equation} In particular, $\E R\le120Ls_M+84$. \end{lemma} \begin{proof} For all three forms, $u1$, let $A_H$ be the observable event that there exist $n\in I_M$ and integers $1\le k_0,k_1\le H$ such that \[ D_0k_0=n,\qquad D_1k_1=an+1. \] The true origin witnesses this event whenever $R\le\log H$, hence \[ P_M(A_H)\ge1-\frac{120Ls_M+84}{\log H}. \] On the other hand, $\Prb(D_i=d)\le\Prb(d\mid u_i)\le7/d$. A union bound over candidate origins and cofactors gives \begin{align*} Q_M(A_H) &\le49\sum_{n=M}^{M^2-1}\frac1{n(an+1)} \left(\sum_{k\le H}k\right)^2\\ &\le49H^4\sum_{n=M}^{\infty}\frac1{n(n+1)} =\frac{49H^4}{M}. \end{align*} Taking $H=M^{1/8}$ yields \begin{equation}\label{eq:two-tv} \TV(P_M,Q_M)\ge1-960s_M-\frac{672}{L}-\frac{49}{\sqrt M}. \end{equation} Thus the distance tends to one when both budgets diverge. By projection the same conclusion holds for the full transcripts. The comparison is with the product of the unconditional marginals; conditional independence given $n$ does not remove the dependence created by the common origin. \subsection{Mutual information of two revealed divisors} All entropies in this paper use natural logarithms. For every admissible coupling, \begin{equation}\label{eq:two-information} \frac{I(D_0;D_1)}{\log M}\longrightarrow\frac32 \qquad(r_0,r_1\to\infty). \end{equation} Indeed, sum--integral comparison gives \[ H(n)=\E\log n+\log T_M =\frac32L+\log L+O(M^{-1}). \] At fixed $D_i$, the cofactor $m_i$ and $n$ determine one another. Gibbs' inequality with the probability $q(m)=1/[\zeta(2)m^2]$ therefore implies \[ H(n\mid D_i)=H(m_i\mid D_i) \le2\E\log m_i+\log\zeta(2). \] The three-variable information identity gives \[ I(D_0;D_1)\ge H(n)-H(n\mid D_0)-H(n\mid D_1) \ge H(n)-2\E R-2\log\zeta(2). \] For the reverse bound, $D_0$ belongs to the set of divisors of $n$. The chain rule and Jensen's inequality yield \[ I(D_0;D_1)\le H(n)+H(D_0\mid n) \le H(n)+\log\E\tau(n) \le H(n)+\log(4L+2), \] using $\E\tau(n)\le2\sum_{d\le M^2}1/d\le4L+2$. Since $\E R=o(L)$, the two bounds prove \eqref{eq:two-information}. The upper bound uses the divisor support; it is not an upper bound for arbitrarily long transcripts with additional shared randomness. \section{One growing observation and one auxiliary prime} \label{sec:asym} The preceding certified decoder uses two growing budgets. A decoder allowed to make an error needs only one. Give an anchor $u_j$ $r$ observations, and let the other anchor reveal only its first prime label $P$. Let $D\mid u_j$ be the product of removed occurrences without replacement, or of distinct observed labels with replacement. Put $m=u_j/D$. The first-label law is the same in both protocols: \[ \Prb(P=p\mid n)=\frac{v_p(u_{1-j})\log p}{\log u_{1-j}}. \] The coupling between the two observations may be arbitrary with the prescribed conditional marginals. The cofactor $m$ is not revealed. \subsection{A small cofactor and a large auxiliary label} Lemma~\ref{lem:two-remainder} gives, in both orientations, \begin{equation}\label{asym:remainder} \E\log m\le B_{M,r}:=\frac{120L}{r+1}+42. \end{equation} \begin{lemma}[The size of the auxiliary label]\label{lem:asym-small-prime} For every $t>0$ and every prime $p$, \begin{align} \Prb(P\le e^t)&\le\min\left\{1,\frac{20t+42}{L}\right\}, \label{asym:small-prime}\\ \Prb(P=p)&\le\frac{7\log p}{L(p-1)} \le\frac{14\log p}{Lp}. \label{asym:pointmass} \end{align} \end{lemma} \begin{proof} The point-mass bound follows from $\log u_i\ge L$ and $\E v_p(u_i)\le7/(p-1)$. For $H\ge2$, Chebyshev's bound and partial summation give \[ \sum_{p\le H}\frac{\log p}{p-1} =\sum_{p\le H}\frac{\log p}{p} +\sum_{p\le H}\frac{\log p}{p(p-1)} \le C_\vartheta(1+\log H)+3. \] It follows that \[ \Prb(P\le H)\le \frac{7C_\vartheta\log H+7(C_\vartheta+3)}L \le\frac{20\log H+42}L. \] For $10$, \begin{equation}\label{asym:error-t} \Prb(\widehat n\ne n)\le\frac{B_{M,r}}t+\frac{20t+42}{L}. \end{equation} In particular, \begin{equation}\label{asym:error-optimized} \Prb(\widehat n\ne n) \le\min\left\{1,\ 2\sqrt{\frac{2400}{r+1}+\frac{840}{L}}+\frac{42}{L}\right\}. \end{equation} Thus $r=r_M\to\infty$ and a single label at the other anchor suffice for reconstruction with probability tending to one. \end{theorem} \begin{proof} On $\{m\le e^tt)+\Prb(P\le e^t) \le B_{M,r}/t+(20t+42)/L. \] No independence of $m$ and $P$ is used. Choose $t=\sqrt{B_{M,r}L/20}$ to obtain \eqref{asym:error-optimized}. \end{proof} This decoder does not certify its own success. For example, take $a=1$, $M=8$ and $n=50$. Two removals with labels $(2,5)$ give $D=10$, with a nontermination bit, while the anchor $51$ can reveal $P=3$. The congruence gives $h=2$ and returns $20\in[8,64)$. The origin $20$ admits the same nonterminated transcript $(2,5)$ and the auxiliary prime $3$ at $21$. The theorem controls the average error; it does not provide a zero-error certificate. \begin{corollary}[Positive unbalanced budgets]\label{cor:asym-budget} Suppose both budgets are positive for all sufficiently large \(M\). If \(\max(r_0(M),r_1(M))\to\infty\), the joint observation reconstructs \(n\) in probability for every admissible coupling. \end{corollary} Use the larger-budget anchor and the first label of the other. The constants are common to both orientations, so the choice of orientation may vary with $M$. For any deterministic sign $W_M(n)$, assign an arbitrary answer on abstention. Then \begin{equation}\label{asym:sign} \|\E[W_M(n)\mid D,P]\|_1 \ge1-2\Prb(\widehat n\ne n)\longrightarrow1. \end{equation} The factor two accounts for possibly incorrect returned values. Section~\ref{sec:bounded-budgets} will prove necessity of the diverging-maximum condition under conditional independence. \subsection{Dependence persists with one auxiliary label} Let $P_M=\mathcal L(D,P)$ and $Q_M=\mathcal L(D)\otimes\mathcal L(P)$. For $H>1$ and $K>H$, let $C_{H,K}$ be the event that $P>K$ and there exists an integer $1\le h\le H$ for which \[ N(D,h)= \begin{cases} Dh,&j=0,\\ (Dh-1)/a,&j=1 \end{cases} \] is an integer in $I_M$ and $P$ divides its other anchor. \begin{proposition}[Asymmetric separation]\label{prop:asym-tv} For every $t>0$, \begin{equation}\label{asym:tv} \TV(P_M,Q_M)\ge 1-\frac{B_{M,r}}t-\frac{40t+42}L-42e^{-t}. \end{equation} In particular, this distance tends to one if $r_M\to\infty$. \end{proposition} \begin{proof} Under the true law, the actual cofactor witnesses $C_{H,K}$ when $m\le H$ and $P>K$. Thus \[ P_M(C_{H,K})\ge 1-\frac{B_{M,r}}{\log H}-\frac{20\log K+42}L. \] Under $Q_M$, condition on $D$. For each admissible $h$, the other anchor $v$ of the candidate is less than $M^3$. By \eqref{asym:pointmass}, \[ \sum_{\substack{p\mid v\\p>K}}\Prb(P=p) \le\frac{14}{LK}\sum_{p\mid v}\log p \le\frac{14\log v}{LK}\le\frac{42}K. \] A union bound over at most $H$ candidates gives $Q_M(C_{H,K})\le42H/K$. Set $H=e^t$ and $K=e^{2t}$. For the limit, choose $t=\sqrt{B_{M,r}L/40}$. Since $B_{M,r}\ge42$, this tends to infinity, whereas $t/L$ and $B_{M,r}/t$ tend to zero if $r_M\to\infty$. \end{proof} The same separation holds for full transcripts by projection. For $a=1$, the regime $r_M\to\infty$ with $r_M=o(\log\log M)$ without replacement, or $r_M=o(\log M)$ with replacement, is especially instructive. Both individual observations have vanishing optimal reconstruction probability, while their union succeeds. Reconstruction permits evaluation of a prescribed sign at the recovered origin; it does not calculate that sign's arithmetic mean. \section{Information carried by one auxiliary prime} \label{sec:entropy-asym} The mutual information of the asymmetric experiment has a different leading coefficient from that of two growing divisor observations. It can be computed from a single additive moment, without a joint limit law for the factorizations of the two anchors. \begin{theorem}[Asymmetric mutual information]\label{thm:asym-information} For both orientations, either protocol at the growing anchor and every admissible coupling, \begin{equation}\label{ent:mutual} \frac{I(D;P)}{\log M}\longrightarrow\frac34 \qquad(r_M\to\infty). \end{equation} The marginal law of the auxiliary prime satisfies \begin{equation}\label{ent:marginal} \E\log P=\frac34L+O(1),\qquad H(P)=\frac34L+O(\log L), \end{equation} with constants common to the anchors $n,n+1,3n+1$. \end{theorem} \subsection{An additive moment} The elementary form of Mertens' theorem is \begin{equation}\label{ent:mertens} \sum_{p\le x}\frac{\log p}{p}=\log x+O(1). \end{equation} For completeness, combine $\log(N!)=\sum_{d\le N}\Lambda(d)\lfloor N/d\rfloor$, $\sum_{d\le N}\Lambda(d)=O(N)$ and $\log(N!)=N\log N+O(N)$ to obtain $\sum_{d\le N}\Lambda(d)/d=\log N+O(1)$. Prime powers of exponent at least two contribute a bounded amount. This proves \eqref{ent:mertens}; see also \cite[Remark 1]{TaoMertens}. Partial summation gives \begin{equation}\label{ent:mertens-square} \sum_{p\le x}\frac{(\log p)^2}{p} =\frac12(\log x)^2+O(\log x). \end{equation} Define $F(u)=\sum_pv_p(u)(\log p)^2$. For $(a,b)\in\{(1,0),(1,1),(3,1)\}$, \begin{equation}\label{ent:additive-sum} A_{a,b}(x):=\sum_{n\le x}F(an+b) =\frac12x(\log x)^2+O_a(x\log x). \end{equation} Indeed, if $p\nmid a$, the congruence $an+b\equiv0\pmod{p^k}$ has one residue class, so its count is $x/p^k+O(1)$. Primes dividing $a$ do not occur. With $Y=a\lfloor x\rfloor+b\ll_a x$, \[ A_{a,b}(x) =x\sum_{\substack{p^k\le Y\\p\nmid a}}\frac{(\log p)^2}{p^k} +O\left(\sum_{p^k\le Y}(\log p)^2\right). \] The $k=1$ main term is given by \eqref{ent:mertens-square}; the higher-power main term is $O(x)$. The $k=1$ error is at most $(\log Y)\vartheta(Y)=O_a(x\log x)$, and the higher-power error is $O_a(\sqrt x(\log x)^3)=O_a(x\log x)$. Excluding the finitely many primes dividing $a$ and replacing $\log Y$ by $\log x+O_a(1)$ preserves the stated error. \subsection{Harmonic averaging of the prime size} Conditionally on the origin, \[ \E[\log P\mid n]=\frac{F(an+b)}{\log(an+b)}. \] Since $\log(an+b)=\log n+O_a(1)$ and $F(an+b)\le(\log(an+b))^2$, replacing the denominator by $\log n$ costs $O_a(1)$ in the harmonic expectation. Apply partial summation to \eqref{ent:additive-sum}, with $w(t)=1/(t\log t)$, on $[M,M^2]$. The error contributes $O_a(L)$, because its boundary terms are $O_a(1)$ and $\int_M^{M^2}t\log t\,|w'(t)|\,dt=O(L)$. The derivative of $\tfrac12t(\log t)^2$ is $\tfrac12(\log t)^2+\log t$, giving \[ \sum_{M\le nn$. It attains \eqref{replace:optimal}. \end{theorem} One prime per anchor gives success $1/2+O_a(1/L)$. Budgets $(1,k)$ give $k/(k+1)+O_{a,k}(1/L)$, while $(2,2)$ and $(3,3)$ give respectively $5/6+O_a(1/L)$ and $19/20+O_a(1/L)$. These errors are not asserted uniformly for growing budgets. \subsection{A positive approximation to the likelihood} For $u=n,n+1,3n+1$, put $\Delta(u)=\log(u/\operatorname{rad}(u))$. Since $\Prb(d\mid u)\le7/d$, \begin{equation}\label{replace:radicaldefect} \E\Delta(u)\le 7\sum_p\sum_{k\ge2}\frac{\log p}{p^k} =7\sum_p\frac{\log p}{p(p-1)}=O(1). \end{equation} Replace each factor $v_p(u_i)$ in the likelihood by $\mathbf1_{p\mid u_i}$. This gives a positive submeasure whose conditional mass at $n$ is \[ \left(\frac{\log\operatorname{rad}(n)}{\log n}\right)^{r_0} \left(\frac{\log\operatorname{rad}(an+1)}{\log(an+1)}\right)^{r_1}. \] The inequality $1-x^r\le r(1-x)$ for $0\le x\le1$ shows that the removed mass is $O_R(1/L)$. Since $0\le\log(an+1)-\log n\le\log(a+1)$, replacing $(\log n)^{r_0}(\log(an+1))^{r_1}$ by $(\log n)^R$ costs $O_{a,R}(1/L)$ in $\ell^1$. The true joint law of the origin and transcripts is therefore within $O_{a,R}(1/L)$ in $\ell^1$ of \begin{equation}\label{replace:approxlaw} \begin{split} \widetilde w_M(n,\mathbf p,\mathbf q) =\frac{\mathbf1_{I_M}(n)}{nT_M(\log n)^R} &\prod_{j=1}^{r_0} \bigl(\mathbf1_{p_j\mid n}\log p_j\bigr)\\[-2pt] {}\cdot& \prod_{j=1}^{r_1} \bigl(\mathbf1_{q_j\mid an+1}\log q_j\bigr). \end{split} \end{equation} This applies to every bounded test, including the success indicator of a decoder depending on $M$. \subsection{Repetitions and weighted prime convolutions} Each ordered transcript determines a partition $\pi_i$ of $\{1,\ldots,r_i\}$: two positions are in the same block exactly when they carry the same prime. Order blocks by their least position. The partition pair and the assigned block primes then specify the transcript uniquely. If the block sizes are $b_1,\ldots,b_k$, then $\sum_jb_j=R$. All block primes are distinct since the anchors are coprime. Set \[ W_{\mathbf b}(\mathbf p)=\prod_{j=1}^k(\log p_j)^{b_j}, \qquad d(\mathbf p)=\prod_{j=1}^kp_j. \] \begin{lemma}[Weighted simplex sums]\label{lem:replace-simplex} For fixed $\mathbf b=(b_1,\ldots,b_k)$, with $b_j\ge1$ and $R=\sum_jb_j$, \begin{align} F_{\mathbf b}(x) &:=\sum_{\substack{p_1\cdots p_k\le x\\p_j\ {\rm distinct}}} \prod_{j=1}^k\frac{(\log p_j)^{b_j}}{p_j} =\frac{\prod_j(b_j-1)!}{R!}(\log x)^R +O_{\mathbf b}((1+\log x)^{R-1}), \label{replace:weighted-simplex}\\ W_{\mathbf b}(x) &:=\sum_{p_1\cdots p_k\le x} \prod_{j=1}^k(\log p_j)^{b_j} \ll_{\mathbf b}x(1+\log x)^{R-1}. \label{replace:weighted-count} \end{align} The first estimate remains valid when fixed finite sets of primes are excluded from selected coordinates; the error constant may depend on those sets. \end{lemma} \begin{proof} By \eqref{ent:mertens}, $A(t):=\sum_{p\le e^t}(\log p)/p=t+O(1)$ for $t\ge0$. Without distinctness and with $T=\log x$, the first sum is \[ \int_{t_1+\cdots+t_k\le T} \prod_{j=1}^kt_j^{b_j-1}\,dA(t_1)\cdots dA(t_k). \] Replace $dA(t_j)$ by $dt_j$, one coordinate at a time. Keeping the others fixed, integration by parts against $d(A(t)-t)$ on $[0,U]$ bounds the change by $O_{b_j}((1+U)^{b_j-1})$. The other weighted masses total $O_{\mathbf b}((1+T)^{R-b_j})$. All replacements therefore cost $O_{\mathbf b}((1+T)^{R-1})$. The remaining Dirichlet integral is \[ \int_{t_1+\cdots+t_k\le T}\prod_jt_j^{b_j-1}\,dt =\frac{\prod_j(b_j-1)!}{R!}T^R. \] A collision $p_i=p_j$ contributes at most \[ O_{\mathbf b}\left((1+T)^{R-b_i-b_j} \sum_p\frac{(\log p)^{b_i+b_j}}{p^2}\right) =O_{\mathbf b}((1+T)^{R-2}). \] Excluding finitely many primes in coordinate $j$ costs $O_{\mathbf b}((1+T)^{R-b_j})$, with dependence on the excluded set, and is absorbed by the stated error. For the second estimate, Chebyshev gives $\sum_{p\le y}(\log p)^b\ll_b y(1+\log y)^{b-1}$. Sum first over $p_k$ and then use the weighted-convolution upper bound for the other $k-1$ coordinates: \[ W_{\mathbf b}(x)\ll_{\mathbf b} x(1+\log x)^{b_k-1}(1+\log x)^{R-b_k}. \] For $k=1$ this is the weighted Chebyshev bound itself. \end{proof} \subsection{The mass below the origin} Fix a partition pair $\pi=(\pi_0,\pi_1)$ with block sizes $\mathbf b$, assign its primes to the two anchors, and let $d_i$ be their product at anchor $i$. Put \[ A_{\pi,a}(x)=\sum_{n\le x} \sum_{\substack{\mathbf p\ {\rm distinct}\\ d_0\mid n,\ d_1\mid an+1\\d_0d_1\le n}} W_{\mathbf b}(\mathbf p). \] When no prime at the second anchor divides $a$, the divisibilities specify one class modulo $d=d_0d_1$. Its number of representatives in $[d,x]$ is $x/d+O(1)$, uniformly in the class and modulus. Lemma~\ref{lem:replace-simplex} gives \begin{equation}\label{replace:cumulative} \begin{split} A_{\pi,a}(x)&=c_\pi x(\log x)^R+ O_{a,\pi}(x(1+\log x)^{R-1}),\\ c_\pi&=\frac{\prod_{B\in\pi_0\cup\pi_1}(|B|-1)!}{R!}. \end{split} \end{equation} The unweighted estimate \eqref{replace:weighted-count} absorbs the CRT counting error. Excluding primes dividing $a$ from the second anchor does not change the leading term. Partial summation with $f(x)=1/[x(\log x)^R]$ on $[M,M^2]$ gives main term $c_\pi(L+R\log2)$ and error $O_{a,\pi}(1)$, using \[ -f'(x)=\frac1{x^2(\log x)^R} +\frac R{x^2(\log x)^{R+1}}. \] Changing integer endpoints costs $O_{a,R}(1/M)$, since the numerator at one origin is at most $(\log\operatorname{rad}(n))^{r_0} (\log\operatorname{rad}(an+1))^{r_1}\ll_{a,R}(\log n)^R$. After division by $T_M$, the mass of $D\le n$ with partition $\pi$ under \eqref{replace:approxlaw} is $c_\pi+O_{a,\pi}(1/L)$. The constants sum by \begin{equation}\label{replace:cycle-identity} \sum_{\pi\ {\rm a\ partition\ of}\ \{1,\ldots,r\}} \prod_{B\in\pi}(|B|-1)!=r!. \end{equation} A permutation decomposes uniquely into cycles; a prescribed block of $b$ elements supports $(b-1)!$ cycles. These are the weights in the Ewens formula with parameter one \cite[formula (2.19)]{Pitman}. Hence \[ \sum_{\pi_0,\pi_1}c_{(\pi_0,\pi_1)} =\frac{r_0!r_1!}{R!}=\binom R{r_0}^{-1}. \] The number of partitions is fixed. Restoring the true law proves \eqref{replace:lowmass}. \subsection{Every decoder has negligible success below the origin} For each transcript with partition $\pi$, a deterministic decoder selects at most one origin. On $D=d\le n$, it satisfies $n\ge\max(M,d)$ and $\log n\ge L$. Its success mass under \eqref{replace:approxlaw} is at most \[ \frac1{T_ML^R} \sum_{\substack{\mathbf p\ {\rm distinct}\\d\le M^2}} \frac{W_{\mathbf b}(\mathbf p)}{\max(M,d)} \le\frac1{T_ML^R} \left\{\frac{W_{\mathbf b}(M)}M+F_{\mathbf b}(M^2)\right\} =O_{a,\pi}(1/L). \] Sum over the partitions and restore the true law to obtain \eqref{replace:lowsuccess}. The uniformity in deterministic decoders also covers their independent randomized mixtures. \subsection{Optimality of the least CRT representative} Under the true law, \eqref{replace:crt} has a representative $z\in\{1,\ldots,D-1\}$; its class is nonzero since $D_1\ge2$. If $D>n$, it equals $n$. If $D\le n$, it is strictly smaller. Equality $D=n$ is impossible, since then $D_1$ would divide both $n$ and $an+1$. The decoder thus succeeds exactly on $D>n$. Every decoder also satisfies \[ \Prb(\widehat n=n)\le \Prb(D>n)+\Prb(\widehat n=n,D\le n). \] Equations \eqref{replace:lowmass}--\eqref{replace:lowsuccess} give the matching upper bound, proving Theorem~\ref{thm:replace-profile}. The same profile survives any additional observation taking at most $K$ values, with $K$ fixed independently of $M$. For each label transcript it allows at most $K$ candidate origins, multiplying the low-product bound by at most $K$. For randomized side information, append its conditional kernel to both measures in the $\ell^1$ comparison. The CRT decoder can ignore it. Conditional independence is used in the product likelihood \eqref{replace:approxlaw}. The deficit is not asserted for arbitrary couplings. Also, $D>n$ involves the hidden origin, so the least-representative decoder does not supply an observable zero-error certificate. \section{Fixed budgets without replacement and mixed protocols} \label{sec:fixed-wor-v30} The anchors remain $n,an+1$ with $a\in\{1,3\}$ and $n\sim\mu_M$, and the two chains are independent given $n$. All budgets in this section are positive and fixed before $M\to\infty$. For $00\\x+y\le1}} f_r^-(x)f_s^-(y)\,dx\,dy. \end{equation} In particular, \begin{align} \mathcal R_M^{-,-}(r,1)&=1-2^{-r}+o_{r,a}(1), \label{fwor:one-aux}\\ \mathcal R_M^{-,-}(2,2)&=\frac74-\frac{\pi^2}{12}+o_a(1). \label{fwor:two-two} \end{align} For $r$ draws with replacement at one anchor and $s$ removals at the other, in either orientation, \begin{equation}\label{fwor:mixed} \mathcal R_M^{+,-}(r,s) =1-\frac1{(r+1)^s}+o_{r,s,a}(1), \end{equation} where each budget is attached to the listed protocol. These conclusions hold with or without final termination bits. \end{theorem} Thus $(r,s)=(2,1)$ without replacement gives success $3/4+o(1)$, and mixed budgets $(2,2)$ give $8/9+o(1)$. The little-oh terms are not asserted uniformly for growing budgets. \subsection{An arithmetic measure on the simplex} \begin{lemma}[Weighted counting below the origin]\label{lem:fwor-simplex} Fix $k\ge1$ and assign $k$ labels to the two anchors, or to a single form chosen from $n,n+1,3n+1$. A tuple of distinct primes $(p_1,\ldots,p_k)$ is admissible at $n$ if each prime divides its assigned form. Let $d=\prod_jp_j$ and $S_k=\{x\in\mathbb R_{\ge0}^k:\sum_jx_j\le1\}$. The finite measure \begin{equation}\label{fwor:nu} \nu_M(F)=\frac1{T_M}\sum_{n\in I_M}\frac1{n(\log n)^k} \sum_{\substack{(p_1,\ldots,p_k)\ {\rm admissible}\\d\le n}} \left(\prod_j\log p_j\right) F\left(\frac{\log p_1}{\log n},\ldots, \frac{\log p_k}{\log n}\right) \end{equation} converges weakly to Lebesgue measure on $S_k$. The same convergence holds for bounded functions whose discontinuities form a Lebesgue-null set. \end{lemma} \begin{proof} It suffices to check monomials on the compact simplex. Fix nonnegative integers $m_1,\ldots,m_k$, put $D=k+\sum_jm_j$ and $c_{\boldsymbol m}=\prod_jm_j!/D!$. Lemma~\ref{lem:replace-simplex}, with $b_j=m_j+1$, gives \begin{align} \sum_{\substack{\prod p_j\le X\\p_j\ {\rm distinct}}} \frac{\prod_j(\log p_j)^{m_j+1}}{\prod_jp_j} &=c_{\boldsymbol m}(\log X)^D +O_{\boldsymbol m}((1+\log X)^{D-1}), \label{fwor:weighted-convolution}\\ W_{\boldsymbol m}(X):= \sum_{\prod p_j\le X}\prod_j(\log p_j)^{m_j+1} &\ll_{\boldsymbol m}X(1+\log X)^{D-1}. \label{fwor:weighted-count} \end{align} Excluding primes dividing affine coefficients does not alter the leading term. For each admissible tuple the divisibilities specify one class modulo $d$, with $X/d+O(1)$ representatives in $[d,X]$. Consequently, \[ A_{\boldsymbol m}(X):= \sum_{n\le X}\sum_{\substack{(p_j)\ {\rm admissible}\\d\le n}} \prod_j(\log p_j)^{m_j+1} =c_{\boldsymbol m}X(\log X)^D +O_{\boldsymbol m,a}(X(1+\log X)^{D-1}). \] Partial summation with $1/[x(\log x)^D]$ on $[M,M^2]$ gives \[ \nu_M\left(\prod_jx_j^{m_j}\right) =c_{\boldsymbol m}+O_{\boldsymbol m,a}(1/L). \] The integer endpoints contribute no larger error, since the numerator at one origin is bounded by a constant times $(\log(an+1))^D$. As $c_{\boldsymbol m}=\int_{S_k}\prod_jx_j^{m_j}\,dx$, polynomial approximation proves weak convergence. Approximation outside a neighborhood of the discontinuity set proves the extension to bounded almost-everywhere continuous tests. \end{proof} The restriction $d\le n$ controls the sum of the $O(1)$ errors in the CRT counts through \eqref{fwor:weighted-count}; it is part of the lemma's contract. \subsection{Marginal submeasures and sampling denominators} At an anchor $u$, distinguish one occurrence of each prime divisor. Retain only paths selecting these distinguished occurrences. Their labels are distinct and they form a submeasure of the true law; the marks are not observed. The path $(p_1,\ldots,p_r)$ has weight \[ \frac{\prod_{j=1}^r\log p_j} {\prod_{j=1}^r(\log u-\sum_{h0$ and a deterministic decoder. In the truncated submeasures a transcript specifies an ordered tuple of $R=r+s$ distinct primes. If $d\le n$, both final bits are zero: termination would give $D_i=u_i\ge n$ and the other positive budget gives $D_{1-i}\ge2$. At most one origin is selected per tuple, and it is at least $\max(M,d)$. Its mass is at most \[ \frac{C_{r,s,\delta}}{T_ML^R} \frac{\prod_{j=1}^R\log p_j}{\max(M,d)}. \] Equations \eqref{fwor:weighted-convolution}--\eqref{fwor:weighted-count} give, uniformly over decoders, \begin{align*} \Prb(\widehat n=n,d\le n) &\le2-I_r(\delta)-I_s(\delta)+o_{r,s,a,\delta}(1)\\ &\quad+\frac{C_{r,s,\delta}}{T_ML^R} \left\{\frac{W_{\boldsymbol0}(M)}M+ \sum_{\prod p_j\le M^2} \frac{\prod_j\log p_j}{\prod_jp_j}\right\}. \end{align*} The explicit term is $O_{r,s,\delta}(1/L)$. Taking $M\to\infty$ and then $\delta\downarrow0$ proves \begin{equation}\label{fwor:low-success} \sup_{\widehat n} \Prb(\widehat n=n,D_0D_1\le n)=o_{r,s,a}(1). \end{equation} Independent randomized decoders are covered by mixtures. The least positive CRT representative for $z\equiv0\pmod{D_0}$, $az\equiv-1\pmod{D_1}$ lies in $\{1,\ldots,d-1\}$ and equals $n$ exactly when $d>n$. This includes repeated and absorbed paths: $D_i$ always remains a divisor of its anchor. Returning this representative when it belongs to $I_M$ gives success $1-\Prb(d\le n)$. Together with \eqref{fwor:low-success}, this proves \eqref{fwor:main}. \subsection{Constants and the mixed experiment} Since $f_1^-=1$, \[ \gamma_{r,1}=\frac1{(r-1)!}\int_0^1 (1-x)[-\log(1-x)]^{r-1}\,dx=2^{-r}. \] For $|u|,|v|<1/2$, \begin{align} \sum_{r,s\ge1}\gamma_{r,s}u^{r-1}v^{s-1} &=\int_{x+y\le1}(1-x)^{-u}(1-y)^{-v}\,dx\,dy\notag\\ &=\frac1{(1-u)(1-v)} -\frac{\Gamma(1-u)\Gamma(1-v)}{\Gamma(3-u-v)}. \label{fwor:generating} \end{align} The coefficient of $uv$ is $\pi^2/12-3/4$, proving \eqref{fwor:two-two}. In the mixed experiment, take $r$ replacement draws and again distinguish one occurrence of each prime. The same distinguished occurrence can be selected repeatedly. For a repetition partition of block sizes $b_1,\ldots,b_k$, the reduced weight is $\prod_j(\log p_j)^{b_j}/(\log u)^r$. The simplex lemma gives density $\prod_jx_j^{b_j-1}$ on $S_k$, with mass $t^r\prod_j(b_j-1)!/r!$ on $\sum_jx_j\le t$. The cycle identity \eqref{replace:cycle-identity} shows that the sum of these submeasures has limiting mass one and logarithmic-product density $f_r^+(x)=rx^{r-1}$. Multiply these by the removal submeasures of budget $s$. Conditional independence and the simplex lemma give \[ \int_{x+y\le1}f_r^+(x)f_s^-(y)\,dx\,dy =\frac1{(s-1)!}\int_0^1 (1-y)^r[-\log(1-y)]^{s-1}\,dy =\frac1{(r+1)^s}. \] For the matching upper bound on success, use \eqref{fwor:weighted-convolution}--\eqref{fwor:weighted-count} with $m_j=b_j-1$ at replacement blocks and $m_j=0$ at removal labels. The total degree is $r+s$. Summing the finitely many partitions preserves the $O_{r,s,\delta}(1/L)$ low-product success bound, while the omitted mass tends to zero after truncation is removed. The CRT decoder uses the distinct-label product at the replacement anchor and the occurrence product at the removal anchor, and succeeds exactly when their product exceeds $n$. This proves \eqref{fwor:mixed} in either orientation. \section{Comparison of protocols and the positive-budget criterion} \label{sec:bounded-budgets} The fixed-budget reconstruction limits are summarized below. In the mixed column, $r$ is the replacement budget and $s$ the removal budget, irrespective of which anchor uses them. \begin{center} \begin{tabular}{@{}cccc@{}} \toprule Budgets $(r,s)$ & With/with & With $r$/without $s$ & Without/without\\ \midrule $(1,1)$ & $1/2$ & $1/2$ & $1/2$\\ $(2,1)$ & $2/3$ & $2/3$ & $3/4$\\ $(1,2)$ & $2/3$ & $3/4$ & $3/4$\\ $(2,2)$ & $5/6$ & $8/9$ & $7/4-\pi^2/12$\\ \bottomrule \end{tabular} \end{center} For a fixed total budget $R=r+s$ and replacement at both anchors, the limiting success is maximized by balancing the budgets: this is exactly the maximization of $\binom Rr$. This is a comparison after taking $M\to\infty$ at fixed $R$. \begin{corollary}[The obstruction at fixed positive budgets] \label{cor:budget-budget-criterion} Under conditional independence, for fixed positive $r_0,r_1$ and any of the four choices of protocols, \begin{equation}\label{eq:budget-fixed-deficit} \limsup_{M\to\infty}\mathcal R_M^{\rm joint}(r_0,r_1) \le1-\frac1{(r_0+r_1)!}. \end{equation} For deterministic budgets that are both positive for all large $M$, \begin{equation}\label{eq:joint-budget-iff} \mathcal R_M^{\rm joint}(r_0(M),r_1(M))\longrightarrow1 \quad\Longleftrightarrow\quad \max(r_0(M),r_1(M))\longrightarrow\infty. \end{equation} Sufficiency holds for every admissible coupling; necessity here is proved under conditional independence. \end{corollary} \begin{proof} With replacement, the exact deficit $r_0!r_1!/(r_0+r_1)!$ is at least $1/(r_0+r_1)!$. Without replacement, $K_{r_0}K_{r_1}\ge1$ on the simplex of dimension $r_0+r_1$, whose volume is $1/(r_0+r_1)!$. For a mixed pair, retain the singleton partition at the replacement anchor and use $K_s\ge1$ at the other anchor. This proves \eqref{eq:budget-fixed-deficit}. Sufficiency in \eqref{eq:joint-budget-iff} is Corollary~\ref{cor:asym-budget}, with the larger-budget anchor and one label from the other. If the maximum does not tend to infinity, there is a fixed $B\ge1$ and a subsequence on which both budgets are at most $B$. Extend both chains to budget $B$. This enriches the observation and preserves conditional independence. For a removal chain, the final bit at a smaller budget $r0\\x+y\le1}} (1-x-y)f_r^\sigma(x)f_s^\tau(y)\,dx\,dy. \label{v31ent:K} \end{align} The factor $1-x-y$ measures the logarithmic size still undetermined when the combined divisor is below the origin. Thus $K_{r,s}^{\sigma,\tau}$ differs from the probability mass of that region. \begin{theorem}[Entropy coefficients]\label{thm:labels-fixed-entropy} Under conditional independence of the two chains given $n$, \begin{align} H(\mathcal T_0)&=\frac32m_r^\sigma L+o(L),& H(\mathcal T_1)&=\frac32m_s^\tau L+o(L), \label{v31ent:marginal}\\ H(\mathcal T_0,\mathcal T_1) &=\frac32(1-K_{r,s}^{\sigma,\tau})L+o(L), \label{v31ent:joint}\\ I(\mathcal T_0;\mathcal T_1) &=\frac32\bigl(m_r^\sigma+m_s^\tau-1+ K_{r,s}^{\sigma,\tau}\bigr)L+o(L). \label{v31ent:mutual} \end{align} When both anchors are sampled with replacement, every $o(L)$ remainder can be replaced by $O_{a,r,s}(\log L)$. Adding termination bits, or side-information alphabets of fixed sizes at the respective anchors, does not change the coefficients. \end{theorem} The constants include \begin{align} K_{r,s}^{+,+}&=\frac{r!s!}{(r+s+1)!}, \label{v31ent:Kplus}\\ K_{r,s}^{+,-}&=\frac1{(r+1)(r+2)^s},& K_{r,s}^{-,+}&=\frac1{(s+1)(s+2)^r}, \label{v31ent:Kmixed}\\ K_{r,1}^{-,-}&=\frac1{2\cdot3^r},& K_{2,2}^{-,-}&=\frac{31}{108}-\frac{\pi^2}{36}. \label{v31ent:Kminus} \end{align} \subsection{Entropy before taking the arithmetic limit} The following comparison holds without conditional independence. \begin{lemma}[The entropy of a revealed divisor] \label{lem:v31ent-divisor} For the fixed budgets above, uniformly over all admissible couplings between the chains, \begin{align} H(\mathcal T_i)&=\E\log D_i+O_{a,r,s}(\log L), \label{v31ent:universal-marginal}\\ H(\mathcal T_0,\mathcal T_1) &=\E\log\min(n,D_0D_1)+O_{a,r,s}(\log L), \label{v31ent:universal-joint}\\ I(\mathcal T_0;\mathcal T_1) &=\E\left[\left(\log\frac{D_0D_1}{n}\right)_+\right] +O_{a,r,s}(\log L). \label{v31ent:universal-mutual} \end{align} The identities also hold with termination bits. \end{lemma} \begin{proof} We first treat the labels. For a one-anchor transcript $t$, let $D(t)$ be its divisor. Compatible origins belong to one residue class modulo $D(t)$. They are at least $D(t)$ at the first anchor and at least $D(t)/(2a)$ at the affine anchor. Separating the first term of the progression and comparing the rest with an integral gives a harmonic sum at most $(2a+L)/D(t)$. The observation kernel is bounded by one. Since $T_M\ge L$, \begin{equation}\label{v31ent:marginal-mass-bound} \Prb(\mathcal T_i=t)\le\frac{C_a}{D(t)}. \end{equation} It follows that $H(\mathcal T_i)\ge\E\log D_i-\log C_a$. For the upper bound, all labels are at most $4M^2$. With replacement, group transcripts by their repetition partitions; for each partition, the sum of $1/D(t)$ is bounded by a product of at most $r_i$ harmonic sums. Without replacement, sum over the lengths $0\le k\le r_i$ before absorption and ordered $k$-tuples of primes, allowing repetitions. Their weight is the product of the reciprocals of the removed occurrences. In either case, \begin{equation}\label{v31ent:normalizer} Z_i:=\sum_{t\ {\rm possible}}\frac1{D(t)} \le C_{r_i}(1+\log(4M^2))^{r_i}. \end{equation} Gibbs' inequality with the reference law $1/[Z_iD(t)]$ proves $H(\mathcal T_i)\le\E\log D_i+\log Z_i$ and hence \eqref{v31ent:universal-marginal}. For a joint transcript $t=(t_0,t_1)$, put $d=D_0(t_0)D_1(t_1)$ and let $z(t)\in\{1,\ldots,d-1\}$ be its CRT representative. Set $B=\{d\le n\}$, $G=\{d>n\}$ and define subprobabilities \[ \ell(t)=\Prb(\mathcal T=t,B),\qquad h(t)=\Prb(\mathcal T=t,G). \] With $S(v)=\sum_tv(t)\log(1/v(t))$, the exact mixing identity is \begin{equation}\label{v31ent:mixture} 0\le S(h)+S(\ell)-H(\mathcal T) =H(\mathbf1_G\mid\mathcal T)\le\log2. \end{equation} On $B$, possible origins are $z(t)+kd$ with $k\ge1$, so \[ \ell(t)\le\frac1{T_M} \sum_{1\le k0$, Gibbs' inequality applied to $\ell/b$ gives \[ S(\ell)\le\E[\log d\,\mathbf1_B] +b\log(Z_0Z_1)-b\log b. \] The case $b=0$ has zero contribution. Thus \begin{equation}\label{v31ent:low-entropy} S(\ell)=\E[\log d\,\mathbf1_B]+O_{r,s}(\log L). \end{equation} On $G$, the only possible origin is $n=z(t)$. Let $k_n(t)$ denote the conditional joint kernel, for any admissible coupling. Then \begin{align*} S(h) &=\E[\log n\,\mathbf1_G]+\Prb(G)\log T_M\\ &\quad+\sum_{n\in I_M}\mu_M(n) \sum_{t:\,d(t)>n}k_n(t)\log\frac1{k_n(t)}. \end{align*} The last term is nonnegative and at most $\E H(k_n)$. At a fixed origin, every label belongs to the prime divisors of its anchor, a set of size at most $\log(4M^2)/\log2$. Including the absorbing symbol increases that bound by one. The conditional support therefore has size at most $(1+CL)^{r+s}$, so its entropy is at most $(r+s)\log(1+CL)$, irrespective of how small its nonzero probabilities are. Hence \begin{equation}\label{v31ent:high-entropy} S(h)=\E[\log n\,\mathbf1_G]+O_{a,r,s}(\log L). \end{equation} Combining \eqref{v31ent:mixture}--\eqref{v31ent:high-entropy} proves \eqref{v31ent:universal-joint}. Subtracting from the two marginal entropies proves \eqref{v31ent:universal-mutual}, since \[ \log(D_0D_1)-\log\min(n,D_0D_1) =[\log(D_0D_1/n)]_+. \] Finally, adding an alphabet of size $A_i$ at anchor $i$ changes the marginal entropy by at most $\log A_i$ and the joint entropy by at most $\log(A_0A_1)$. This includes termination bits and proves the last assertion. \end{proof} \subsection{The harmonic scale factor in the moments} To use the previous lemma we need a joint moment with $\log n$. Convergence of $\log D/\log n$ alone does not justify multiplying its limit by $\E\log n$. \begin{lemma}[The simplex weighted by the origin scale] \label{lem:v31ent-weighted-simplex} In the notation of \eqref{fwor:nu}, the measure \[ \widehat\nu_M(F)=\frac1{LT_M} \sum_{n\in I_M}\frac1{n(\log n)^{k-1}} \sum_{\substack{(p_j)\ {\rm admissible}\\\prod p_j\le n}} \left(\prod_j\log p_j\right) F\left(\frac{\log p_1}{\log n},\ldots, \frac{\log p_k}{\log n}\right) \] converges weakly to $\tfrac32$ times Lebesgue measure on $S_k$. The conclusion also holds for bounded functions with a Lebesgue-null discontinuity set. For a fixed polynomial the error is $O(1/L)$. \end{lemma} \begin{proof} For a monomial of multi-degree $\boldsymbol m$, set $D=k+\sum_jm_j$ and $c_{\boldsymbol m}=\prod_jm_j!/D!$. The proof of Lemma~\ref{lem:fwor-simplex} gave \[ A_{\boldsymbol m}(X) =c_{\boldsymbol m}X(\log X)^D +O_{\boldsymbol m,a}(X(1+\log X)^{D-1}). \] Partial summation with $1/[x(\log x)^{D-1}]$ now gives main term \[ c_{\boldsymbol m}\int_M^{M^2} \frac{\log x+D}{x}\,dx =\frac32c_{\boldsymbol m}L^2+O_{\boldsymbol m}(L) \] and error $O_{\boldsymbol m,a}(L)$. Divide by $LT_M=L^2+O(L/M)$. Endpoint estimates and approximation on the compact simplex then finish the proof as before. \end{proof} Apply this lemma to the submeasures used for the fixed-budget profiles. With replacement, the repetition partitions have weights $\prod_jx_j^{b_j-1}$ and project to density $f_r^+$. Deleting the extra valuations and then restricting the affine anchor to $D_i\le n$ loses $O_{a,r}(1/L)$. For the latter statement, the retained mass is $1+O_{a,r}(1/L)$ by the polynomial moment calculation, while the mass before restriction is $1-O_r(1/L)$. It follows that \begin{equation}\label{v31ent:wr-marginal-moment} \E\log D_i=\frac32 \left(\int_0^1xf_r^+(x)\,dx\right)L+O_{a,r}(1). \end{equation} Without replacement, first impose the prefix truncation in \eqref{fwor:I-delta}. Its weight is bounded at fixed $\delta$, and the lemma applies. The lost mass has limsup at most $1-I_r(\delta)$, while $0\le\log D_i/L\le2+o(1)$. Taking $M\to\infty$ followed by $\delta\downarrow0$ gives \begin{equation}\label{v31ent:wor-marginal-moment} \frac{\E\log D_i}{L}\longrightarrow \frac32\int_0^1xf_r^-(x)\,dx. \end{equation} These integrals are $r/(r+1)$ and $1-2^{-r}$, respectively. On $B=\{D_0D_1\le n\}$, use the same argument with the bounded weight $1-x-y$: \begin{equation}\label{v31ent:deficit-moment} \frac1L\E\left[\log\frac n{D_0D_1}\,\mathbf1_B\right] \longrightarrow\frac32K_{r,s}^{\sigma,\tau}. \end{equation} Conditional independence is needed here to multiply the two submeasures. Their lost mass is bounded by the sum of the marginal losses, and the normalized logarithmic weight lies between zero and two. This justifies removal of the truncation without a joint product law beyond $x+y\le1$. When both protocols use replacement, there is no prefix singularity. For each partition pair the needed integral is \[ \int_{S_k}\left(1-\sum_jx_j\right) \prod_jx_j^{b_j-1}\,dx =\frac{\prod_j(b_j-1)!}{(r+s+1)!}. \] Summing the partitions gives $r!s!/(r+s+1)!$. The polynomial moment errors and the $\ell^1$ comparison give an $O_{a,r,s}(1/L)$ error in \eqref{v31ent:deficit-moment}. Finally, \[ \E\log\min(n,D_0D_1) =\E\log n-\E\left[\log\frac n{D_0D_1}\,\mathbf1_B\right], \qquad \E\log n=\frac32L+O(1). \] These identities and Lemma~\ref{lem:v31ent-divisor} prove Theorem~\ref{thm:labels-fixed-entropy}. \subsection{Explicit constants and successive limits} Formula \eqref{v31ent:Kplus} is the Dirichlet integral above. For the mixed case, first integrate the replacement variable: \[ \int_0^{1-y}(1-x-y)rx^{r-1}\,dx =\frac{(1-y)^{r+1}}{r+1}. \] The substitution $t=-\log(1-y)$ gives $K_{r,s}^{+,-}=1/[(r+1)(r+2)^s]$. For one auxiliary prime without replacement, \[ K_{r,1}^{-,-} =\frac12\int_0^1(1-x)^2f_r^-(x)\,dx =\frac1{2\cdot3^r}. \] For the remaining constants, when $|u|,|v|<1/2$, \begin{align} \sum_{r,s\ge1}K_{r,s}^{-,-}u^{r-1}v^{s-1} &=\int_{x+y\le1}(1-x-y)(1-x)^{-u}(1-y)^{-v}\,dx\,dy\notag\\ &=\frac{uv-u-v}{(1-u)(2-u)(1-v)(2-v)} +\frac{\Gamma(1-u)\Gamma(1-v)}{\Gamma(4-u-v)}. \label{v31ent:generating} \end{align} Indeed, integration in $y$ gives $1/(2-v)-x/(1-v)+x^{2-v}/[(1-v)(2-v)]$; integration in $x$ gives the displayed expression. Its $uv$ coefficient is $31/108-\pi^2/36$. Some joint-entropy and mutual-information coefficients are: \begin{center} \begin{tabular}{@{}cccc@{}} \toprule Budgets & Protocols & $\lim H(\mathcal T_0,\mathcal T_1)/L$ & $\lim I(\mathcal T_0;\mathcal T_1)/L$\\ \midrule $(1,1)$ & all & $5/4$ & $1/4$\\ $(2,1)$ & $(+,+)$ or $(+,-)$ & $11/8$ & $3/8$\\ $(2,1)$ & $(-,+)$ or $(-,-)$ & $17/12$ & $11/24$\\ $(2,2)$ & $(+,+)$ & $29/20$ & $11/20$\\ $(2,2)$ & mixed & $47/32$ & $21/32$\\ $(2,2)$ & $(-,-)$ & $77/72+\pi^2/24$ & $85/72-\pi^2/24$\\ \bottomrule \end{tabular} \end{center} Each limit is taken as $M\to\infty$ with the displayed budgets fixed. In particular, \[ \lim_{M\to\infty}\frac{I(\mathcal T_r^+;\mathcal T_1)}L =\frac{3r}{4(r+2)},\qquad \lim_{M\to\infty}\frac{I(\mathcal T_r^-;\mathcal T_1)}L =\frac34-\frac3{2^{r+1}}+\frac3{4\cdot3^r}. \] Taking $r\to\infty$ afterwards recovers the coefficient $3/4$ of the asymmetric experiment. This agreement uses successive limits, not a uniform statement for $r=r(M)$. The entropy comparison identifies the logarithmic size revealed by the joint congruence information: its leading value is $\E\log\min(n,D_0D_1)$. Mutual information is the expected positive logarithmic excess of the combined divisor over the origin, up to $O(\log L)$. The explicit limits above require only the small-modulus measures already proved. \part{Predicting a sign from two labels} \section{Predicting a sign on an observable confidence region} \label{sec:labels-confidence} We now observe one prime from each of the anchors \(n\) and \(an+1\), where \(a\in\{1,3\}\), with the two draws independent conditional on \(n\). The first draw has the same law with or without replacement. Write \(L=\log M\), \(d=pq\), and let \(z=z_a(p,q)\) be the least positive solution of \[ z\equiv0\pmod p,\qquad az\equiv-1\pmod q. \] Every pair that can be observed has \(p\ne q\) and \(q\nmid a\); for such a pair, \(1\le z