% =========================================================================== \section{The size of the denominator}\label{sec:size} % =========================================================================== Let $g,\tilde g\colon(0,1]\to\RR$ be the functions that are linear on each interval $[\frac1{m+1},\frac1m]$ and take the values $g(\frac1m)=c(m)/m$ and $\tilde g(\frac1m)=\tilde c(m)/m$ ($m\ge1$). \begin{lemma}\label{lem:chord} Let $1\le e\le K$ and write $K=qe+s_0$ with $0\le s_02}(1-p^{-2})+O(y\log y), \end{align*} and $\prod_{p>2}(1-p^{-2})=\frac6{\pi^2}\cdot\frac43=\frac8{\pi^2}$. For the second sum, $\sum_{n\le y}\eu(2n)=\sum_{m\le2y}\eu(m)-\sum_{m\le2y,\ m\ \mathrm{odd}}\eu(m)$, and $\sum_{m\le Y}\eu(m)=\frac3{\pi^2}Y^2+O(Y\log Y)$ \cite[Theorem~330]{HW}. \end{proof} \begin{lemma}\label{lem:partial} Let $a(n)$ be an arithmetic function with $\sum_{n\le y}a(n)=\kappa y^2+E(y)$ and $|E(y)|\le A_0\,y\log(2+y)$ for $y\ge1$. Let $X_0>0$ and let $\mathcal F\colon(0,X_0]\to\RR$ be continuous, with $|\mathcal F(x)|\le A_1/x$ and total variation at most $A_1/x$ on $[x,X_0]$. Then for $K\ge2$ \[ \sum_{1\le n\le X_0K}a(n)\,\mathcal F(n/K)=2\kappa K^2\int_0^{X_0}\mathcal F(x)\,x\,dx+O(K\log^2K), \] the implied constant depending only on $\kappa$, $A_0$, $A_1$, $X_0$. \end{lemma} \begin{proof} Let $\mathcal A(u)=\sum_{n\le u}a(n)$, $Y=X_0K$ and $f(u)=\mathcal F(u/K)$. Riemann--Stieltjes integration by parts on $[1,Y]$ (with $\mathcal A(1^-)=0$), followed by a second integration by parts of the main term, gives \[ \sum_{1\le n\le Y}a(n)f(n)=f(Y)E(Y)+\kappa f(1)+2\kappa\int_1^Yf(u)\,u\,du-\int_1^YE(u)\,df(u). \] Here $|f(Y)E(Y)|=O(K\log K)$ and $|f(1)|\le A_1K$. The integral equals $2\kappa K^2\int_{1/K}^{X_0}\mathcal F(x)x\,dx$, and $\int_0^{1/K}|\mathcal F(x)|x\,dx\le A_1/K$. On a dyadic interval $[U,2U]\subseteq[1,Y]$ we have $|E|\le2A_0U\log(2+2U)$, and the variation of $f$ there is at most $A_1K/U$; so this interval contributes $O(K\log(2+U))$ to the last integral, and the $O(\log K)$ intervals contribute $O(K\log^2K)$. \end{proof} Put \begin{gather*} I_e=\int_0^1\min(g(x),3)\,x\,dx,\qquad I_o=\int_0^1\min\Bigl(g(x)+1-\frac x2,\ \tilde g(x)\Bigr)x\,dx,\\ C=\frac8{\pi^2}I_e+\frac4{\pi^2}\Bigl(I_o+\frac13\Bigr). \end{gather*} \begin{proposition}\label{prop:size} \textup{(i)} $I_e=\frac{21}{32}$ and $I_o\le0.9463579$; hence $C\le1.0505756$. (Numerically $I_o=0.94635\ldots$ and $C=1.0505754\ldots$.) \textup{(ii)} $\log C_K(b)\le(C+o(1))\,K^3\log b$ as $K\to\infty$, where $C_K(b)=\prod_{d\ge1}\Phi_d(b)^{b_{K,d}}$ and the $o(1)$ is uniform in $b\ge2$. \end{proposition} \begin{proof} (i) By Lemma~\ref{lem:gprops}(iii), $I_e=\int_0^{1/4}3x\,dx+\int_{1/4}^1(4-4x)x\,dx=\frac3{32}+\frac9{16}=\frac{21}{32}$. For $I_o$: on each interval $[\frac1{m+1},\frac1m]$ the integrand is the minimum of two linear functions times $x$; we integrated it exactly in rational arithmetic for $m\le3000$. On $(0,\frac1{3001}]$ the integrand is $\ge0$ and $\le\tilde g(x)x\le\frac14+8x$. The last bound holds on $[\frac1{m+1},\frac1m]$ for $m\ge2$: the chord is at most the larger of its two node values and $x\le\frac1m$, and by Lemma~\ref{lem:gprops}(i) \begin{gather*} \frac{\tilde c(m+1)}{(m+1)m}\le\frac14+\frac{11m+20}{4m(m+1)}\le\frac14+\frac8{m+1},\\ \frac{\tilde c(m)}{m^2}\le\frac14+\frac{10m+9}{4m^2}\le\frac14+\frac8{m+1}, \end{gather*} while $x\ge\frac1{m+1}$. The segments give $0.94627408\ldots$ and the tail adds at most $\frac1{4\cdot3001}+\frac4{3001^2}<0.0000838$; with $\pi^2>9.8696044$ this gives $C\le1.0505756$. (The script \texttt{limit\_cost.py} in the supplementary material does this computation.) (ii) For $d\ge2$, $\Phi_d(b)=b^{\eu(d)}\prod_{a\mid d}(1-b^{-a})^{\mu(d/a)}$, so $|\log\Phi_d(b)-\eu(d)\log b|\le\sum_{a\ge1}|\log(1-2^{-a})|<1.25$. The factor $d=1$ contributes $b_{K,1}\log(b-1)=O(K^2\log b)$. By Lemma~\ref{lem:chord} and Theorem~\ref{prop:bound}, $b_{K,d}\le K\mathcal F_e(e/K)+3$ for even $d=2e\le2K$, and $b_{K,d}\le K\mathcal F_o(d/K)+3$ for odd $3\le d<2K$, where $\mathcal F_e=\min(g,3)$ on $(0,1]$, and $\mathcal F_o(x)=\min(g(x)+1-\frac x2,\tilde g(x))$ for $x\le1$, $\mathcal F_o(x)=1-\frac x2$ for $1K$, $b_{K,d}=\rho_d\le K(1-\frac d{2K})$.) Both functions satisfy the hypotheses of Lemma~\ref{lem:partial}, by Lemma~\ref{lem:gprops}; $\mathcal F_o$ is continuous at $1$, where both expressions equal $\frac12$. Hence $b_{K,d}\le A_1K^2/d+3$, so $\sum_db_{K,d}=O(K^2\log K)$, and Lemmas~\ref{lem:totient} and~\ref{lem:partial} (with $a(n)=\eu(2n)$, $\kappa=4/\pi^2$, and $a(n)=\eu(n)[n\ \mathrm{odd}]$, $\kappa=2/\pi^2$) give \begin{align*} \sum_{d\ge2}b_{K,d}\,\eu(d)&\le K^3\Bigl(\frac8{\pi^2}\int_0^1\mathcal F_e\,x\,dx+\frac4{\pi^2}\int_0^2\mathcal F_o\,x\,dx\Bigr) +O(K^2\log^2K)\\ &=CK^3+O(K^2\log^2K), \end{align*} since $\int_1^2(1-\frac x2)x\,dx=\frac13$. Altogether $\log C_K(b)\le CK^3\log b+O(K^2\log^2K\cdot\log b)$. \end{proof}