\documentclass[11pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern,microtype} \usepackage{amsmath,amssymb,amsthm,mathtools} \usepackage{geometry,booktabs,enumitem,xcolor} \usepackage{hyperref} \geometry{left=27mm,right=27mm,top=25mm,bottom=27mm} \definecolor{linkblue}{RGB}{24,66,93} \hypersetup{colorlinks=true,linkcolor=linkblue,citecolor=linkblue,urlcolor=linkblue, pdftitle={Small roots of split quadratic congruences and fundamental units in a quartic family}, pdfauthor={Brice Pouly},pdfsubject={Small congruence roots, minimal square copies, and fundamental quadratic units}, pdfkeywords={quadratic congruence, square class, fundamental unit, Pell equation, Erdos-Kac}} \urlstyle{same} \numberwithin{equation}{section} \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} \newtheorem{example}[theorem]{Example} \newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\Q}{\mathbb Q} \newcommand{\R}{\mathbb R} \newcommand{\C}{\mathbb C} \newcommand{\E}{\mathbb E} \newcommand{\OO}{\mathcal O} \newcommand{\eps}{\varepsilon} \newcommand{\ii}{\mathrm i} \newcommand{\e}[1]{\exp(2\pi\ii #1)} \newcommand{\1}{\mathbf1} \DeclareMathOperator{\Tr}{Tr} \DeclareMathOperator{\Norm}{N} \DeclareMathOperator{\disc}{disc} \DeclareMathOperator{\Cl}{Cl} \setlength{\parskip}{2pt} \setlength{\emergencystretch}{2em} \setlist{itemsep=2pt,topsep=4pt} \widowpenalty=6000 \clubpenalty=6000 \raggedbottom \setcounter{tocdepth}{1} \title{Small roots of split quadratic congruences\protect\\ and fundamental units in a quartic family} \author{Brice Pouly\thanks{Research and manuscript preparation with AI assistance. The computational appendix describes the checks and the use of AI.}} \date{} \begin{document} \maketitle \begin{abstract} We study two questions about square classes associated with the forms $n$, $n+1$, $3n+1$ and $3n+2$. For the least positive integer $k\ne3$ for which $(kn+1)/(3n+1)$ is a rational square, we prove $\log(n^2/K_*(n))=2(\log2)\omega(n)+O(\log\log\log n)$ on a set of natural density one. The proof combines an exact second moment for dilated congruence roots with a weighted sieve that includes every rational denominator. The same estimates give $\log(n/(r_n+2))=(\log2)\omega(n)+O(\log\log\log n)$ on a density-one set for the least nonnegative root of $(r+1)(r+3)\equiv0\pmod n$. This establishes its normal-order exponent $\log2$ predicted by Cri\c{s}an and Pollack for this polynomial. Both Gaussian limit laws follow from Erd\H{o}s--Kac. Second, write $D(n)=n(n+1)(3n+1)(3n+2)=d_ns_n^2$ with $d_n$ squarefree. The unit $9n(n+1)+1+3s_n\sqrt{d_n}$ is fundamental in the full ring of integers of $\Q(\sqrt{d_n})$ except for at most $\exp(O((\log X)^{2/3}))$ indices $n\le X$; there are at least a constant multiple of $\log X$ exceptions. The upper bound specializes Alp\"oge's integral-point descent using the splitting fields of a Chebyshev family. A final change of index retains the Liouville sign in a series over fundamental regulators. It transports local holomorphic continuation at $s=1$ equivalently between the two signed series, yielding a conditional cancellation criterion. \end{abstract} \begingroup \small \setlength{\parskip}{0pt} \tableofcontents \endgroup \section{Two questions about square classes} \label{sec:introduction} If two positive integers have a rational square as their quotient, every completely multiplicative function taking values in $\{-1,1\}$ assigns them the same sign. This observation leads to a concrete size question. Given $n$, how small can an integer slope $k\ne3$ be if $kn+1$ is to have the same square class as $3n+1$? There is always a quadratic-size choice: \begin{equation} (3n^2+7n+5)n+1=(3n+1)(n+1)^2. \label{eq:intro-universal-copy} \end{equation} The first part of this article determines the logarithmic saving available for almost every $n$ and the fluctuations of that saving. The second question concerns the product \begin{equation} D(n)=n(n+1)(3n+1)(3n+2),\qquad A_n=9n(n+1)+1. \label{eq:intro-quartic} \end{equation} The identity \begin{equation} A_n^2-9D(n)=1 \label{eq:intro-pell} \end{equation} produces an explicit norm-one unit in the quadratic field defined by the squarefree part of $D(n)$. A solution of Pell's equation may be a large power of a smaller unit, so \eqref{eq:intro-pell} alone does not identify the regulator. We show that this obstruction occurs on a set much smaller than any positive power of the parameter range. The two parts use different counting arguments. Their common object is the square class of the indicated affine forms: the first varies one form to preserve its class, while the second encodes the class of their product by a unit. No cancellation estimate for the Liouville function is used in either argument. \subsection{The size of the first square copy} Let $\omega(n)$ count distinct prime divisors, and define \begin{equation} K_*(n)=\min\{k\in\N:k\ge1,\ k\ne3,\ (kn+1)/(3n+1)\in\Q^2\}. \label{eq:intro-minimum} \end{equation} Equation~\eqref{eq:intro-universal-copy} makes this a finite minimum. Theorem~\ref{roots:main} proves that, on a set of natural density one, \begin{equation} \log\frac{n^2}{K_*(n)} =2(\log2)\omega(n)+O(\log\log\log n). \label{eq:intro-fine-order} \end{equation} All logarithms in this article are natural. In particular, \[ K_*(n)=\frac{n^2}{(\log n)^{2\log2+o(1)}} \] on a density-one set. Corollary~\ref{roots:gaussian} combines \eqref{eq:intro-fine-order} with the Erd\H{o}s--Kac theorem to give \begin{equation} \frac{\log(n^2/K_*(n))-2(\log2)\log\log N} {2(\log2)\sqrt{\log\log N}} \ \Longrightarrow\ \mathcal N(0,1), \qquad n\text{ uniform on }\{1,\ldots,N\}. \label{eq:intro-clt} \end{equation} These are statements for natural counting measure. They assert neither a uniform bound for every modulus nor a limit law on arbitrarily chosen short or harmonic windows. The factor $2\log2$ has a local explanation. Each odd prime power dividing a modulus has two roots of $u^2\equiv1$. Thus a typical modulus has about $2^{\omega(n)}$ global candidates. A first useful root at scale $n/2^{\omega(n)}$ produces a slope at its squared scale. Making that reasoning valid requires two estimates. An exact second moment detects a small nontrivial root after averaging over a rough cofactor; a weighted count rules out substantially smaller roots even when the square quotient has a denominator. That last qualification matters already at $n=5$: \[ \frac{7\cdot5+1}{3\cdot5+1}=\frac{36}{16}=\left(\frac32\right)^2. \] Here $K_*(5)=7$, whereas requiring an integer square multiplier first gives $u=4$ and $k=51$. The upper bound can use integer square multipliers, but a lower bound for \eqref{eq:intro-minimum} must retain rational ones. For the least nonnegative root \[ r_n=\min\{r\ge0:(r+1)(r+3)\equiv0\pmod n\}, \] the substitution $u=r+2$ gives $u^2\equiv1\pmod n$. Corollary~\ref{roots:shifted} yields the more precise relation \begin{equation} \log\frac{n}{r_n+2} = (\log2)\omega(n)+O(\log\log\log n) \label{eq:intro-root-fine-order} \end{equation} on a density-one set, and hence \begin{equation} r_n=\frac{n}{(\log n)^{\log2+o(1)}} \quad\text{on a set of natural density one}. \label{eq:intro-small-root} \end{equation} It also gives a Gaussian limit for $\log(n/(r_n+2))$, with centring $(\log2)\log\log N$ and scale $(\log2)\sqrt{\log\log N}$ when $n$ is uniform up to $N$. After their respective normalisations, the two statistics jointly converge to $(G,G)$, where $G$ is standard normal. Indeed, both differ from the same normalised $\omega(n)$ by a quantity tending to zero in probability. The polynomial is soluble for every modulus and has no nonnegative integer root; its two integer roots are $-1$ and $-3$. \subsection{Fundamental units in the full ring of integers} Write $D(n)=d_ns_n^2$, where $d_n>1$ is squarefree and $s_n>0$, and put \begin{equation} U_n=A_n+3s_n\sqrt{d_n}=A_n+\sqrt{A_n^2-1}. \label{eq:intro-unit} \end{equation} \begin{theorem}[Exceptional nonfundamental units]\label{pell:main} Let $E(X)$ be the number of integers $1\le n\le X$ for which $U_n$ is not fundamental in $\OO_{\Q(\sqrt{d_n})}$. There are absolute constants $c,C>0$ such that, for $X\ge3$, \begin{equation} c\log(2X)\le E(X)\le\exp\!\bigl(C(\log X)^{2/3}\bigr). \label{eq:intro-exceptions} \end{equation} \end{theorem} Fundamental means the positive generator greater than one of the full unit group modulo $\{\pm1\}$. It does not mean merely the smallest unit of norm $+1$, nor the generator of the order $\Z[U_n]$. In particular, the field at a nonexceptional index has no unit of norm $-1$, and its regulator is $\log U_n$. Proper powers really occur. For example, $U_1=19+6\sqrt{10}=(3+\sqrt{10})^2$. The square cases reduce to two fixed Pell equations. An odd prime exponent $\ell$ instead gives an integral point on \[ y^2=2D_\ell(x)+5, \qquad D_\ell(v+v^{-1})=v^\ell+v^{-\ell}, \] where $D_\ell$ is a Dickson--Chebyshev polynomial and $y=3(2n+1)$. The splitting field has degree at most $\ell(\ell-1)$. The field-degree dependence is already explicit in Alp\"oge's descent \cite[Section~3, pp.~3--5]{Alpoge}; using this particular field gives an $\exp(O(\ell^2))$ bound for the relevant integral points. Balancing small exponents against the height bound for large ones produces the power $2/3$ in \eqref{eq:intro-exceptions}. The exceptional cube case is also explicit: $U_n$ is a cube in its full unit group exactly for $n=2$ and $n=8$. Its proof uses the complete integral-point data for the elliptic curve $y^2=x^3-12x+20$, with the data source identified at the point of use. \subsection{Prior work and the scope of the results} The least nontrivial roots of $u^k\equiv1\pmod n$ and related sequences were studied by Andrica and Cri\c{s}an \cite{AndricaCrisan}; see also \cite[Section~5, Theorem~5.1]{CrisanPollack}. The identity $r_n+2=s_2(n)$ identifies our shifted root with their least-root object. Our estimates concern its typical size and the minimum over all rational square copies. Cri\c{s}an and Pollack~\cite{CrisanPollack} prove logarithmic upper and lower bounds for the least root of a general soluble polynomial congruence. Their Theorem~1.2, together with the end of its proof, permits every upper-bound exponent $c_f<\kappa_f/2$; their introduction predicts the exponent $\kappa_f$. For $f(r)=(r+1)(r+3)$ one has $\kappa_f=\log2$. Thus \eqref{eq:intro-small-root} proves this particular case of their prediction. The more precise relation \eqref{eq:intro-fine-order} concerns the minimum over rational square copies and leads to the fluctuations in \eqref{eq:intro-clt}. Martin and Sitar~\cite[Theorem~1.4]{MartinSitar} study global equidistribution of roots of reducible quadratics; Dartyge and Martin~\cite[Theorem~1]{DartygeMartin} give aggregated exponential-sum formulas at fixed frequencies. Kowalski and Soundararajan~\cite[Theorem~1.2 and Remark~1.3(2)]{KowalskiSoundararajan} relate discrepancy to small roots for almost all moduli, including prime powers. Their subsequent work \cite[Theorem~1.5 and Remark~1.6]{KowalskiSoundararajanMoments} develops Fourier moments for Chinese-remainder constructions with twisted multiplicativity. Here the local probabilities for equal and unequal frequencies, the uniform return to integer moduli, and the lower-bound weight $2^{-\omega(n)}$ together give the individual $\omega(n)$ estimate, including rational denominators. For quadratic units, Louboutin~\cite[Theorem~4]{Louboutin} describes when a unit is fundamental in the order it generates. The question in \eqref{eq:intro-exceptions} is in the full ring of integers, where a smaller unit can lie outside that order. Gras~\cite[Theorem~4.2, Corollary~4.3 and Section~5.2]{Gras} studies first occurrences of squarefree kernels in trace families and explains the limitation introduced by nonlinear substitutions of the trace. Our trace $2A_n=18n(n+1)+2$ gives such a specialization. The bound in Theorem~\ref{pell:main} controls the exceptional powers in this restricted family and concerns the full unit group. Diao~\cite{Diao} counts discriminants with small fundamental Pell solutions in a study of class numbers. Here the parameter is the index $n$, and the exceptional event is that the prescribed unit $U_n$ is a proper power. Alp\"oge~\cite[Theorem~1.1 and Section~3, pp.~3--5]{Alpoge} supplies the integral-point descent behind our count. His proof retains the degree of a field containing three roots before applying a general cubic bound in the polynomial degree. We specialize that dependence using the explicit splitting field of our Chebyshev family. The resulting quadratic exponential cost gives \eqref{eq:intro-exceptions}. The elementary sector $s_n=2$ in Section~\ref{pell:sector} is a Richaud--Degert subfamily: its fundamental unit is classical \cite[Lemma~2]{Yokoi}, while its density is computed separately here. There is also a connection with arithmetic reconstruction from quadratic traces~\cite[Theorem~1.3 and Sections~4--5]{PoulyReconstruction}. That work constructs repeated signs uniformly in a prescribed target prime. Here we estimate square copies and determine the regulator for almost all indices of the quartic family. Pell equations also provide a classical link between quadratic values and Liouville signs; see Borwein, Choi and Ganguli~\cite[Theorem~2.2]{BorweinChoiGanguli}. Finally, Section~\ref{sec:regulators} uses $\lambda(D(n))=\mu(d_n)$ to index a signed series by fundamental units. The resulting holomorphic comparison is unconditional. Holomorphic continuation of the signed regulator series near $s=1$ is a sufficient condition for cancellation on every harmonic window of divergent mass when all indices in the window are included, by a local Tauberian boundedness principle \cite[Theorem~3.1]{DebruyneVindas}. The comparison makes this continuation equivalent to that of the original signed Dirichlet series near $1$. Establishing it remains an additional analytic problem. The comparison already follows from $E(X)\ll_\eps X^\eps$ for every $\eps>0$; its proof does not require the quantitative exponent $2/3$. \subsection{Conventions and route through the proof} An assertion holds on a set of natural density one if the number of exceptions up to $X$ is $o(X)$. For a varying asymptotic expression, we use this phrase when the asymptotic holds as $n$ tends to infinity through one such set. All implied constants are absolute unless a subscript or the surrounding statement specifies their dependence. We use $\N=\{1,2,\ldots\}$. Part~I proves the root and slope results. The averaging over residues is first kept separate from the sieve that returns to integer moduli, so that the required uniformity in the modulus is visible. Part~II proves the unit count, then gives the regulator series and its analytic criterion. The computational appendix records finite checks; the asymptotic claims rest on the proofs. \part*{Part I. Small roots and square copies} \addcontentsline{toc}{part}{Part I. Small roots and square copies} \section{Small representatives of a square class}\label{roots:section} The rational square class of $3n+1$ can always be represented by another positive affine value $kn+1$. Indeed, \[ (3n^2+7n+5)n+1=(3n+1)(n+1)^2. \] The question is how much smaller the first such slope usually is. Define \begin{equation}\label{roots:defK} K_*(n)=\min\{k\in\N:k\ge1,\ k\ne3, \ (kn+1)/(3n+1)\in\Q^2\},\qquad n\ge1. \end{equation} Here $\Q^2$ denotes the set of rational squares, and $\omega(n)$ counts distinct prime divisors. All logarithms are natural. A statement holds in natural density one if the number of exceptions up to $N$ is $o(N)$. \begin{theorem}\label{roots:main} There is an absolute constant $B>0$ such that, on a set of natural density one, \begin{equation}\label{roots:mainbound} n^2 4^{-\omega(n)}(\log\log n)^{-B} \le K_*(n)\le n^2 4^{-\omega(n)}(\log\log n)^B. \end{equation} Consequently, \begin{equation}\label{roots:normalorder} K_*(n)=\frac{n^2}{(\log n)^{2\log2+o(1)}} \end{equation} on a set of natural density one. \end{theorem} \begin{corollary}\label{roots:gaussian} If $n$ is uniform on $\{1,\ldots,N\}$, then \begin{equation}\label{roots:CLT} \frac{\log(n^2/K_*(n))-2(\log2)\log\log N} {2(\log2)\sqrt{\log\log N}} \ \Longrightarrow\ \mathcal N(0,1). \end{equation} \end{corollary} \begin{corollary}\label{roots:shifted} Let $r_n$ be the least nonnegative integer satisfying $(r_n+1)(r_n+3)\equiv0\pmod n$. For every $n\ge1$, \[ r_n+2=s_2(n):=\min\{u\in\N:u\ge2,\ u^2\equiv1\pmod n\}. \] On a set of natural density one, \begin{equation}\label{roots:shiftedfine} \log\frac{n}{r_n+2} = (\log2)\omega(n)+O(\log\log\log n). \end{equation} In particular, \begin{equation}\label{roots:shiftednormal} r_n=\frac{n}{(\log n)^{\log2+o(1)}} \end{equation} on a set of natural density one. If $n$ is uniform on $\{1,\ldots,N\}$, then \begin{equation}\label{roots:shiftedCLT} \frac{\log(n/(r_n+2))-(\log2)\log\log N} {(\log2)\sqrt{\log\log N}} \ \Longrightarrow\ \mathcal N(0,1). \end{equation} \end{corollary} The two sides of \eqref{roots:mainbound} require different arguments. For an upper bound it suffices to use integer square multipliers: if $u>1$ and $u^2\equiv1\pmod n$, then \begin{equation}\label{roots:witness} k=\frac{(3n+1)u^2-1}{n}\in\N,\qquad 30$. For sufficiently large $H$, set $R=\lceil6\log\log(10H)\rceil$. Uniformly for $2\le z\le H^{1/(8R)}$ and $0\le\theta\le1$, \begin{align}\label{roots:bonferroni} \sum_{v\in\mathcal I} \prod_{\substack{p\le z,\ p\nmid b\\p\mid a_0+bv}}(1-\theta) &\le H\prod_{\substack{p\le z\\p\nmid b}}(1-\theta/p) +O\!\left(\frac{H}{(\log H)^2}+H^{1/4}\right). \end{align} In particular, if $1\le b\le2X$ and $1/2\le H\le2X$, then \begin{equation}\label{roots:weightAP} \sum_{v\in\mathcal I}w(a_0+bv) \ll\frac{(1+H)(\log\log(20X))^2}{\sqrt{\log(2+H)}}. \end{equation} All implied constants are absolute. \end{lemma} \begin{proof} Retain each prime $p\le z$, $p\nmid b$, independently with probability $\theta$. For a fixed integer $a$, the product on the left of \eqref{roots:bonferroni} is the probability that no retained prime divides $a$. The even Bonferroni truncation through order $2R$ is an upper bound for this probability. Each squarefree modulus $q$ that occurs satisfies $q\le z^{2R}\le H^{1/4}$ and $(q,b)=1$. The condition $q\mid a_0+bv$ specifies one class of $v$ modulo $q$, with count $H/q+O(1)$. The total counting error is therefore $O(H^{1/4})$. To complete the truncated main term to its Euler product, put $S=\sum_{p\le z}\theta/p\le\log\log H+O(1)$. The absolute tail is at most $H\sum_{j>2R}S^j/j!\ll H/(\log H)^2$, since $j!\ge(j/e)^j$. This proves \eqref{roots:bonferroni}. Take $\theta=1/2$ and $z=H^{1/(8R)}$. Ignoring prime divisors above $z$ only increases $w(a)$. Mertens' estimates give \[ \prod_{\substack{p\le z\\p\nmid b}}(1-1/(2p)) \ll(\log z)^{-1/2}\frac b{\varphi(b)}. \] For $b\le2X$, $b/\varphi(b)\ll\log\log(20X)$. One can see this directly by splitting the product over $p\mid b$ at $\log(6X)$: Mertens' product bounds the small primes, and $\omega(b)\le\log(2X)/\log2$ bounds the remaining product. Since $R\ll\log\log(20X)$, the stated power two in \eqref{roots:weightAP} absorbs the factor $R^{1/2}$ and the error in \eqref{roots:bonferroni}. Bounded $H$ is covered by the elementary bound $O(1+H)$. The forms of Mertens' estimates used here are the prime reciprocal sum and its logarithmically weighted counterpart \cite{Mertens}. \end{proof} \subsection{Counting abnormally small square-class representatives} The next estimate is uniform in the size cutoff $L$. This allows us later to choose a different cutoff on each level set of $\omega(n)$. \begin{lemma}\label{roots:weightedcount} Fix positive integers $A,J$. For $XA$ or $v_2(n)>J$ number \begin{equation}\label{roots:discarddenoms} O\!\left(X/A+X/2^J+\sqrt X\right). \end{equation} \end{lemma} \begin{proof} The bound for $t>A$ follows by summing $\#\{XJ$ is immediate. Fix $t\le A$ and $j=v_2(n)\le J$. We may assume $X>A^2$. Then $u\ne t$ and $n\mid u^2-t^2$ force $u>t$. Also $(n,t)=1$, because $t^2\mid3n+1$. Every odd prime power in $n$ therefore divides exactly one of $u-t$ and $u+t$. Allocate these prime powers to obtain coprime odd integers $a,b$ with \[ n=2^jab,\quad a\ge b,\quad a\mid u+\sigma t,\quad b\mid u-\sigma t \] for one of the signs $\sigma\in\{-1,1\}$. The positive integer $v=(u+\sigma t)/a$ satisfies $v\ll_{A,J}b/L$. Indeed, $u>t$ and $u\le X/L$ imply $u+t\le2X/L$, while $a>X/(2^jb)$. The congruence \[ av\equiv2\sigma t\pmod b \] has a solution only if $(v,b)=1$, and then it specifies one invertible class of $a$ modulo $b$. There are $O_{A,J}(b/L)$ possible positive integers $v$; this remains true when there are none. For each such class the interval for $a$ has length $X/(2^jb)$, so the progression parameter has length $H=X/(2^jb^2)$. The condition $a\ge b$ implies $b\le\sqrt{2X/2^j}$ and hence $H\ge1/2$. Since $w(n)\le w(a)w(b)$, applying \eqref{roots:weightAP} to $a$ gives an upper bound \begin{equation}\label{roots:bsum} \ll_{A,J}\frac{X D_X^2}{L} \sum_{b\le\sqrt{2X/2^j}} \frac{w(b)}{b\sqrt{\log(2+X/(2^jb^2))}}, \qquad D_X=\log\log(20X). \end{equation} Repeated representations can only increase this upper bound. For $2^i\le b<2^{i+1}$, \eqref{roots:weightAP} with modulus one gives $\sum_b w(b)/b\ll D_X^2/\sqrt{1+i}$. If $M=\lfloor\log_2\sqrt{2X/2^j}\rfloor$, the other denominator in \eqref{roots:bsum} is $\gg\sqrt{1+M-i}$ on that block. Finally, \[ \sum_{i=0}^M\frac1{\sqrt{(1+i)(1+M-i)}}\ll1. \] Sum over the finitely many $t,j,\sigma$ to obtain \eqref{roots:weightedcountbound}. \end{proof} \subsection{Separating the small prime powers} For the upper bound put \begin{equation}\label{roots:split} T=\log\log X,\qquad Z=X^{1/T^2},\qquad n=dm, \end{equation} where $d$ is the product of all prime powers in $n$ whose prime is at most $Z$. Thus $(d,m)=1$ and every prime divisor of $m$ exceeds $Z$. \begin{lemma}\label{roots:typical} For all but $o(X)$ integers $XX^{1/3}$ an event of probability $O(T^{-2})$. For a set of primes at most $X^{1/4}$, the mean of the number dividing a uniform integer in $(X,2X]$ is its reciprocal sum plus $o(1)$. Its variance is at most that reciprocal sum plus $o(1)$: count the multiples of $p$ and $pq$, with total normalised error $O(\pi(X^{1/4})^2/X)=O(X^{-1/2})$. In particular, the counts for $p\le Z$ and for $ZZ\} \ll\frac{X}{d\varphi(d)\log Z}. \end{equation} Indeed, the progression parameter has length $H=X/d^2\ge X^{1/3}$, and $Z\le H^{1/(8\lceil6\log\log(10H)\rceil)}$ for all sufficiently large $X$, uniformly in $d$. The sieve product is $O(d/(\varphi(d)\log Z))$. Both errors in \eqref{roots:bonferroni} are absorbed by its asserted main bound. Inversion permutes the invertible residue classes modulo $d$. By Lemma~\ref{roots:secondmoment}, the number of bad classes for $m^{-1}$ is at most $O(dT^{-99})$. Sum \eqref{roots:roughAP} over these classes, and then over the possible $d$. Since $d/\varphi(d)\ll T$ for $d\le X^{1/3}$, \begin{align}\label{roots:badcofactors} \#\{\text{bad }n\} &\ll\frac{XT^{-99}}{\log Z} \sum_{d\le X^{1/3}}\frac1{\varphi(d)}\\ &\ll XT^{-98}\frac{\log X}{\log Z} =O(XT^{-96})=o(X).\notag \end{align} Extending the last sum to all $d$ only increases it. For every remaining $n$, a root $r\in\mathcal R_d$ gives an integer $j$ with \[ j\equiv(r-1)m^{-1}\pmod d,\qquad \delta d1$ satisfies $u^2\equiv1\pmod n$, and $u\ll n\delta$. The slope in \eqref{roots:witness} therefore obeys \begin{align}\label{roots:upperfinal} K_*(n)&\ll n^2\delta^2 =n^24^{-\omega(n)}T^{200}4^{\omega(m)}\\ &\ll n^24^{-\omega(n)}T^{200+3\log4} \le n^24^{-\omega(n)}T^{220}\notag \end{align} for all sufficiently large $X$, outside $o(X)$ integers. Here the final exponent leaves a fixed margin to absorb constants. \subsection{The lower bound at each prime-factor count} Fix $A,J$ before letting $X$ tend to infinity. The normal order of $\omega(n)$ gives $\omega(n)\le2T$ outside $o(X)$ integers \cite{ErdosKac}. For each integer $0\le b\le2T$, apply Lemma~\ref{roots:weightedcount} with \[ L_b=2^bT^{100}. \] On the set $\omega(n)=b$, its weight is exactly $2^{-b}$. Thus \begin{align}\label{roots:levels} \#\{n\in\mathcal B(X,L_b;A,J):\omega(n)=b\} &\le2^b\sum_{n\in\mathcal B(X,L_b;A,J)}2^{-\omega(n)}\\ &\ll_{A,J}XT^{-96}.\notag \end{align} The sum over all these levels is $O_{A,J}(XT^{-95})$. Suppose an admissible slope satisfies $k\le n^24^{-b}T^{-220}$ and that $t\le A$, $v_2(n)\le J$. Writing $kn+1=su^2$ as above gives \[ u=t\sqrt{\frac{kn+1}{3n+1}} \le A\sqrt{k} \le2AX2^{-b}T^{-110}\le X/L_b \] for sufficiently large $X$ depending on $A$. Hence such an $n$ is counted in \eqref{roots:levels}. Combining this with \eqref{roots:discarddenoms}, the upper limit of the exceptional proportion is $O(A^{-1}+2^{-J})$. Letting $A,J$ tend to infinity proves the lower bound with the same absolute exponent $220$ on each dyadic interval. The constants depending on $A,J$ affect only the vanishing exceptional proportion and the starting scale; they do not enter this exponent. Together with \eqref{roots:upperfinal}, this proves \eqref{roots:mainbound}, after a harmless enlargement of the absolute exponent to replace $\log\log X$ by $\log\log n$. Summing dyadic intervals gives natural density one. The normal order $\omega(n)=(1+o(1))\log\log n$ then gives \eqref{roots:normalorder}. \begin{proof}[Proof of Corollary~\ref{roots:gaussian}] Theorem~\ref{roots:main} says \[ \log(n^2/K_*(n))=2(\log2)\omega(n)+O(\log\log\log n) \] outside a set of density zero. For uniform $n\le N$, the exceptional set has probability $o(1)$, and $\log\log\log N=o(\sqrt{\log\log N})$. The Erd\H{o}s--Kac theorem for $\omega(n)$ now implies \eqref{roots:CLT} \cite{ErdosKac}. \end{proof} \begin{proof}[Proof of Corollary~\ref{roots:shifted}] The substitution $u=r+2$ is an order-preserving bijection between nonnegative solutions of the shifted congruence and integers $u\ge2$ satisfying $u^2\equiv1\pmod n$. This proves the identity with $s_2(n)$, including the small indices for which $r_n=0$. The root $u=1+mj$ constructed above satisfies, for all but $o(X)$ integers $X0$. Put \begin{equation}\label{pell:unit} U_n=A_n+3s_n\sqrt{d_n}. \end{equation} For a real quadratic field, its fundamental unit will mean the generator $\eta>1$ of the group of units modulo $\{\pm1\}$, in the chosen real embedding. Its norm may be $-1$. Thus asking whether $U_n$ is fundamental is stronger than asking whether it generates the subgroup of units of norm $1$. \begin{lemma}\label{pell:elementary} For every $n\ge1$, the integer $d_n$ is greater than $1$, the integer $s_n$ is even, and $U_n$ is a unit of norm $1$ in the full ring of integers of $\Q(\sqrt{d_n})$. Moreover, \begin{equation}\label{pell:identity} A_n^2-9D(n)=1, \qquad 2A_n-16m$. \end{lemma} \begin{proof} Set $t=n(n+1)$. Then $D(n)=t(9t+2)$, so $(9t+1)^2-9D(n)=1$. If $d_n=1$, the two positive integral squares $A_n^2$ and $(3s_n)^2$ would differ by $1$, which is impossible. Since $t$ is even, \[ D(n)=4\left(\frac t2\right)\left(\frac{9t}2+1\right), \] and $s_n$ is even. Formula~\eqref{pell:identity} proves the unit assertion and the displayed estimates. Suppose that $d_m=d_n=d$. The quotient $U_n/U_m=a+b\sqrt d$ belongs to $\Z[\sqrt d]$, has norm $1$, and is greater than $1$. Its rational coefficient is \[ a=A_nA_m-9s_ns_md\equiv1\pmod {18}, \] because $A_j\equiv1\pmod {18}$ and $s_j$ is even. Thus $a\ge19$ and \[ \frac{U_n}{U_m}\ge19+6\sqrt {10}>36. \] On the other hand, \[ \frac{U_{6m}}{U_m}<\frac{2A_{6m}}{2A_m-1}<36. \] The strict increase of $U_n$ in $n$ gives $n>6m$. \end{proof} In particular, $n\mapsto d_n$ is injective on every dyadic interval $[X,2X)$. This is the kernel injectivity used in the catalogue of quadratic probes in~\cite{PoulyProbes}. At an odd prime $p\nmid D(n)$, the product of the four Legendre symbols observed there is $\bigl(\frac{d_n}{p}\bigr)$. Let \begin{equation}\label{pell:E} E(X)=\#\{1\le n\le X:U_n\ne\eta_{d_n}\}, \end{equation} where $\eta_{d_n}$ denotes the fundamental unit of the full ring of integers. If an index is not counted by $E(X)$, then the field has no unit of norm $-1$, and its regulator is $\log U_n$. Also, the map $n\mapsto d_n$ is injective on the set of these indices: two occurrences would give two different positive fundamental units in the same field. \subsection{Proper powers and integral traces}\label{pell:traces} It is useful to express the exceptional condition through the trace, rather than through the coefficients of a unit. The trace is integral even when the full ring of integers contains half-integral coefficients. \begin{lemma}\label{pell:trace-reduction} If $U_n$ is a proper power of a unit, then at least one of the following holds. \begin{enumerate} \item There are integers $x\ge1$ and $\sigma\in\{1,-1\}$ such that \begin{equation}\label{pell:even} 2x^2-9(2n+1)^2=-5+4\sigma. \end{equation} \item There are an odd prime $\ell$ and an integer $x\ge3$ such that \begin{equation}\label{pell:odd} y^2=2D_\ell(x)+5, \qquad y=3(2n+1), \end{equation} where $D_0(X)=2$, $D_1(X)=X$, and \[ D_{j+1}(X)=XD_j(X)-D_{j-1}(X). \] In the second case, uniformly for $n\le X$, \begin{equation}\label{pell:trace-size} \ell\ll\log(2X),\qquad 3\le x\ll1+X^{2/\ell}. \end{equation} \end{enumerate} All implied constants are absolute. \end{lemma} \begin{proof} Write $U_n=\eta_{d_n}^k$ with $k\ge2$. If $k$ is even, let $\xi=\eta_{d_n}^{k/2}$, $\sigma=\operatorname{Norm}(\xi)$, and $x=\operatorname{Tr}(\xi)$. The identity $\operatorname{Tr}(\xi^2)=x^2-2\sigma$ gives $x^2=2A_n+2\sigma$, which is equivalent to~\eqref{pell:even}. If $k$ is odd, choose a prime $\ell\mid k$ and put $\xi=\eta_{d_n}^{k/\ell}$. Its norm is $1$, since $\xi^\ell=U_n$ and $\ell$ is odd. Consequently $x=\xi+\xi^{-1}$ is an integer at least $3$, and \[ D_\ell(x)=\xi^\ell+\xi^{-\ell}=2A_n. \] The identity $4A_n+5=9(2n+1)^2$ yields~\eqref{pell:odd}. Finally, \[ \xi\ge\frac{3+\sqrt5}{2}>1, \qquad \xi^\ell=U_n\ll X^2, \] which proves~\eqref{pell:trace-size}. \end{proof} \begin{proposition}\label{pell:even-count} The number of indices $n\le X$ for which $U_n$ is a square of a unit is $O(\log(2X))$. There are $\gg\log(2X)$ such indices. \end{proposition} \begin{proof} For $\sigma=1$, equation~\eqref{pell:even} becomes \[ \bigl(3(2n+1)\bigr)^2-2x^2=1. \] For $\sigma=-1$, it first implies $3\mid x$ and then becomes \[ (2n+1)^2-2(x/3)^2=1. \] The positive solutions of either Pell equation form a subsequence of the powers of $3+2\sqrt2$. Their first coordinates grow geometrically, so at most $O(\log(2X))$ have $n\le X$. For the lower bound, write \[ (2n_j+1)+z_j\sqrt8=(3+\sqrt8)^j, \qquad j\ge1. \] The first coordinate is odd and $n_j(n_j+1)=2z_j^2$. Therefore \[ U_{n_j}=18z_j^2+1+6z_j\sqrt{9z_j^2+1} =\bigl(3z_j+\sqrt{9z_j^2+1}\bigr)^2. \] The square root on the right is an algebraic integer of norm $-1$ in $\Q(\sqrt{d_{n_j}})$. The indices $n_j$ grow geometrically, proving the lower bound. \end{proof} There is already a qualitative conclusion before any uniform estimate in $\ell$. The polynomial $D_\ell$ equals $2T_\ell(X/2)$, with $T_\ell$ the Chebyshev polynomial. Its critical points are $2\cos(j\pi/\ell)$, $1\le j<\ell$, and its critical values are $2$ and $-2$. Thus $2D_\ell+5$ has no repeated root. For each fixed odd prime $\ell$, the curve~\eqref{pell:odd} has genus $(\ell-1)/2\ge1$, and Siegel's theorem gives finitely many integral points~\cite[Section~1]{Alpoge}. Fix $L>0$. The primes $\ell\le L$ consequently contribute a finite number depending on $L$, while~\eqref{pell:trace-size} bounds the contribution of the others by \[ O\bigl((1+X^{2/L})\log(2X)\bigr). \] Together with Proposition~\ref{pell:even-count}, this proves \begin{equation}\label{pell:qualitative} E(X)\ll_\epsilon X^\epsilon\qquad(\epsilon>0). \end{equation} This qualitative estimate already suffices for the holomorphic comparison of regulator series in Section~\ref{sec:regulators}. It does not provide uniform control of the finite contribution as $L$ grows. The next section supplies that control and the exponent $2/3$. \section{Uniform control of the exceptional powers}\label{pell:uniform} \subsection{The discriminant and the splitting field} For an odd prime $\ell$, put \begin{equation}\label{pell:F} f_\ell(X)=2D_\ell(X)+5, \qquad F_\ell(Z)=2^{\ell-1}f_\ell(Z/2). \end{equation} The change of variables \begin{equation}\label{pell:integral-model} Z=2x,\qquad Y=2^{(\ell-1)/2}y \end{equation} embeds the integral solutions of~\eqref{pell:odd} into $Y^2=F_\ell(Z)$. \begin{lemma}\label{pell:polynomial-data} The polynomial $F_\ell$ is monic, integral, irreducible, and has degree $\ell$. Its discriminant satisfies \begin{equation}\label{pell:discriminant} |\operatorname{disc}f_\ell|=\frac{(2\ell)^\ell3^{\ell-1}}2, \qquad |\operatorname{disc}F_\ell|=2^{(\ell-1)^2}3^{\ell-1}\ell^\ell. \end{equation} It has a root field $K_\ell=\Q(z)$, where $z^\ell=-2$, and a splitting field contained in \[ L_\ell=\Q(z,\zeta_\ell), \qquad [L_\ell:\Q]\le\ell(\ell-1). \] Moreover, \begin{equation}\label{pell:class-number} |\operatorname{Cl}(\mathcal O_{K_\ell,S})[2]| \le \exp\bigl(C\ell\log(2\ell)\bigr), \qquad S=\{\infty,2,3,\ell\}, \end{equation} for an absolute constant $C$. \end{lemma} \begin{proof} Since $D_\ell$ is monic and integral, multiplying $2D_\ell(Z/2)+5$ by $2^{\ell-1}$ gives a monic integral polynomial. At the $\ell-1$ critical points of $f_\ell$, its values are $1$ and $9$, each occurring $(\ell-1)/2$ times. The derivative has leading coefficient $2\ell$. The resultant formula for the discriminant gives the first identity in~\eqref{pell:discriminant}. Scaling the argument and the polynomial gives the second. The identity $D_\ell(w+w^{-1})=w^\ell+w^{-\ell}$ shows that the roots of $F_\ell$ are \[ 2\bigl(z\zeta_\ell^j+z^{-1}\zeta_\ell^{-j}\bigr), \qquad 0\le j<\ell. \] They are distinct by~\eqref{pell:discriminant}. The polynomial $X^\ell+2$ is Eisenstein at $2$, so $[\Q(z):\Q]=\ell$. Also, \[ [\Q(z):\Q(z+z^{-1})]\le2. \] This index divides the odd prime $\ell$ and hence is $1$. Thus $F_\ell$ is irreducible with the stated root field and splitting field. The field discriminant $\Delta_{K_\ell}$ divides the discriminant of $X^\ell+2$, so \[ |\Delta_{K_\ell}|\le2^{\ell-1}\ell^\ell. \] Minkowski's theorem gives an integral ideal of norm at most $\sqrt{|\Delta_{K_\ell}|}$ in each ideal class. Consequently \[ h_{K_\ell} \le |\Delta_{K_\ell}|\zeta_{K_\ell}(2) \le |\Delta_{K_\ell}|\zeta(2)^\ell \le\exp\bigl(C\ell\log(2\ell)\bigr). \] Localizing the class group and then taking its $2$-torsion cannot increase this bound. \end{proof} \subsection{Keeping the field degree in the descent} Alp\"oge's theorem gives a uniform bound for the integral points of a monic hyperelliptic equation in terms of a $2$-torsion class group and an exponential cost cubic in the degree~\cite[Theorem~1.1]{Alpoge}. His proof already retains the degree of a field containing three roots before replacing it by the general cubic bound~\cite[Section~3, pp.~3--5]{Alpoge}. We record this dependence for the present family. The specialization below uses its explicit splitting field; the descent mechanism is Alp\"oge's. \begin{lemma}[Alp\"oge's descent with the field degree retained] \label{pell:degree-count} Let $\ell\ge5$ be prime, set $K=K_\ell$ and $S=\{\infty,2,3,\ell\}$, and let $L/\Q$ be a number field containing three distinct roots of $F_\ell$. Put $M=[L:\Q]$. There is an absolute constant $C$ such that \begin{equation}\label{pell:degree-points} \#\{(Z,Y)\in\Z^2:Y^2=F_\ell(Z)\} \le |\operatorname{Cl}(\mathcal O_{K,S})[2]| \exp\bigl(C(\ell+M)\bigr). \end{equation} \end{lemma} \begin{proof} We give the count, following the second descent argument in~\cite[Section~3, pp.~3--5]{Alpoge}. Let $\rho$ be a root of $F_\ell$ in $K$. All primes dividing its discriminant belong to $S$. Write $h_{K,S}[2]=|\operatorname{Cl}(\mathcal O_{K,S})[2]|$. For an $S$-integral point $(Z,Y)$, the ideal $(Z-\rho)$ in $\mathcal O_{K,S}$ is a square. Indeed, away from $S$, its prime divisors are coprime to the remaining factors of $F_\ell(Z)$, and the product is $Y^2$. The ideal square root has class in $\operatorname{Cl}(\mathcal O_{K,S})[2]$. For each such class choose a prime ideal representative $\mathfrak p$, as in Alp\"oge's proof, and invert that prime. There are at most $h_{K,S}[2]$ choices of class. Once the class is fixed, \begin{equation}\label{pell:square-descent} Z-\rho=\gamma\beta^2, \qquad \beta\in\mathcal O_{K,S\cup\{\mathfrak p\}}, \quad \gamma\in\mathcal O_{K,S\cup\{\mathfrak p\}}^\times. \end{equation} Modulo squares there are $\exp(O(\ell))$ choices for $\gamma$, by the unit theorem: at most $4\ell+1$ places have been inverted, including the archimedean places. The norm of $\mathfrak p$ is irrelevant for this count. Fix three distinct roots $\rho_1,\rho_2,\rho_3$ in $L$ and the corresponding embeddings $\sigma_i:K\hookrightarrow L$. For fixed class and $\gamma$, equation~\eqref{pell:square-descent} gives \[ Z-\rho_i=\gamma_i\beta_i^2,\qquad \gamma_i=\sigma_i(\gamma),\quad \beta_i=\sigma_i(\beta) \qquad(1\le i\le3). \] The three $\gamma_i$ are conjugates of this single choice of $\gamma$; they introduce no additional class-group choices. Adjoin $\sqrt{\gamma_1},\sqrt{\gamma_2},\sqrt{\gamma_3}$ to $L$, obtaining a field $L'$ of degree at most $8M$. Enlarge the set of places to contain those above $S$ and the three conjugate auxiliary prime ideals. The resulting set $S'$ has $O(M)$ places, with an absolute constant. Put $a_i=\sqrt{\gamma_i}\beta_i$. Then \[ (a_i-a_j)(a_i+a_j)=\rho_j-\rho_i. \] The right-hand side is an $S'$-unit, and both factors are $S'$-integral. Hence all six factors $a_i\pm a_j$ are $S'$-units. The quotient of the $S'$-unit group by cubes has $\exp(O(M))$ elements. Choose cube-class representatives for \[ a_1+a_2,\quad a_1-a_2,\quad a_2+a_3,\quad a_2-a_3,\quad a_1-a_3. \] The total number of choices remains $\exp(O(M))$. The two identities \[ (a_1+a_2)-(a_2+a_3)=a_1-a_3, \qquad (a_1-a_2)+(a_2-a_3)=a_1-a_3 \] then become two nonsingular binary cubic equations after division by the cube expression for $a_1-a_3$. Evertse's bound, in the form used in~\cite[Section~3]{Alpoge}, gives \[ \exp\bigl(O([L':\Q]+|S'|)\bigr)=\exp(O(M)) \] solutions for each equation~\cite{Evertse}. The constants do not depend on the coefficients or on the norms of the inverted primes. These two solutions determine the ratios \[ \frac{a_1+a_2}{a_1-a_3},\qquad \frac{a_1-a_2}{a_1-a_3}. \] Their product equals $(\rho_2-\rho_1)/(a_1-a_3)^2$. Since the roots are distinct, it determines $(a_1-a_3)^2$, then $a_1$ up to at most two choices, and finally $Z=a_1^2+\rho_1$. There are at most two choices of $Y$ for each $Z$. Combining the counts gives \[ \begin{aligned} \#\{(Z,Y)\in\Z^2:Y^2=F_\ell(Z)\} &\le h_{K,S}[2]\, \exp(O(\ell))\, \exp(O(M))\, \exp(O(M))\\ &=h_{K,S}[2]\exp\bigl(O(\ell+M)\bigr). \end{aligned} \] The factors respectively account for the ideal class, the square class, the five cube classes, and the two cubic equations. Reconstruction has bounded multiplicity. The three roots were fixed throughout; allowing them to vary would add only a factor $O(\ell^3)$, which is absorbed in the displayed exponential. \end{proof} \begin{corollary}\label{pell:adapted-count} There is an absolute constant $C$ such that for every prime $\ell\ge5$, \begin{equation}\label{pell:points} \#\{(Z,Y)\in\Z^2:Y^2=F_\ell(Z)\} \le\exp(C\ell^2). \end{equation} \end{corollary} \begin{proof} Take $L=L_\ell=\Q(z,\zeta_\ell)$ in Lemma~\ref{pell:degree-count}. Lemma~\ref{pell:polynomial-data} gives $M\le\ell(\ell-1)$ and $h_{K,S}[2]\le\exp(C\ell\log(2\ell))$, proving the bound. \end{proof} Thus the quadratic exponential cost follows by inserting this family's splitting field into a dependence already present in Alp\"oge's proof. \subsection{Cubes and the final cutoff} \begin{proposition}\label{pell:cubes} The unit $U_n$ is a cube in the full unit group of $\Q(\sqrt{d_n})$ if and only if $n=2$ or $n=8$. \end{proposition} \begin{proof} For $\ell=3$, one has $D_3(x)=x^3-3x$. Equations~\eqref{pell:odd} and~\eqref{pell:integral-model} give \begin{equation}\label{pell:cubic-curve} Y^2=Z^3-12Z+20, \quad Z=2x\ge6, \quad Y=6(2n+1)>0. \end{equation} This is the displayed integral model of the elliptic curve with LMFDB label $216.a1$ (Cremona label $216a1$). Its complete list of integral points, up to the involution $Y\mapsto-Y$, is~\cite{LMFDB216} \[ \begin{array}{c|rrrrrrrr} Z&-4&-2&1&2&4&10&22&89\\ |Y|&2&6&3&2&6&30&102&839. \end{array} \] Here we use the published complete integral-point computation; the database's account of its rigorous integral-point calculations is given in~\cite{LMFDBReliability}. Of the listed points, the conditions in~\eqref{pell:cubic-curve} retain only $(10,30)$ and $(22,102)$. They yield $n=2$ and $n=8$, respectively. Conversely, the units \[ \frac{5+\sqrt{21}}2, \qquad \frac{11+3\sqrt{13}}2 \] have norm $1$ and cubes $U_2$ and $U_8$. Both belong to the full ring of integers of the indicated field. \end{proof} \begin{proof}[Proof of the exceptional-set bound in Theorem~\ref{pell:main}] The lower bound follows from Proposition~\ref{pell:even-count}. For the upper bound, take \[ L_0=\max\{5,(\log X)^{1/3}\}. \] Even powers contribute $O(\log(2X))$ indices. Cubes contribute only two. The odd primes $5\le\ell\le L_0$ contribute at most \[ L_0\exp(CL_0^2) \] by Corollary~\ref{pell:adapted-count}. For $\ell>L_0$, the trace bound~\eqref{pell:trace-size} gives a total of \[ O\bigl((1+X^{2/L_0})\log(2X)\bigr), \] because each pair $(\ell,x)$ determines at most one positive $n$. Both terms are at most $\exp(C'(\log X)^{2/3})$, after increasing the absolute constant to include bounded $X$. This proves the asserted bound for $E(X)$. The statements about fundamental units and regulators follow from their definition and the fact that $U_n$ has norm $1$. \end{proof} For comparison, the general exponential cost $\exp(O(\ell^3))$ would require $L_0=(\log X)^{1/4}$ and give the exponent $3/4$. The quadratic bound for the splitting-field degree, used in Corollary~\ref{pell:adapted-count}, is exactly what changes the cutoff and produces $2/3$. \section{An explicit Richaud--Degert sector}\label{pell:sector} The subfamily with the smallest possible square factor, $s_n=2$, is a Richaud--Degert subfamily. Its fundamental units are given by the classical formula recorded in~\cite[Lemma~2, p.~142]{Yokoi}; see also~\cite{Degert}. We compute its density and include an elementary proof of the fundamental-unit assertion. \begin{proposition}\label{pell:sector-prop} The set $\{n\ge1:s_n=2\}$ has natural density, and logarithmic density, equal to \begin{equation}\label{pell:sector-density} \frac7{18}\prod_{p\ge5}\left(1-\frac4{p^2}\right)>0. \end{equation} For every index in this set except $n=1$, the unit $U_n$ is fundamental in the full ring of integers. At $n=1$, \[ d_1=10,\qquad U_1=(3+\sqrt {10})^2. \] \end{proposition} To identify the classical formula, put $q=n(n+1)/2$. On this sector, \[ d_n=D(n)/4=9q^2+q=(3q)^2+q. \] The Richaud--Degert parameters are $a=3q$ and $r=q$, with $-az$ is therefore at most \[ O\left(\sum_{z1$ in it has positive integral coefficients in the chosen embedding, and hence $\xi>\sqrt{d_n}$. For $n\ge3$, we have $d_n\ge330$ and \[ U_n=A_n+6\sqrt{d_n}<12\sqrt{d_n}+10$, makes the series over exceptional indices absolutely convergent at every positive real abscissa. This permits a change of index from integers to quadratic fields while retaining the Liouville sign. The quantitative exponent $2/3$ in Theorem~\ref{pell:main} is not needed here. The resulting Dirichlet series identifies an analytic condition for cancellation; the condition itself is not established here. \subsection{The field family and the change of variable} For squarefree $d>1$, let $\eta_d>1$ be the fundamental unit of $\OO_{\Q(\sqrt d)}$, with respect to the embedding in which $\sqrt d>0$. We choose the positive generator of the unit group modulo $\{\pm1\}$, so its norm may initially be either sign. Define \begin{equation} \mathcal F=\left\{d>1:\begin{array}{l} d\text{ is squarefree},\quad \Norm(\eta_d)=1,\\[1mm] 2\Tr(\eta_d)+5=m^2\text{ for some }m\ge9, \quad m\equiv3\pmod6 \end{array}\right\}. \label{eq:reg-field-family} \end{equation} Here the trace and norm are from $\Q(\sqrt d)$ to $\Q$. \begin{proposition}[A one-to-one parametrisation] \label{reg:parametrisation} The map $n\mapsto d_n$ is a bijection from $\{n\ge1:U_n\text{ is fundamental in }\OO_{\Q(\sqrt{d_n})}\}$ onto $\mathcal F$. Its inverse is $n=(m-3)/6$, where $m$ is the positive integer in \eqref{eq:reg-field-family}. \end{proposition} \begin{proof} For a fundamental index, $\eta_{d_n}=U_n$ and \[ 2\Tr(U_n)+5=4A_n+5 =36n(n+1)+9=(6n+3)^2. \] Conversely, let $d\in\mathcal F$ and put $n=(m-3)/6\ge1$. Then $\Tr(\eta_d)=2A_n$ and $\Norm(\eta_d)=1$. Thus $\eta_d$ is the root greater than one of $z^2-2A_nz+1$, namely $U_n$. The discriminant of this quadratic is \[ (2A_n)^2-4=36D(n), \] so its quadratic field has squarefree radicand $d_n=d$. Finally $A_n$ is strictly increasing for $n\ge1$, which proves injectivity. No assertion about all repetitions of $d_n$ is needed. \end{proof} Write $\lambda(n)=(-1)^{\Omega(n)}$ for the Liouville function and $\mu$ for the M\"obius function. For our squarefree decomposition, \begin{equation} C(n):=\lambda\bigl(D(n)\bigr) =\lambda(n)\lambda(n+1)\lambda(3n+1)\lambda(3n+2) =\mu(d_n). \label{eq:reg-sign} \end{equation} The last equality is exact: the factor $s_n^2$ makes no contribution to the parity of $\Omega(D(n))$. For $\Re s>1$, set \begin{align} \mathcal D_C(s)&=\sum_{n\ge1}\frac{C(n)}{n^s}, &Z_\mu(s)&=\sum_{d\in\mathcal F}\mu(d)\eta_d^{-s/2}, \label{eq:reg-series}\\ &&Z_+(s)&=\sum_{d\in\mathcal F}\eta_d^{-s/2}. \notag \end{align} The real logarithm is used to define each complex power. \begin{theorem}[Holomorphic comparison] \label{reg:comparison} Both differences \begin{equation} \mathcal D_C(s)-18^{s/2}Z_\mu(s), \qquad \zeta(s)-18^{s/2}Z_+(s) \label{eq:reg-holomorphic} \end{equation} extend holomorphically from $\Re s>1$ to $\Re s>0$. Consequently, $Z_+$ has a meromorphic continuation to that half-plane, with a unique pole there: a simple pole at $s=1$ of residue $18^{-1/2}$. \end{theorem} \begin{proof} Since $U_n=A_n+\sqrt{A_n^2-1}$, we have \begin{equation} U_n=18n^2\bigl(1+O(n^{-1})\bigr). \label{eq:reg-size} \end{equation} For $s$ in a fixed compact subset $K$ of $\Re s>0$, it follows that \[ n^{-s}-18^{s/2}U_n^{-s/2} =O_K\bigl(n^{-\Re s-1}\bigr). \] Thus the sum of these differences over fundamental indices converges absolutely and locally uniformly on $\Re s>0$, with or without the coefficient $C(n)$. For the nonfundamental indices, \eqref{pell:qualitative} gives $E(X)\ll_\eps X^\eps$ for every fixed $\eps>0$. Partial summation therefore shows that \[ \sum_{\substack{n\ge1\\U_n\text{ nonfundamental}}}n^{-\sigma}<\infty \qquad(\sigma>0). \] The corresponding Dirichlet series is holomorphic in the same half-plane. Proposition~\ref{reg:parametrisation} now identifies the remaining sums with $Z_\mu$ and $Z_+$, proving \eqref{eq:reg-holomorphic}. The assertion about $Z_+$ follows from the meromorphic continuation and residue of $\zeta$. \end{proof} \begin{corollary}[Equivalent local continuations] \label{reg:equivalence} The series $Z_\mu$ admits a holomorphic continuation to a neighbourhood of $s=1$ if and only if $\mathcal D_C$ does. \end{corollary} \begin{proof} Write $H(s)=\mathcal D_C(s)-18^{s/2}Z_\mu(s)$ for the holomorphic function on $\Re s>0$ given by Theorem~\ref{reg:comparison}. The factor $18^{s/2}$ is entire and never vanishes. Either local continuation therefore defines the other by $\mathcal D_C=18^{s/2}Z_\mu+H$ or $Z_\mu=18^{-s/2}(\mathcal D_C-H)$. \end{proof} Thus the change of index transports the local analytic condition exactly. It provides an arithmetic formulation in terms of fundamental regulators; proving the continuation requires further information about the signed series. \subsection{A local continuation criterion for harmonic windows} For real $1\le U1$. If $F$ continues holomorphically across $s=1$, then $\sup_{1\le U0$, the Fourier transform of $e^{-\sigma x}\nu$ is $F(1+\sigma+it)$. Since $\nu$ is supported on $[0,\infty)$, domination against Schwartz functions gives $e^{-\sigma x}\nu\to\nu$ in tempered distributions. Passing to the limit $\sigma\downarrow0$ shows that $\widehat\nu$ agrees, near $t=0$, with the smooth function supplied by the continuation of $F(1+it)$. Choose $\widehat K\in C_c^\infty(\R)$ with support in that neighbourhood and $\widehat K(0)=1$. Its inverse Fourier transform $K$ is a Schwartz function and $\int_\R K=1$. Moreover \[ \widehat{K*\nu}(t)=\widehat K(t)F(1+it) \] is smooth and compactly supported, so $K*\nu$ is itself Schwartz. For any bounded interval $I$, Fubini's theorem gives \[ \int_I(K*\nu)(x)\,dx =\int_\R K(t)\nu(I-t)\,dt. \] Translation boundedness implies $|\nu(I)-\nu(I-t)|\ll1+|t|$, uniformly in $I$: translating an interval changes only two boundary intervals. Consequently \[ \left|\nu(I)-\int_I(K*\nu)(x)\,dx\right| \ll\int_\R(1+|t|)|K(t)|\,dt. \] The integral of $K*\nu$ over $I$ is bounded by its $L^1$ norm. Taking $I=(\log U,\log V]$ proves the assertion. \end{proof} For the relation to \cite[Theorem~3.1]{DebruyneVindas}, put $S(t)=\sum_{n\le e^t}a_n/n$ and $\tau(t)=S(t)-F(1)$ for $t\ge0$, where $F(1)$ is the value of the continuation, and extend $\tau$ by zero to $t<0$. Bounded coefficients give $|S(t+h)-S(t)|\ll1+h$ for $h\ge0$, so the real and imaginary parts of $\tau$ are boundedly decreasing. Its Laplace transform is \[ \int_0^\infty \tau(t)e^{-zt}\,dt =\frac{F(1+z)-F(1)}{z},\qquad \Re z>0. \] Local holomorphy of $F$ makes the singularity at $z=0$ removable, which implies the local boundary condition of that theorem. Its conclusion $\tau(t)=O(1)$ gives the same bounded primitive. \begin{proof}[Proof of Theorem~\ref{reg:criterion}] Corollary~\ref{reg:equivalence} transfers the assumed continuation of $Z_\mu$ to $\mathcal D_C$. Apply Lemma~\ref{reg:smoothing} to $a_n=C(n)$ and divide \eqref{eq:reg-bounded-primitive} by $H(U,V)$. \end{proof} \paragraph{Congruence restrictions.} For a fixed $q\ge1$ and $a\in\Z$, the corresponding field series is obtained by restricting \eqref{eq:reg-series} to $(m-3)/6\equiv a\pmod q$, with $m$ as in \eqref{eq:reg-field-family}. The proof of Theorem~\ref{reg:comparison} applies term by term on that class, and local holomorphic continuation of its signed field series would give a bounded harmonic primitive on the class. The assumption of Theorem~\ref{reg:criterion} concerns only the unrestricted series. Its local continuation at $1$ remains open. \paragraph{An unconditional bound on the real axis.} For the same $C(n)$, Pouly~\cite{PoulyQuartic} proves that on every fixed residue class the limsup of the absolute normalised harmonic average on windows of divergent mass is at most $B=196567331/402653184$. In particular, taking $q=1$, for every $\varepsilon>0$ the initial sums $S(x)=\sum_{n\le x}C(n)/n$ satisfy $|S(x)|\le (B+\varepsilon)\log x+O_\varepsilon(1)$. For $t>0$, Abel summation gives \[ t\,\mathcal D_C(1+t)=t^2\int_1^\infty S(x)x^{-1-t}\,dx. \] Since $t^2\int_1^\infty(\log x)x^{-1-t}\,dx=1$, this bounds the limsup of the left-hand side in absolute value by $B$. The two comparisons in Theorem~\ref{reg:comparison}, together with $t\zeta(1+t)\to1$, now give \[ \limsup_{\sigma\downarrow1} \frac{|Z_\mu(\sigma)|}{Z_+(\sigma)}\le B . \] This estimate uses only values at real $\sigma>1$. If $Z_\mu$ admits a meromorphic continuation near $1$, then $|Z_\mu(\sigma)|\le Z_+(\sigma)$ for real $\sigma>1$ bounds any pole at $1$ to order one. Writing $r=\operatorname{Res}_{s=1}Z_\mu(s)$, we obtain $|\sqrt{18}\,r|\le B$. The function $\mathcal D_C(s)-\sqrt{18}\,r\,\zeta(s)$ is then holomorphic near $1$. Lemma~\ref{reg:smoothing} applied to $a_n=C(n)-\sqrt{18}\,r$ gives, uniformly for $1\le U