Petty’s Notebook

Carry Boundaries and Bernoulli Spectra in Long Division

About this paperRepository PDFZenodo
Cite this paper

A. S. Petty, Carry Boundaries and Bernoulli Spectra in Long Division, DOI: 10.5281/zenodo.20451178.

Lean proofs

Abstract

Fix a base bb and a prefix length NN. A weight on the bNb^N digit cylinders defines a count over all numerators 1≤r<q1\le r<q. We prove that, after removal of its bulk and terminal endpoint, this count is an exact carry table indexed by q mod bNq\bmod b^N. At every primitive odd Dirichlet character its Fourier coefficient factors as F^w(χ)=−B1,χˉ Sw(χ).\widehat F_w(\chi)=-B_{1,\bar\chi}\,S_w(\chi). The generalized Bernoulli factor is the classical sawtooth response. The second factor is the signed additive boundary of the chosen digit rule. Ordinary character fluxes determine exactly the part of that boundary on units. Induced carry transforms can also retain nonunit endpoints; an explicit conductor-depth weight gives their response at prime powers.

For the terminal first-to-last digit collision modulo an odd prime power pNp^N, with N≥2N\ge2, conductor balance and antipodal oddness give 1npo∑χ primitive odd∣SG(χ)∣2=2∣∂formG∣.\frac1{n_{\mathrm{po}}} \sum_{\chi\ \mathrm{primitive\ odd}}|S_G(\chi)|^2 =2|\partial_{\mathrm{form}}G|. At base 1515, proper-conductor boundary mass survives and changes the mean from 6060 to 2828, with an exact signed conductor ledger. Parseval then writes quadratic carry energy as a conductor-stratified Bernoulli response, while its unit-index correlations are finite Möbius combinations of classical Dedekind sums. Finite digit rules are thereby separated into a universal floor potential and the additive boundary carrying their arithmetic information.

May 2026 (revised September 11, 2026)
2020 Mathematics Subject Classification: Primary 11A63; Secondary 11L26, 11L40

The Carry Under the Digit

A fixed prefix of a rational expansion looks like a string of digits. Summed over every numerator below the denominator, it has a smaller description. Each digit word is one cell of a finite partition, and entry into that cell is controlled by a carry across an integer wall. The objective is to make that reduction exact and determine what Dirichlet characters retain from it.

Fix an integer base b≥2b\ge2 and a modulus qq coprime to bb. For r∈Z/qZr\in\mathbb{Z}/q\mathbb{Z}, let ⟨r⟩q\langle r\rangle_q denote its representative in {0,…,q−1}\{0,\dots,q-1\}. Long division is governed by Tb(r)=br mod q,δq(r)=⌊b⟨r⟩qq⌋.\mathop{\mathrm{T}}_b(r)=br\bmod q, \qquad \delta_q(r)=\left\lfloor\frac{b\langle r\rangle_q}{q}\right\rfloor . The first operation moves the remainder. The second records the wall crossed by that motion. Digit collisions, agreements, transitions, and block patterns are different choices of marked cells in the same finite carry table.

Repeated wall crossings leave a centered sawtooth. Its primitive odd transform is the generalized Bernoulli value B1,χˉB_{1,\bar\chi}, independent of the digit rule. The rule marks a finite region. Interior differences cancel, leaving its signed boundary. Each primitive odd transform is universal floor potential×selected boundary flux.\text{universal floor potential}\times\text{selected boundary flux}. Every rule on the first NN digits enters this form after its bulk and terminal endpoint are removed. Ordinary fluxes see only the unit boundary. Primitive transforms use that flux. Induced transforms retain the depth weights developed below.

Digit statistics of reciprocals have an established arithmetic theory. Girstmair related values in reciprocal digit orbits to class numbers. He also expressed digit variance through Dedekind sums  [4, 5, 8]. Murty and Thangadurai expressed digit averages for bases of prescribed order through generalized Bernoulli numbers and Dirichlet LL-functions  [6]. Pujahari and Saikia extended that orbitwise setting to prime powers and products of two primes [7]. Those works follow the digits of a reciprocal around a multiplicative remainder orbit. The present sum instead ranges over the complete numerator slice 1≤r<q1\le r<q and permits an arbitrary weight on its first NN digits.

Coordinate agreement under cyclic shift belongs to classical Hamming correlation theory [2]. Kak and Chatterjee studied prime-reciprocal digit sequences as communication codes and obtained bounds for Hamming distance from cyclic shifts and for autocorrelation  [3]. A collision diagonal is one specialization below, but the reduction neither assumes that qq is prime nor that the base generates the unit group. Character sums over integers selected by fixed-base digit restrictions form another neighboring theory [14]. There the summation variable is the digit-restricted integer. Here it is the denominator slice, whose centered remainder becomes a carry boundary.

Sawtooth transforms, generalized Bernoulli numbers, Gauss sums, character orthogonality, conductor decomposition, and Dedekind sums are classical [9, 10, 11, 12, 13, 15]. The results proved here are their exact application to the boundary selected by a finite digit rule. The cylinder-to-carry identity treats arbitrary weighted prefixes. The primitive transform splits into the classical Bernoulli response and a rule-specific signed flux. Ordinary characters recover exactly the unit boundary, while induced characters require a conductor-depth pairing. The terminal collision boundary then yields a prime-power mean law and an explicit base-1515 obstruction. The base-three calculation in Section 7 displays the complete mechanism on nine states.

Cylinder-to-Carry Reduction

A finite digit rule depends on a fixed number of digits. At level NN, each digit word is represented by one cell index. The count therefore descends to a function of one multiplier residue.

Lemma 1 (Digit locality). For rq=∑i≥1dib−i,1≤r<q,\frac rq=\sum_{i\ge1}d_i b^{-i}, \qquad 1\le r<q, let the digits be the greedy long-division digits dj=⌊bjrq⌋−b⌊bj−1rq⌋.d_j=\left\lfloor\frac{b^j r}{q}\right\rfloor -b\left\lfloor\frac{b^{j-1}r}{q}\right\rfloor. The readout after ℓ\ell remainder steps is the (ℓ+1)(\ell+1)-st digit, δq ⁣(Tbℓ(r))=⌊bℓ+1rq⌋ mod b=dℓ+1.\delta_q\!\left(\mathop{\mathrm{T}}_b^\ell(r)\right) =\left\lfloor\frac{b^{\ell+1}r}{q}\right\rfloor\bmod b =d_{\ell+1}. Hence an observable built from readouts at lags ℓ1<⋯<ℓt\ell_1<\cdots<\ell_t depends on r/qr/q only through d1,…,dℓt+1d_1,\dots,d_{\ell_t+1}.

Proof. Write bℓr=qQ+ρ,0≤ρ<q.b^\ell r=qQ+\rho, \qquad 0\le\rho<q. Then Tbℓ(r)=ρ\mathop{\mathrm{T}}_b^\ell(r)=\rho and δq ⁣(Tbℓ(r))=⌊bρq⌋=⌊bℓ+1rq⌋−bQ.\delta_q\!\left(\mathop{\mathrm{T}}_b^\ell(r)\right) =\left\lfloor\frac{b\rho}{q}\right\rfloor =\left\lfloor\frac{b^{\ell+1}r}{q}\right\rfloor-bQ. The last two integers are congruent modulo bb, while the first lies in {0,…,b−1}\{0,\dots,b-1\}. It is therefore the residue modulo bb of ⌊bℓ+1r/q⌋\lfloor b^{\ell+1}r/q\rfloor. The base-bb expansion of that integer shows that this residue is dℓ+1d_{\ell+1}. ◻

At level NN, the first NN digits form the single cell index ⌊bNr/q⌋\lfloor b^N r/q\rfloor. Counting digit words is therefore the same as counting how often that index enters each marked cell.

Proposition 2 (Finite-prefix slice identity). Let m=bNm=b^N, let w:Z/mZ→Cw:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C}, and let q=hm+aq=hm+a with h≥0h\ge 0, 1≤a<m1\le a<m, and (a,m)=1(a,m)=1. Define the finite-prefix weighted count and the carry sum Cw(q)=∑1≤r<qw ⁣(⌊mrq⌋),Aw(a)=∑n mod mw(n)(⌊(n+1)am⌋−⌊nam⌋).\begin{aligned} C_w(q) &=\sum_{1\le r<q} w\!\left(\left\lfloor \frac{mr}{q}\right\rfloor\right), \\ A_w(a) &=\sum_{n\bmod m}w(n)\left( \left\lfloor\frac{(n+1)a}{m}\right\rfloor -\left\lfloor\frac{na}{m}\right\rfloor\right). \end{aligned} Then Cw(q)=h∑n mod mw(n)+Aw(a)−w(m−1),C_w(q)=h\sum_{n\bmod m}w(n)+A_w(a)-w(m-1), and therefore Cw(q)−qm∑n mod mw(n)+w(m−1)=Aw(a)−am∑n mod mw(n).C_w(q)-\frac{q}{m}\sum_{n\bmod m}w(n)+w(m-1) = A_w(a)-\frac{a}{m}\sum_{n\bmod m}w(n). The right side is the centered weighted carry count attached to the residue aa.

Proof. The condition ⌊mr/q⌋=n\lfloor mr/q\rfloor=n is equivalent to nq/m≤r<(n+1)q/mnq/m\le r<(n+1)q/m. For 0≤n<m−10\le n<m-1 the number of admissible numerators 1≤r<q1\le r<q in this half-open interval is ⌊(n+1)qm⌋−⌊nqm⌋=h+⌊(n+1)am⌋−⌊nam⌋.\left\lfloor\frac{(n+1)q}{m}\right\rfloor-\left\lfloor\frac{nq}{m}\right\rfloor =h+\left\lfloor\frac{(n+1)a}{m}\right\rfloor-\left\lfloor\frac{na}{m}\right\rfloor . For n=0n=0, the formula also removes the excluded endpoint r=0r=0. Every other lower endpoint is nonintegral because (q,m)=1(q,m)=1. At n=m−1n=m-1, the interval ends at qq, but the count uses r<qr<q. Removing that endpoint subtracts w(m−1)w(m-1). Multiplying by w(n)w(n) and summing gives the first identity. Substituting q=hm+aq=hm+a gives the second. ◻

Example 3 (A nine-state slice). Take b=3b=3, N=2N=2, and mark the two-digit words whose digits agree. Then m=9m=9 and G={0,4,8}G=\{0,4,8\}. For q=11=9+2q=11=9+2, the first two digits agree exactly for the four numerators r∈{1,5,6,10},r\in\{1,5,6,10\}, since ⌊9r/11⌋\lfloor9r/11\rfloor lies in GG exactly at those values. At the residue a=2a=2, the marked cells contribute two carries, so the slice identity reads 4=1⋅∣G∣+AG(2)−1G(8)=3+2−1.4=1\cdot|G|+A_G(2)-\mathbf1_G(8)=3+2-1. The intrinsic digit count has separated into its bulk, its carry count, and its terminal endpoint.

Remark 4. After removing the bulk h∑wh\sum w and the terminal endpoint, the count depends only on a=q mod ma=q\bmod m. A new finite-prefix observable therefore begins by identifying its digit support or weight.

The indicator form makes the reduction explicit. The weighted form follows.

Theorem 5 (Cylinder-to-Carry Reduction). Let b≥2b\ge2, N≥1N\ge1, m=bNm=b^N, and let D⊆{0,…,b−1}N\mathcal D\subseteq\{0,\dots,b-1\}^N be any set of length-NN digit words. Put GD={0≤n<m: (dig0(n),…,digN−1(n))∈D},G_{\mathcal D} =\{0\le n<m:\ (\mathrm{dig}_0(n),\dots,\mathrm{dig}_{N-1}(n))\in\mathcal D\}, where dig0(n),…,digN−1(n)\mathrm{dig}_0(n),\dots,\mathrm{dig}_{N-1}(n) are the NN padded base-bb digits of nn from most significant to least significant. For q=hm+aq=hm+a with h≥0h\ge0, 1≤a<m1\le a<m, and (a,m)=1(a,m)=1, let CD(q)=#{1≤r<q: (d1(r/q),…,dN(r/q))∈D}.\mathcal C_{\mathcal D}(q) =\#\{1\le r<q:\ (d_1(r/q),\dots,d_N(r/q))\in\mathcal D\}. Then CD(q)=C1GD(q)\mathcal C_{\mathcal D}(q)=C_{\mathbf 1_{G_{\mathcal D}}}(q), and hence CD(q)−q∣GD∣m+1GD(m−1)=AGD(a)−a∣GD∣m.\mathcal C_{\mathcal D}(q)-\frac{q|G_{\mathcal D}|}{m} +\mathbf 1_{G_{\mathcal D}}(m-1) =A_{G_{\mathcal D}}(a)-\frac{a|G_{\mathcal D}|}{m}. Every finite-prefix digit relation with (q,b)=1(q,b)=1 is therefore a carry-boundary observable, up to the standard endpoint normalization.

Proof. For 1≤r<q1\le r<q set n=⌊mr/q⌋n=\lfloor mr/q\rfloor. Since m=bNm=b^N, the base-bb digits of nn are exactly the first NN long-division digits d1(r/q),…,dN(r/q)d_1(r/q),\dots,d_N(r/q). Hence the digit word of r/qr/q lies in D\mathcal D exactly when n∈GDn\in G_{\mathcal D}. This gives CD(q)=C1GD(q)\mathcal C_{\mathcal D}(q)=C_{\mathbf 1_{G_{\mathcal D}}}(q). Since m=bNm=b^N, the conditions (a,m)=1(a,m)=1 and (q,b)=1(q,b)=1 are equivalent. Proposition 2 with w=1GDw=\mathbf 1_{G_{\mathcal D}} gives the centered identity. ◻

Corollary 6 (Weighted cylinder reduction). Let Φ:{0,…,b−1}N→C\Phi:\{0,\dots,b-1\}^N\to\mathbb{C} be a finite-prefix digit observable and set wΦ(n)=Φ(dig0(n),…,digN−1(n))w_\Phi(n)=\Phi(\mathrm{dig}_0(n),\dots,\mathrm{dig}_{N-1}(n)). Under the hypotheses of Proposition 2, with q=hm+aq=hm+a, 1≤a<m1\le a<m, and (a,m)=1(a,m)=1, the intrinsic weighted count WΦ(q)=∑1≤r<qΦ(d1,…,dN)\mathcal W_\Phi(q)=\sum_{1\le r<q}\Phi(d_1,\dots,d_N) equals CwΦ(q)C_{w_\Phi}(q). Define its centered table by RΦ(a)=AwΦ(a)−am∑n mod mwΦ(n).\mathcal R_\Phi(a) =A_{w_\Phi}(a)-\frac am\sum_{n\bmod m}w_\Phi(n).

Proof. The digit word of r/qr/q at level NN is the base-bb word of n=⌊mr/q⌋n=\lfloor mr/q\rfloor, so Φ(d1,…,dN)=wΦ(n)\Phi(d_1,\dots,d_N)=w_\Phi(n). Sum over rr and apply Proposition 2. ◻

Specializing the digit-word set D\mathcal D recovers the standard observables.

Corollary 7 (Collision diagonal). For the two-point collision at lag ℓ\ell, with D={d1=dℓ+1}\mathcal D=\{d_1=d_{\ell+1}\} and m=bℓ+1m=b^{\ell+1}, and for qq coprime to bb, the intrinsic collision count Cℓ,b(q)=#{1≤r<q: d1(r/q)=dℓ+1(r/q)}\mathcal C_{\ell,b}(q)=\#\{1\le r<q:\ d_1(r/q)=d_{\ell+1}(r/q)\} reduces to the carry-boundary observable attached to Gℓ,b={0≤n<m: ⌊n/bℓ⌋≡n (mod b)}G_{\ell,b}=\{0\le n<m:\ \lfloor n/b^\ell\rfloor\equiv n\ (\mathrm{mod}\ b)\}.

Corollary 8 (Three-point agreement). For 0<i<j0<i<j, m=bj+1m=b^{j+1}, and qq coprime to bb, the intrinsic three-point count #{1≤r<q: d1=di+1=dj+1}\#\{1\le r<q:\ d_1=d_{i+1}=d_{j+1}\} reduces to the carry-boundary observable attached to Gi,j(3)={n: dig0(n)=digi(n)=digj(n)}G^{(3)}_{i,j}=\{n:\ \mathrm{dig}_0(n)=\mathrm{dig}_i(n)=\mathrm{dig}_j(n)\}.

Corollary 9 (Adjacent transitions and block patterns). For qq coprime to bb and for a set A⊆{0,…,b−1}2\mathcal A\subseteq\{0,\dots,b-1\}^2 of allowed digit pairs at level two, the adjacent-transition count reduces to the carry-boundary observable attached to GA={n<b2: (⌊n/b⌋,n mod b)∈A}G_{\mathcal A}=\{n<b^2:\ (\lfloor n/b\rfloor,n\bmod b)\in\mathcal A\}. For a set P⊆{0,…,b−1}L\mathcal P\subseteq\{0,\dots,b-1\}^L of allowed words, again with qq coprime to bb, the block-pattern count reduces to the carry-boundary observable attached to the level-LL support GPG_{\mathcal P}.

Proof of Corollaries 7–9. Each is Theorem 5 for the stated digit-word set. The four supports encode, respectively, the collision relation d1=dℓ+1d_1=d_{\ell+1}, the agreement d1=di+1=dj+1d_1=d_{i+1}=d_{j+1}, the pair condition on (d1,d2)(d_1,d_2), and the word condition on (d1,…,dL)(d_1,\dots,d_L). In each case n=⌊mr/q⌋n=\lfloor mr/q\rfloor carries the relevant digits, so the intrinsic count equals the count over the named support. ◻

Carry-Boundary Observables

The reduction leaves one weight on each cell. Carries occur at the edges where that weight changes.

Definition 10 (Carry-boundary observable). Let m≥2m\ge 2 and w:Z/mZ→Cw:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C}. The associated carry-boundary observable is Fw(a)  =  −∑n mod mw(n)(s ⁣((n+1)a)−s(na)),a mod m,F_w(a) \;=\; -\sum_{n\bmod m}w(n)\bigl(s\!\bigl((n+1)a\bigr)-s(na)\bigr), \qquad a\bmod m, where ss is the centered sawtooth of §4. Its boundary flux against a character χ\chi is Sw(χ)=∑n mod mw(n)(χ(n+1)−χ(n)).S_w(\chi)=\sum_{n\bmod m}w(n)\bigl(\chi(n+1)-\chi(n)\bigr). For G⊆{0,…,m−1}G\subseteq\{0,\dots,m-1\} and w=1Gw=\mathbf 1_G we write FGF_G and SGS_G. Characters are extended by zero off the unit group, and we use the transform F^w(χ)=∑amod  mFw(a)χ(a)‾.\widehat F_w(\chi)=\sum_{a\mod m}F_w(a)\overline{\chi(a)}.

The summand of FwF_w is a carry. For 0≤a<m0\le a<m the increment ca(n):=⌊(n+1)am⌋−⌊nam⌋∈{0,1}c_a(n):=\left\lfloor \frac{(n+1)a}{m}\right\rfloor -\left\lfloor \frac{na}{m}\right\rfloor\in\{0,1\} equals 11 exactly when {na/m}+a/m≥1\{na/m\}+a/m\ge 1. This is precisely the step from nana to (n+1)a(n+1)a crossing a multiple of mm. Thus ca(n)c_a(n) records one carry. The basic object is the carry across a marked boundary. A collision diagonal chooses which steps to mark.

Definition 11 (Signed boundary chain). For a weight ww, the signed boundary chain is the cyclic difference μw(x)=w(x−1)−w(x),x mod m,\mu_w(x)=w(x-1)-w(x),\qquad x\bmod m, so that the boundary flux is the pairing Sw(χ)=∑x mod mμw(x) χ(x)=⟨χ,μw⟩.S_w(\chi)=\sum_{x\bmod m}\mu_w(x)\,\chi(x) =\langle\chi,\mu_w\rangle.

Neighboring cells with the same weight contribute nothing at their common edge. Only a change of weight leaves signed boundary mass.

Definition 12 (Formal boundary). Write a support G⊆{0,…,m−1}G\subseteq\{0,\dots,m-1\} as a disjoint union G=⨆i[αi,βi]G=\bigsqcup_i[\alpha_i,\beta_i] of maximal integer intervals. The formal boundary ∂formG\partial_{\mathrm{form}}G is the multiset of interval endpoints, one left endpoint αi\alpha_i and one post-right endpoint βi+1\beta_i+1 per interval. Thus ∣∂formG∣=2⋅#{maximal intervals of G}.|\partial_{\mathrm{form}}G|=2\cdot\#\{\text{maximal intervals of }G\}. The cyclic signed boundary chain μG\mu_G is recovered from the formal boundary by summing signs at each residue modulo mm. Endpoints that coincide modulo mm may cancel, so μG\mu_G can carry less total mass than ∣∂formG∣|\partial_{\mathrm{form}}G|.

The formal boundary counts walls before residues are identified. The chain μG\mu_G records the cancellations after identification. Ordinary fluxes and primitive transforms see only μG∣(Z/mZ)×\mu_G|_{(\mathbb{Z}/m\mathbb{Z})^{\times}}. Induced transforms use the conductor-depth pairing of Section 9.

The formal count is the carry-wall normalization used in the boundary mean law. For the terminal collision diagonal GNG_N modulo pNp^N, with N≥2N\ge2, there are pN−1p^{N-1} singleton cells. Its formal boundary has size 2pN−12p^{N-1}. The two endpoints at residue 00 cancel in μGN\mu_{G_N}.

For G={0,4,8}G=\{0,4,8\}, the six formal endpoints reduce modulo 99. Two meet and cancel at 00. The four unit endpoints that remain have signed mass +1+1 at 11, −1-1 at 44, +1+1 at 55, and −1-1 at 88. Ordinary fluxes and primitive transforms see exactly these four endpoints.

The chain is now visible. A weight gives a signed boundary, the boundary gives a flux, and a primitive character supplies the Bernoulli response w⟼μw⟼Sw(χ)⟼−B1,χˉSw(χ).w\longmapsto\mu_w\longmapsto S_w(\chi) \longmapsto-B_{1,\bar\chi}S_w(\chi).

Lemma 13 (Endpoint normalization). For a∈(Z/mZ)×a\in(\mathbb{Z}/m\mathbb{Z})^{\times}, define the centered carry table Aw∘(a)=Aw(a)−am∑nw(n).A_w^\circ(a)=A_w(a)-\frac am\sum_{n}w(n). Then Fw(a)=Aw∘(a)+12(w(0)−w(m−1)).F_w(a)=A_w^\circ(a)+\tfrac12\bigl(w(0)-w(m-1)\bigr). Thus the sawtooth-normalized observable and the centered carry table differ by a constant independent of aa. The observable FwF_w gives the cleaner boundary formula, while FwF_w and Aw∘A_w^\circ have identical primitive odd transforms.

Proof. For a∈(Z/mZ)×a\in(\mathbb{Z}/m\mathbb{Z})^{\times} and 1≤n≤m−21\le n\le m-2, neither nana nor (n+1)a(n+1)a is congruent to 00 modulo mm. Hence s((n+1)a)−s(na)=am−ca(n),s((n+1)a)-s(na)=\frac{a}{m}-c_a(n), where ca(n)=⌊(n+1)a/m⌋−⌊na/m⌋c_a(n)=\lfloor (n+1)a/m\rfloor-\lfloor na/m\rfloor. At n=0n=0 the value s(0)=0s(0)=0 gives the extra −12-\tfrac12 in the difference, and after the outer minus sign this contributes +12w(0)+\tfrac12 w(0). At n=m−1n=m-1, (n+1)a≡0(n+1)a\equiv0, giving an extra +12+\tfrac12 in the difference and hence −12w(m−1)-\tfrac12 w(m-1) after the outer minus sign. Summing the remaining terms gives Aw(a)−am∑nw(n)=Aw∘(a)A_w(a)-\frac am\sum_n w(n)=A_w^\circ(a). ◻

Corollary 14 (Endpoint constants are spectrally invisible). Extend Aw∘A_w^\circ off (Z/mZ)×(\mathbb{Z}/m\mathbb{Z})^{\times} by the same formula, or arbitrarily; only unit values contribute to Dirichlet transforms. For every nonprincipal Dirichlet character χ mod m\chi\bmod m, ∑a mod mFw(a)χˉ(a)=∑a mod mAw∘(a)χˉ(a).\sum_{a\bmod m}F_w(a)\bar\chi(a) =\sum_{a\bmod m}A_w^\circ(a)\bar\chi(a).

Proof. The two differ by the constant 12(w(0)−w(m−1))\tfrac12(w(0)-w(m-1)) of Lemma 13, and ∑aχˉ(a)=0\sum_a\bar\chi(a)=0 for nonprincipal χ\chi. ◻

This corollary justifies passing between the intrinsic centered table of §2 and the sawtooth-normalized FwF_w in every nonprincipal Dirichlet transform.

Remark 15 (Fixed level versus complexity). At a fixed level NN, every support is a union of cells. Its boundary flux is therefore a finite character sum. The minimal level records how many digits the rule actually needs.

The Floor Potential

The digit rule is now gone. What remains is the response supplied by the floor.

The analytic engine is the centered sawtooth. Let m≥2m\ge2 and define on Z/mZ\mathbb{Z}/m\mathbb{Z} s(n)=nm−12(1≤n≤m−1),s(0)=0.s(n) = \frac{n}{m}-\frac12 \quad (1\le n\le m-1), \qquad s(0)=0 . This is the centered fractional-part function on residue classes. Through ⌊x⌋=x−{x}\lfloor x\rfloor=x-\{x\} it is the oscillatory part of the floor. The single property that drives the theory is that ss is odd, s(−n)=s(m−n)=m−nm−12=−s(n).s(-n)=s(m-n)=\frac{m-n}{m}-\frac12 = -s(n).

The normalization below is the standard first generalized Bernoulli convention for Dirichlet characters; see, for example, [11].

Lemma 16 (Boundary-to-Bernoulli). For s^(χ)=∑n mod ms(n) χˉ(n),\widehat{s}(\chi) =\sum_{n\bmod m}s(n)\,\bar\chi(n), one has s^(χ)=0\widehat{s}(\chi)=0 whenever χ\chi is even. For every primitive character χ mod m\chi\bmod m, s^(χ)=B1,χˉ,B1,ψ=1m∑a=1ma ψ(a).\widehat{s}(\chi)=B_{1,\bar\chi}, \qquad B_{1,\psi}=\tfrac1m\sum_{a=1}^{m}a\,\psi(a). In particular, B1,χˉ=0B_{1,\bar\chi}=0 when χ\chi is primitive and even.

Proof. The substitution n↦−nn\mapsto-n and the oddness of ss give s^(χ)=−χˉ(−1)s^(χ).\widehat{s}(\chi) =-\bar\chi(-1)\widehat{s}(\chi). The transform therefore vanishes when χ\chi is even. A primitive character of modulus m≥2m\ge2 is nonprincipal, so ∑aχˉ(a)=0\sum_a\bar\chi(a)=0. It follows that s^(χ)=∑a=1m−1(am−12)χˉ(a)=1m∑a=1m−1a χˉ(a)=B1,χˉ.\widehat{s}(\chi) =\sum_{a=1}^{m-1}\Bigl(\frac{a}{m}-\frac12\Bigr)\bar\chi(a) =\frac1m\sum_{a=1}^{m-1}a\,\bar\chi(a) =B_{1,\bar\chi}. For an even primitive character, the first part makes both sides zero. ◻

Even characters vanish because the sawtooth is odd. On a primitive odd character, the value is exactly a Bernoulli number with no extra Gauss factor. We call this universal factor B1,χˉB_{1,\bar\chi} the floor potential.

The Carry-Boundary Factorization

The boundary and the floor response are now separate. The factorization puts them back together and accounts for nonunit endpoints.

One uniform evaluation drives the proof. Primitivity enters through standard Gauss-sum separation [9].

Lemma 17 (Primitive Gauss-sum separation). Let ψ mod m\psi\bmod m be primitive and τc(ψ)=∑aψ(a)e(ca/m)\tau_c(\psi)=\sum_{a}\psi(a)e(ca/m) with e(x)=e2πixe(x)=e^{2\pi i x}. Then for every integer cc, τc(ψ)=ψ‾(c) τ1(ψ),\tau_c(\psi)=\overline{\psi}(c)\,\tau_1(\psi), with the convention ψ(c)=0\psi(c)=0 when (c,m)>1(c,m)>1. In particular τc(ψ)=0\tau_c(\psi)=0 whenever (c,m)>1(c,m)>1.

Proof. For (c,m)=1(c,m)=1, substitute u=cau=ca to get τc(ψ)=ψ(c−1)τ1(ψ)=ψ‾(c)τ1(ψ)\tau_c(\psi)=\psi(c^{-1})\tau_1(\psi)=\overline\psi(c)\tau_1(\psi). For (c,m)>1(c,m)>1, the additive character a↦e(ca/m)a\mapsto e(ca/m) has conductor m/(c,m)<mm/(c,m)<m; summing the primitive multiplicative character over the corresponding cosets gives zero, which is the standard primitive Gauss-sum separation. ◻

Lemma 18 (Twisted sawtooth evaluation). Let χ mod m\chi\bmod m be primitive. For every integer kk, ∑a mod ms(ka) χˉ(a)=χ(k) B1,χˉ.\sum_{a\bmod m}s(ka)\,\bar\chi(a)=\chi(k)\,B_{1,\bar\chi}. In particular the sum vanishes whenever (k,m)>1(k,m)>1.

Proof. Use the finite Fourier expansion on Z/mZ\mathbb{Z}/m\mathbb{Z}, s(n)=∑j mod mg^(j)e(jn/m),g^(j)=1m∑u mod ms(u)e(−ju/m).s(n)=\sum_{j\bmod m}\hat g(j)e(jn/m), \qquad \hat g(j)=\frac1m\sum_{u\bmod m}s(u)e(-ju/m). Since ss has mean zero, g^(0)=0\hat g(0)=0. Therefore ∑as(ka)χˉ(a)=∑j mod mg^(j)τjk(χˉ)=χ(k)(τ1(χˉ)∑j mod mg^(j)χ(j)),\sum_{a}s(ka)\bar\chi(a) =\sum_{j\bmod m}\hat g(j)\tau_{jk}(\bar\chi) =\chi(k)\Bigl(\tau_1(\bar\chi)\sum_{j\bmod m}\hat g(j)\chi(j)\Bigr), by Lemma 17. The parenthesized factor is independent of kk; setting k=1k=1 identifies it as B1,χˉB_{1,\bar\chi} via Lemma 16. ◻

The uniformity in kk is the point. Separability sends every nonunit index to the exact value χ(k)B1,χˉ=0\chi(k)B_{1,\bar\chi}=0. The factorization therefore holds for every weight without a coprimality hypothesis on the boundary.

Theorem 19 (Carry-Boundary Factorization). Let m≥2m\ge 2, let w:Z/mZ→Cw:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C}, and let χ mod m\chi\bmod m be primitive. Then F^w(χ)=0\widehat F_w(\chi)=0 for even χ\chi, and for primitive odd χ\chi,   F^w(χ)  =  − B1,χˉ⋅Sw(χ)  ,Sw(χ)=∑n mod mw(n)(χ(n+1)−χ(n)).\boxed{\;\widehat F_w(\chi) \;=\; -\,B_{1,\bar\chi}\cdot S_w(\chi)\;}, \qquad S_w(\chi)=\sum_{n\bmod m}w(n)\bigl(\chi(n+1)-\chi(n)\bigr).

Proof. Expand and exchange sums, F^w(χ)=−∑nw(n)∑a(s((n+1)a)−s(na))χˉ(a).\widehat F_w(\chi) = -\sum_{n}w(n)\sum_{a}\bigl(s((n+1)a)-s(na)\bigr)\bar\chi(a). By Lemma 18, the two inner sawtooth transforms are χ(n+1)B1,χˉ\chi(n+1)B_{1,\bar\chi} and χ(n)B1,χˉ\chi(n)B_{1,\bar\chi}. Hence the preceding sum is −B1,χˉSw(χ)-B_{1,\bar\chi}S_w(\chi). Even-character vanishing follows from Fw(−a)=−Fw(a)F_w(-a)=-F_w(a). ◻

Remark 20 (Where the non-unit indices went). Lemma 18 absorbs every boundary index not coprime to mm. By primitivity, such an endpoint contributes χ(k)B1,χˉ=0\chi(k)B_{1,\bar\chi}=0. A nonunit cell can still create a neighboring unit endpoint. The primitive transform sees that unit boundary difference, as Theorem 24 makes precise.

Corollary 21 (Constant weights have no spectrum). If w≡cw\equiv c is constant, then μw≡0\mu_w\equiv0, so Sw(χ)=0S_w(\chi)=0 and F^w(χ)=0\widehat F_w(\chi)=0 for every χ\chi. A uniform digit weight has no boundary and no transform.

Proof. Directly from Definition 10, Fw(a)=−c∑n mod m(s((n+1)a)−s(na))=0F_w(a)=-c\sum_{n\bmod m} \bigl(s((n+1)a)-s(na)\bigr)=0 by cyclic telescoping. Hence every transform of FwF_w vanishes. ◻

Corollary 22 (Spectral factorization of finite-prefix observables). Let b≥2b\ge2, N≥1N\ge1, and m=bNm=b^N. Let Φ:{0,…,b−1}N→C\Phi:\{0,\dots,b-1\}^N\to\mathbb{C} be a finite-prefix digit observable with cylinder weight wΦw_\Phi. Its centered table RΦ\mathcal R_\Phi from Corollary 6 satisfies, for every primitive odd χ mod m\chi\bmod m, ∑a mod mRΦ(a)χˉ(a)=−B1,χˉ SwΦ(χ).\sum_{a\bmod m}\mathcal R_\Phi(a)\bar\chi(a) =-B_{1,\bar\chi}\,S_{w_\Phi}(\chi).

Proof. Combine Corollaries 6, 14 and Theorem 19. ◻

The Unit-Boundary Flux

For an interval support, interior differences cancel and only the signed endpoints remain.

Lemma 23 (Interval Stokes formula). If G=⨆i[αi,βi]G=\bigsqcup_i[\alpha_i,\beta_i] is a disjoint union of integer intervals, then interior differences cancel and SG(χ)=∑i(χ(βi+1)−χ(αi))=∑p∈∂Gε(p) χ(p),S_G(\chi)=\sum_i\bigl(\chi(\beta_i+1)-\chi(\alpha_i)\bigr) =\sum_{p\in\partial G}\varepsilon(p)\,\chi(p), where ∂G\partial G is the signed boundary, with a left endpoint αi\alpha_i carrying sign −- and a post-right endpoint βi+1\beta_i+1 carrying sign ++.

Proof. In ∑n∈G(χ(n+1)−χ(n))\sum_{n\in G}(\chi(n+1)-\chi(n)) the value χ(n)\chi(n) at an interior point nn appears once with each sign and cancels, leaving the endpoints. ◻

Thus SG(χ)=χ(∂G)S_G(\chi)=\chi(\partial G) is the character integrated over the boundary. For primitive odd χ\chi, Theorem 19 reads F^G(χ)=−B1,χˉ⏟floor potential⋅χ(∂G)⏟boundary flux.\widehat{F}_G(\chi) = -\underbrace{B_{1,\bar\chi}}_{\text{floor potential}} \cdot \underbrace{\chi(\partial G)}_{\text{boundary flux}} . An interval contributes only its endpoints. The same fact holds for every weight. Ordinary flux depends only on the boundary derivative at unit residues.

Theorem 24 (Unit-boundary image and kernel). Let m≥2m\ge2 and w:Z/mZ→Cw:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C}, and recall μw(x)=w(x−1)−w(x)\mu_w(x)=w(x-1)-w(x). For every Dirichlet character χ mod m\chi\bmod m, extended by zero off the unit group, Sw(χ)=∑x mod mμw(x)χ(x).S_w(\chi)=\sum_{x\bmod m}\mu_w(x)\chi(x). Thus the full ordinary-flux family recovers μw\mu_w exactly on the unit group and recovers nothing on nonunits. Explicitly, μw(x)=1φ(m)∑χ mod mSw(χ)χ(x)‾,x∈(Z/mZ)×.\mu_w(x)=\frac1{\varphi(m)} \sum_{\chi\bmod m}S_w(\chi)\overline{\chi(x)}, \qquad x\in(\mathbb{Z}/m\mathbb{Z})^{\times}. Two weights have the same ordinary fluxes exactly when their unit boundary derivatives agree Sw1(χ)=Sw2(χ) for all χ  ⟺  μw1(x)=μw2(x) for all x∈(Z/mZ)×.S_{w_1}(\chi)=S_{w_2}(\chi)\ \text{for all }\chi \iff \mu_{w_1}(x)=\mu_{w_2}(x)\ \text{for all }x\in(\mathbb{Z}/m\mathbb{Z})^{\times} . For a subfamily X\mathcal X, equality means ∑x∈(Z/mZ)×(μw1(x)−μw2(x))χ(x)=0(χ∈X).\sum_{x\in(\mathbb{Z}/m\mathbb{Z})^{\times}} \bigl(\mu_{w_1}(x)-\mu_{w_2}(x)\bigr)\chi(x)=0 \qquad(\chi\in\mathcal X). Under the usual Hermitian inner product, the unit-boundary difference is orthogonal to span{χˉ:χ∈X}\mathrm{span}\{\bar\chi:\chi\in\mathcal X\}.

Proof. Shifting the index in the first sum, Sw(χ)=∑xw(x−1)χ(x)−∑xw(x)χ(x)=∑x(w(x−1)−w(x))χ(x)=∑xμw(x)χ(x).\begin{aligned} S_w(\chi) &=\sum_x w(x-1)\chi(x)-\sum_x w(x)\chi(x) \\ &=\sum_x\bigl(w(x-1)-w(x)\bigr)\chi(x) =\sum_x\mu_w(x)\chi(x). \end{aligned} Characters vanish off (Z/mZ)×(\mathbb{Z}/m\mathbb{Z})^{\times}, so the sum sees only μw∣(Z/mZ)×\mu_w|_{(\mathbb{Z}/m\mathbb{Z})^{\times}}. The characters modulo mm form an orthogonal basis of functions on (Z/mZ)×(\mathbb{Z}/m\mathbb{Z})^{\times}, giving the stated determinacy and the subfamily orthogonality criterion. ◻

Corollary 25 (No unit boundary flux). If μw\mu_w is supported on nonunit residues, then Sw(χ)=0S_w(\chi)=0 for every Dirichlet character modulo mm. Consequently F^w(χ)=0\widehat F_w(\chi)=0 for every primitive character χ mod m\chi\bmod m. Imprimitive odd transforms are governed instead by the conductor-depth pairing and need not vanish.

Proof. Immediate from Theorem 24. The pairing sees only the unit part of μw\mu_w, which is zero. ◻

The limit of the corollary is already visible modulo 66. Let G={0,1}G=\{0,1\}. Then μG=−δ0+δ2,\mu_G=-\delta_0+\delta_2, so every ordinary Dirichlet flux vanishes. Let χ mod 6\chi\bmod6 be induced from the nontrivial character modulo 33, with χ(1)=1\chi(1)=1 and χ(5)=−1\chi(5)=-1. Directly, FG(a)=−s(2a),FG(1)=16,FG(5)=−16,F^G(χ)=13.F_G(a)=-s(2a), \qquad F_G(1)=\frac16, \qquad F_G(5)=-\frac16, \qquad \widehat F_G(\chi)=\frac13. The ordinary flux is zero, but the imprimitive odd transform is not.

The modulus-six example marks the limit exactly. Ordinary flux ignores nonunit endpoints, and primitive transforms inherit that loss through Theorem 19. An induced transform uses the conductor-depth pairing instead. It may retain an endpoint that survives at the inducing conductor.

The Base-Three Test Case

The nine-state example displays the whole mechanism before conductor depth enters.

Let b=3b=3, N=2N=2, m=9m=9. The lag-one collision diagonal is G={0≤n<9:⌊n/3⌋≡n (mod 3)}={0,4,8}.G=\{0\le n<9: \lfloor n/3\rfloor\equiv n\ (\mathrm{mod}\ 3)\}=\{0,4,8\}. This is the support already used in Example 3. Its visible signed boundary is μG=δ1−δ4+δ5−δ8.\mu_G=\delta_1-\delta_4+\delta_5-\delta_8. Let χ\chi be the primitive odd character modulo 99 with χ(2)=ζ6=e2πi/6\chi(2)=\zeta_6=e^{2\pi i/6}, so a124578χ(a)1ζ6ζ62ζ65ζ64−1a124578∑n∈Gca(n)122112FG(a)234323−23−43−23.\begin{array}{c|rrrrrr} a&1&2&4&5&7&8\\ \chi(a)&1&\zeta_6&\zeta_6^2&\zeta_6^5&\zeta_6^4&-1 \end{array} \qquad \begin{array}{c|rrrrrr} a&1&2&4&5&7&8\\ \textstyle\sum_{n\in G}c_a(n)&1&2&2&1&1&2\\[2pt] F_G(a)&\tfrac23&\tfrac43&\tfrac23&-\tfrac23&-\tfrac43&-\tfrac23. \end{array} A direct computation gives SG(χ)=3−i3,B1,χˉ=−1+i33,−B1,χˉSG(χ)=2−2i3,S_G(\chi)=3-i\sqrt3, \qquad B_{1,\bar\chi}=-1+\tfrac{i\sqrt3}{3}, \qquad -B_{1,\bar\chi}S_G(\chi)=2-2i\sqrt3, and independently F^G(χ)=∑a∈(Z/9Z)×FG(a)χˉ(a)=2−2i3\widehat F_G(\chi)=\sum_{a\in(\mathbb{Z}/9\mathbb{Z})^{\times}}F_G(a)\bar\chi(a)=2-2i\sqrt3. The carry table, the boundary flux, and the floor potential agree exactly on the nine-state system.

Collision Supports and the Three-Point Hierarchy

The leading-equals-trailing diagonal at lag ℓ\ell, level N=ℓ+1N=\ell+1, is Gℓ,b={ 0≤n<bℓ+1  :  ⌊n/bℓ⌋≡n ⁣ ⁣(modb) }.G_{\ell,b} = \bigl\{\,0\le n<b^{\ell+1}\;:\;\lfloor n/b^{\ell}\rfloor \equiv n \!\!\pmod b\,\bigr\}. Under the carry-boundary reduction, the distinguishing data of this diagonal are the signed endpoints of Gℓ,bG_{\ell,b}. The same reduction applies to any finite collection of digit equalities or inequalities.

Corollary 26 (Collision boundary factorization). For primitive odd χ mod bℓ+1\chi\bmod b^{\ell+1}, F^Gℓ,b(χ)=−B1,χˉSGℓ,b(χ)\widehat{F}_{G_{\ell,b}}(\chi)=-B_{1,\bar\chi}S_{G_{\ell,b}}(\chi). By Corollary 7 the intrinsic finite-prefix collision table has this same factorization, up to the endpoint normalization.

Proof. Apply Theorem 19 with w=1Gℓ,bw=\mathbf 1_{G_{\ell,b}} and use Corollaries 7 and 14. ◻

The three-point agreement support at level N=j+1N=j+1, Gi,j(3)={n:dig0(n)=digi(n)=digj(n)}G^{(3)}_{i,j}=\{n:\mathrm{dig}_0(n)=\mathrm{dig}_i(n)=\mathrm{dig}_j(n)\}, is the intersection of two diagonals, hence again digit-defined.

Corollary 27 (Three-point factorization). For primitive odd χ mod bj+1\chi\bmod b^{j+1}, F^Gi,j(3)(χ)=−B1,χˉSGi,j(3)(χ)\widehat{F}_{G^{(3)}_{i,j}}(\chi)=-B_{1,\bar\chi}S_{G^{(3)}_{i,j}}(\chi). The floor potential is identical to the two-point case; only the boundary ∂Gi,j(3)\partial G^{(3)}_{i,j} changes.

Proof. Theorem 19 with w=1Gi,j(3)w=\mathbf 1_{G^{(3)}_{i,j}} and Corollary 8. ◻

Remark 28 (A hierarchy by boundary, not by mechanism). Two-point and higher agreement supports share the same floor potential and differ only in boundary flux. The number of matching positions changes. The mechanism does not.

Conductor Stratification

A primitive transform keeps full residue resolution. It pairs the Bernoulli response with ordinary flux on the units. An induced transform first descends the sawtooth to its inducing conductor. Its depth weight records the endpoints that survive.

Definition 29 (Conductor depth weight). Let pp be prime, N≥1N\ge1, and let χ mod pN\chi\bmod p^N be induced by a primitive χ∗ mod pt\chi^\ast\bmod p^t, with 1≤t≤N1\le t\le N. Only positive conductor levels are needed. The principal character at t=0t=0 is even and does not enter the odd decompositions. For k≢0(modpN)k\not\equiv0\pmod{p^N} write k=pvuk=p^v u with v=vp(k)v=v_p(k) and p∤up\nmid u. The conductor depth weight is ηχ(k)={pvχ∗(u),k=pvu, p∤u, 0≤v≤N−t,0,k≡0 (mod pN) or v>N−t.\eta_{\chi}(k)= \begin{cases} p^v\chi^\ast(u), & k=p^v u,\ p\nmid u,\ 0\le v\le N-t,\\[2pt] 0, & k\equiv0\ (\mathrm{mod}\ p^N)\text{ or }v>N-t. \end{cases}

The power of pp in an endpoint records how far that endpoint survives under this loss of resolution.

Theorem 30 (Conductor-stratified twisted sawtooth). With p,N,χ,χ∗,tp,N,\chi,\chi^\ast,t as above and sNs_N the sawtooth modulo pNp^N, ∑a mod pNsN(ka) χ(a)‾=B1,χ∗‾ ηχ(k)(k∈Z/pNZ).\sum_{a\bmod p^N}s_N(ka)\,\overline{\chi(a)} =B_{1,\overline{\chi^\ast}}\,\eta_\chi(k) \qquad(k\in\mathbb{Z}/p^N\mathbb{Z}). For primitive χ\chi this is Lemma 18.

Proof. If k≡0(modpN)k\equiv0\pmod{p^N}, both sides vanish. Now write k=pvuk=p^v u with p∤up\nmid u. For v≤N−tv\le N-t, write units modulo pNp^N as a=a0+ptℓa=a_0+p^t\ell with a0∈(Z/ptZ)×a_0\in(\mathbb{Z}/p^t\mathbb{Z})^{\times}, and put M=N−vM=N-v. Since sN(pvx)=sM(x)s_N(p^v x)=s_M(x), the pN−tp^{N-t} lifts of a0a_0 reduce to pM−tp^{M-t} lower-level fibers, each repeated pvp^v times. The factor pvp^v comes from that multiplicity. Applying ∑j=0pM−t−1sM(A+ptj)=st(A)\sum_{j=0}^{p^{M-t}-1}s_M(A+p^t j)=s_t(A) for p∤Ap\nmid A gives ∑asN(ka)χ(a)‾=pv∑a0∈(Z/ptZ)×st(ua0)χ∗(a0)‾=pvχ∗(u)B1,χ∗‾,\sum_{a}s_N(ka)\overline{\chi(a)} =p^v\sum_{a_0\in(\mathbb{Z}/p^t\mathbb{Z})^{\times}}s_t(ua_0)\overline{\chi^\ast(a_0)} =p^v\chi^\ast(u)B_{1,\overline{\chi^\ast}}, by Lemma 16 at conductor ptp^t. For v>N−tv>N-t, the inner sawtooth depends only on a0 mod pN−va_0\bmod p^{N-v} with N−v<tN-v<t; since χ∗\chi^\ast is primitive modulo ptp^t, its sum over each fiber vanishes. ◻

Theorem 31 (Conductor-stratified factorization). With notation as above, for every weight w:Z/pNZ→Cw:\mathbb{Z}/p^N\mathbb{Z}\to\mathbb{C}, F^w(χ)=− B1,χ∗‾∑n mod pNw(n)(ηχ(n+1)−ηχ(n)),=− B1,χ∗‾∑x mod pNμw(x)ηχ(x).\begin{aligned} \widehat F_w(\chi) &=-\,B_{1,\overline{\chi^\ast}} \sum_{n\bmod p^N}w(n) \bigl(\eta_\chi(n+1)-\eta_\chi(n)\bigr),\\ &=-\,B_{1,\overline{\chi^\ast}} \sum_{x\bmod p^N}\mu_w(x)\eta_\chi(x). \end{aligned} Lower-conductor odd transforms pair the same boundary derivative with endpoints weighted by conductor depth.

Proof. Expand F^w(χ)\widehat F_w(\chi) and apply Theorem 30 to k=n+1k=n+1 and k=nk=n. Shifting the first finite sum gives ∑nw(n)(ηχ(n+1)−ηχ(n))=∑x(w(x−1)−w(x))ηχ(x),\sum_n w(n)\bigl(\eta_\chi(n+1)-\eta_\chi(n)\bigr) =\sum_x\bigl(w(x-1)-w(x)\bigr)\eta_\chi(x), which is the boundary-chain form. ◻

This pairing is not the ordinary flux Sw(χ)=∑xμw(x)χ(x).S_w(\chi)=\sum_x\mu_w(x)\chi(x). The character χ\chi vanishes on nonunits. The weight ηχ\eta_\chi may retain an endpoint that survives conductor descent. The modulus-six example is the smallest instance of the difference.

A support lifted to a higher prime-power level becomes invisible to primitive characters there because dilation pushes every endpoint onto a nonunit.

Theorem 32 (Primitive higher-conductor invisibility of a lifted support). Let pp be an odd prime, 1≤K≤N1\le K\le N, and s=N−Ks=N-K. Let H⊆{0,…,pK−1}H\subseteq\{0,\dots,p^K-1\} and let G={psu+v: u∈H, 0≤v<ps}.G=\{p^s u+v:\ u\in H,\ 0\le v<p^s\}. Write ιs:Z/pKZ⟶Z/pNZ,ιs(x)=psx.\iota_s:\mathbb{Z}/p^K\mathbb{Z}\longrightarrow\mathbb{Z}/p^N\mathbb{Z}, \qquad \iota_s(x)=p^s x. Then the signed boundary chain of GG is the pushforward μG=(ιs)∗μH.\mu_G=(\iota_s)_*\mu_H. If s>0s>0, every point in the support of μG\mu_G is divisible by pp. Consequently SG(χ)=0S_G(\chi)=0 for every primitive character χ mod pN\chi\bmod p^N.

Proof. An interval [α,β][\alpha,\beta] of HH lifts to [psα, ps(β+1)−1].[p^s\alpha,\ p^s(\beta+1)-1]. Its left endpoint becomes psαp^s\alpha, and its post-right endpoint becomes ps(β+1)p^s(\beta+1), with the same signs. Summing over the maximal intervals gives μG=(ιs)∗μH\mu_G=(\iota_s)_*\mu_H. When s>0s>0, every lifted endpoint is a nonunit modulo pNp^N. Corollary 25 then gives SG(χ)=0S_G(\chi)=0. ◻

The theorem says that a support lifted from level pKp^K cannot acquire primitive visibility above pKp^K. Visibility at pKp^K itself requires a nonzero primitive component of μH\mu_H there. The terminal collision support has such a component by Theorem 36.

Lift the nine-state support H={0,4,8}H=\{0,4,8\} from modulus 99 to modulus 2727. The lifted support is {0,1,2} ∪ {12,13,14} ∪ {24,25,26}.\{0,1,2\}\ \cup\ \{12,13,14\}\ \cup\ \{24,25,26\}. Every surviving endpoint is divisible by 33. Primitive characters modulo 2727 therefore see no boundary, while the original boundary remains visible at its native modulus 99.

Corollary 33 (Leading-lag conductor stratification). Let pp be an odd prime, N≥2N\ge2, 1≤ℓ≤N−11\le\ell\le N-1, k=ℓ+1k=\ell+1, s=N−ks=N-k. The leading-lag collision support GN,ℓ⊆{0,…,pN−1}G_{N,\ell}\subseteq\{0,\dots,p^N-1\} is defined by equality of the first digit and digit ℓ+1\ell+1. It is the prefix pullback of the terminal collision support HkH_k at level kk. If s>0s>0, then SGN,ℓ(χ)=0S_{G_{N,\ell}}(\chi)=0 for every primitive χ mod pN\chi\bmod p^N. At conductor pkp^k, the support HkH_k obeys the boundary mean law of §10. Thus a leading-lag collision is visible at the conductor of the last digit it uses and invisible to higher primitive conductors.

Proof. The defining relation uses only the first kk digits, so GN,ℓG_{N,\ell} is the pullback of HkH_k and Theorem 32 applies with this ss. The native-conductor statement is Theorem 36 at level kk. ◻

For terminal collisions, the source conductor identifies where the primitive boundary is visible. The mean law measures the size of what survives there.

The Boundary Mean Law

Two conditions give the exact second moment. Conductor balance removes the lower-resolution terms. Antipodal oddness makes the top reflection add rather than cancel. The criterion applies to any boundary weight with both properties.

For a signed boundary weight μ\mu, write Sμ(χ)=∑x mod mμ(x)χ(x).S_\mu(\chi)=\sum_{x\bmod m}\mu(x)\chi(x). When μ=μw\mu=\mu_w is the boundary derivative of ww, this agrees with the flux notation Sw(χ)S_w(\chi) above.

Definition 34 (Mean-admissible weight). Let pp be an odd prime, N≥2N\ge2, m=pNm=p^N. A weight μ:Z/mZ→C\mu:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C} supported on unit residues is mean-admissible if

  1. (conductor balance) for every unit r mod pN−1r\bmod p^{N-1}, ∑x≡r (pN−1)μ(x)=0\sum_{x\equiv r\,(p^{N-1})}\mu(x)=0;

  2. (antipodal oddness) μ(−x)=−μ(x)\mu(-x)=-\mu(x) for every unit xx.

Theorem 35 (Boundary Mean Criterion). Let pp be an odd prime, N≥2N\ge2, m=pNm=p^N, and let μ\mu be mean-admissible with U=∑x∈(Z/mZ)×∣μ(x)∣2U=\sum_{x\in(\mathbb{Z}/m\mathbb{Z})^{\times}}|\mu(x)|^2. Then ∑χmodpNprimitive odd∣Sμ(χ)∣2=φ(pN) U,1npo∑χmodpNprimitive odd∣Sμ(χ)∣2=2pp−1 U,\sum_{\substack{\chi\bmod p^N\\ \mathrm{primitive\ odd}}} |S_\mu(\chi)|^2 =\varphi(p^N)\,U, \qquad \frac1{n_{\mathrm{po}}}\sum_{\substack{\chi\bmod p^N\\ \mathrm{primitive\ odd}}} |S_\mu(\chi)|^2=\frac{2p}{p-1}\,U, where npo=12(φ(pN)−φ(pN−1))n_{\mathrm{po}}=\tfrac12(\varphi(p^N)-\varphi(p^{N-1})).

Proof. For units x,yx,y, the primitive-odd kernel is ∑χmodpNprim oddχ(x)χ(y)‾=φ(pN)2(1x≡y (pN)−1x≡−y (pN))−φ(pN−1)2(1x≡y (pN−1)−1x≡−y (pN−1)),\begin{aligned} \sum_{\substack{\chi\bmod p^N\\ \mathrm{prim\ odd}}} \chi(x)\overline{\chi(y)} &=\tfrac{\varphi(p^N)}{2} \bigl(1_{x\equiv y\,(p^N)}-1_{x\equiv -y\,(p^N)}\bigr) \\ &\quad -\tfrac{\varphi(p^{N-1})}{2} \bigl(1_{x\equiv y\,(p^{N-1})} -1_{x\equiv -y\,(p^{N-1})}\bigr), \end{aligned} the odd part of the conductor-exact Dirichlet kernel. Expand the second moment against this kernel. Condition (i) kills both terms at conductor pN−1p^{N-1}. At conductor pNp^N, the diagonal contributes UU. Condition (ii) makes the antipodal contribution −U-U. Hence φ(pN)2(U−(−U))=φ(pN)U.\frac{\varphi(p^N)}2\bigl(U-(-U)\bigr)=\varphi(p^N)U. Finally, npo=pN−2(p−1)2/2n_{\mathrm{po}}=p^{N-2}(p-1)^2/2, and division by npon_{\mathrm{po}} gives φ(pN)/npo=2p/(p−1)\varphi(p^N)/n_{\mathrm{po}}=2p/(p-1). ◻

The terminal collision boundary satisfies both conditions for a concrete reason. Every coarse unit class receives one entrance and one exit, and negation exchanges entrances with exits.

Theorem 36 (Boundary Mean Law for terminal collisions). Let pp be an odd prime, N≥2N\ge2, and m=pNm=p^N. Write each residue with its padded NN-digit base-pp expansion, and let GN={0≤n<m: first and last digits agree}G_N=\{0\le n<m:\text{ first and last digits agree}\} be the terminal collision diagonal. Let μN\mu_N be the signed boundary chain ∂GN\partial G_N restricted to (Z/pNZ)×(\mathbb{Z}/p^N\mathbb{Z})^{\times}. Then ∣∂formGN∣=2pN−1|\partial_{\mathrm{form}}G_N|=2p^{N-1}, the unit boundary norm is U=2pN−2(p−1)=p−1p∣∂formGN∣U=2p^{N-2}(p-1)=\tfrac{p-1}{p}|\partial_{\mathrm{form}}G_N|, and 1npo∑χmodpNprimitive odd∣SμN(χ)∣2=2 ∣∂formGN∣.\frac1{n_{\mathrm{po}}} \sum_{\substack{\chi\bmod p^N\\ \mathrm{primitive\ odd}}}|S_{\mu_N}(\chi)|^2 =2\,|\partial_{\mathrm{form}}G_N|. Equivalently, the primitive-odd flux has root-mean-square value 2∣∂formGN∣.\sqrt{2|\partial_{\mathrm{form}}G_N|}.

Proof. A point of GNG_N is n=apN−1+py+an=ap^{N-1}+py+a with 0≤a≤p−10\le a\le p-1 and 0≤y<pN−20\le y<p^{N-2}. Each point is a singleton interval. Its left endpoint is La,y=apN−1+py+aL_{a,y}=ap^{N-1}+py+a with sign −-, and its right endpoint is Ra,y=La,y+1R_{a,y}=L_{a,y}+1 with sign ++. There are pN−1p^{N-1} singletons, so ∣∂formGN∣=2pN−1|\partial_{\mathrm{form}}G_N|=2p^{N-1} (Definition 12). Modulo pp one has La,y≡aL_{a,y}\equiv a and Ra,y≡a+1R_{a,y}\equiv a+1, so the unit endpoints are the La,yL_{a,y} with a≠0a\ne0 and the Ra,yR_{a,y} with a≠p−1a\ne p-1, giving U=2pN−2(p−1)=p−1p∣∂formGN∣U=2p^{N-2}(p-1)=\frac{p-1}{p}|\partial_{\mathrm{form}}G_N|.

We verify the two conditions for μN\mu_N. Modulo pN−1p^{N-1}, every unit residue has the form c+pyc+py with 1≤c≤p−11\le c\le p-1. It receives one negative endpoint Lc,yL_{c,y} and one positive endpoint Rc−1,yR_{c-1,y}. Their signed mass is zero, which gives conductor balance. Negation sends −La,y≡Rp−1−a, pN−2−1−y(modpN),-L_{a,y}\equiv R_{p-1-a,\ p^{N-2}-1-y}\pmod{p^N}, exchanging unit endpoints with opposite signs. This gives antipodal oddness. The Boundary Mean Criterion now gives the moment φ(pN)U\varphi(p^N)U, and 1npoφ(pN)U=2pp−1⋅p−1p ∣∂formGN∣=2 ∣∂formGN∣.\frac1{n_{\mathrm{po}}}\varphi(p^N)U =\frac{2p}{p-1}\cdot\frac{p-1}{p}\,|\partial_{\mathrm{form}}G_N| =2\,|\partial_{\mathrm{form}}G_N|. ◻

For the nine-state example, the formal boundary has size 66 and the visible unit boundary has squared norm 44. There are two primitive odd characters modulo 99, and each has squared flux magnitude 1212. Their mean is therefore 1212, exactly twice the formal boundary size.

Prime powers close because the lower fibers balance. For a general modulus, each divisor can retain part of the boundary, so the second moment becomes a signed ledger over conductors.

The conductor-exact kernel used below is standard character orthogonality followed by Möbius inversion and odd projection  [12, 13]. Its application to the signed digit boundary produces the ledger.

Theorem 37 (Conductor ledger identity). Let m≥3m\ge3, μ:Z/mZ→C\mu:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C}, and Sμ(χ)=∑xμ(x)χ(x)S_\mu(\chi)=\sum_x\mu(x)\chi(x). For each d∣md\mid m define the unit pushdown Md(r)=∑x∈(Z/mZ)×, x≡r (d)μ(x)M_d(r)=\sum_{x\in(\mathbb{Z}/m\mathbb{Z})^{\times},\ x\equiv r\,(d)}\mu(x) for r∈(Z/dZ)×r\in(\mathbb{Z}/d\mathbb{Z})^{\times}. For d=1d=1, (Z/1Z)×(\mathbb{Z}/1\mathbb{Z})^{\times} is understood as the trivial group. Then ∑χmodmprimitive odd∣Sμ(χ)∣2=12∑d∣mμMob(m/d)φ(d)⋅(∑r∈(Z/dZ)×∣Md(r)∣2−∑r∈(Z/dZ)×Md(r)Md(−r)‾).\begin{aligned} \sum_{\substack{\chi\bmod m\\ \mathrm{primitive\ odd}}}|S_\mu(\chi)|^2 &=\frac12\sum_{d\mid m}\mu_{\mathrm{Mob}}(m/d)\varphi(d) \\ &\quad\cdot \left( \sum_{r\in(\mathbb{Z}/d\mathbb{Z})^{\times}}|M_d(r)|^2 -\sum_{r\in(\mathbb{Z}/d\mathbb{Z})^{\times}}M_d(r)\overline{M_d(-r)} \right). \end{aligned}

Proof. Only units contribute. Expand the second moment and apply the primitive-odd kernel ∑χmodmprim oddχ(x)χ(y)‾=12∑d∣mμMob(m/d)φ(d)(1x≡y (d)−1x≡−y (d)),\sum_{\substack{\chi\bmod m\\ \mathrm{prim\ odd}}}\chi(x)\overline{\chi(y)} =\tfrac12\sum_{d\mid m}\mu_{\mathrm{Mob}}(m/d)\varphi(d) \bigl(1_{x\equiv y\,(d)}-1_{x\equiv -y\,(d)}\bigr), obtained by Möbius inversion of orthogonality over conductors followed by the odd projection χ↦12(χ(x)−χ(−x))\chi\mapsto\tfrac12(\chi(x)-\chi(-x)). Grouping x,yx,y by common residue modulo dd gives the diagonal ∑r∣Md(r)∣2\sum_r|M_d(r)|^2 and the antipodal ∑rMd(r)Md(−r)‾\sum_r M_d(r)\overline{M_d(-r)}. ◻

The bracket in the ledger is nonnegative. Pairing rr with −r-r writes it as 12∑r∣Md(r)−Md(−r)∣2\tfrac12\sum_r|M_d(r)-M_d(-r)|^2, so only the odd part of a pushdown enters. The Möbius coefficients can have either sign. This is an inclusion-exclusion formula for the primitive-odd flux moment. The nonnegative energy sum in Section 11 instead groups squared carry coefficients by their source conductors.

Corollary 38 (Proper-conductor leakage). If every proper pushdown MdM_d (d∣md\mid m, d<md<m) vanishes and μ\mu is antipodally odd on (Z/mZ)×(\mathbb{Z}/m\mathbb{Z})^{\times}, then ∑po∣Sμ(χ)∣2=φ(m)∑x∈(Z/mZ)×∣μ(x)∣2.\sum_{\mathrm{po}}|S_\mu(\chi)|^2 =\varphi(m)\sum_{x\in(\mathbb{Z}/m\mathbb{Z})^{\times}}|\mu(x)|^2. Only divisors with nonzero Möbius coefficient enter the ledger. Call them ledger-active. Vanishing of every proper pushdown is sufficient for the top-conductor mean. A nonzero pushdown at a proper ledger-active divisor is a leakage term.

Proof. Vanishing proper pushdowns leave only d=md=m in the ledger, where the diagonal is UU and antipodal oddness gives −U-U. ◻

Base 1515 shows the failure explicitly. The top-level symmetry survives, but two lower conductors still carry boundary mass.

Proposition 39 (Composite obstruction). In base 1515 at level N=2N=2, let m=225m=225 and G={n<225: first and last base-15 digits agree}.G=\bigl\{n<225:\text{ first and last base-}15\text{ digits agree}\bigr\}. The signed boundary of GG has nonzero proper-conductor pushdowns modulo 4545 and 7575. The primitive-odd mean at conductor 225225 is 2828, while 2∣∂formG∣=60.2|\partial_{\mathrm{form}}G|=60.

Proof. The diagonal consists of the fifteen singletons {16a},0≤a≤14.\{16a\}, \qquad 0\le a\le14. Thus μG\mu_G has mass −1-1 at La=16aL_a=16a and mass +1+1 at Ra=16a+1R_a=16a+1, and ∣∂formG∣=30|\partial_{\mathrm{form}}G|=30. Negation sends LaL_a to R14−aR_{14-a} modulo 225225, so the unit-restricted chain is antipodally odd.

The ledger-active divisors are 1515, 4545, 7575, and 225225. Modulo 1515 one has 16≡116\equiv1, so each unit entrance LcL_c cancels the unit exit Rc−1R_{c-1} in the same residue class and M15=0M_{15}=0. The proper pushdowns at 4545 and 7575 are nonzero already at the residue 11, since M45(1)=M75(1)=1.M_{45}(1)=M_{75}(1)=1. Writing Dd=∑r∈(Z/dZ)×∣Md(r)∣2D_d=\sum_{r\in(\mathbb{Z}/d\mathbb{Z})^{\times}}|M_d(r)|^2 and Ad=∑r∈(Z/dZ)×Md(r)Md(−r)‾A_d=\sum_{r\in(\mathbb{Z}/d\mathbb{Z})^{\times}}M_d(r)\overline{M_d(-r)}, exact reduction of the thirty signed endpoints gives d154575225μMob(225/d)+1−1−1+1φ(d)82440120Dd−Ad0323232\begin{array}{c|cccc} d & 15 & 45 & 75 & 225\\ \mu_{\mathrm{Mob}}(225/d) & +1 & -1 & -1 & +1\\[2pt] \varphi(d) & 8 & 24 & 40 & 120\\[2pt] D_d-A_d & 0 & 32 & 32 & 32 \end{array} At each of d=45,75,225d=45,75,225, one has 16−1≡−14(modd)16^{-1}\equiv-14\pmod d. Same-sign endpoints are distinct. A cross-sign collision would require a−b=−14a-b=-14, which pairs only L0L_0 with R14R_{14}. Those are the excluded nonunit endpoints at residue 00. The sixteen unit endpoints therefore remain distinct, each with value 11 or −1-1. Antipodal oddness gives Dd=16D_d=16 and Ad=−16A_d=-16, which explains the value 3232 directly. Theorem 37 now gives ∑χmod225 primitive odd∣SμG(χ)∣2=12(120⋅32−40⋅32−24⋅32+8⋅0)=896.\sum_{\substack{\chi\bmod225\ \mathrm{primitive\ odd}}}|S_{\mu_G}(\chi)|^2 =\frac12\bigl(120\cdot32-40\cdot32-24\cdot32+8\cdot0\bigr)=896. There are npo=32n_{\mathrm{po}}=32 primitive odd characters modulo 225225, so the primitive-odd mean is 896/32=28896/32=28. The top-conductor term alone would give 60=2∣∂formG∣60=2|\partial_{\mathrm{form}}G|. The leakage terms at 4545 and 7575 lower that value by 3232, so the prime-power identity fails. ◻

Dividing the four ledger contributions by the character population makes the base-1515 calculation especially transparent. The conductor-225225 term contributes 6060, the conductor-7575 term contributes −20-20, the conductor-4545 term contributes −12-12, and the conductor-1515 term is zero. Thus the mean is 60−20−12=2860-20-12=28. The two negative entries remove lower-conductor content when the primitive family is isolated; they are not negative spectral energies.

Remark 40 (Exact finite checks). Exact calculations in nfield [1] corroborate the terminal boundary identities for p∈{3,5,7,11}p\in\{3,5,7,11\} and N∈{2,3}N\in\{2,3\}. Every case returns the predicted primitive-odd mean 4pN−1=2∣∂formGN∣.4p^{N-1}=2|\partial_{\mathrm{form}}G_N|. The base-1515 ledger also returns mean 2828 modulo 225225, together with the stated conductor contributions, total moment, and primitive-odd character count. The preceding theorems establish the identities for their stated domains. The nfield calculations corroborate the declared finite cases.

Corollary 41 (Composite leakage). The second-moment boundary mean law holds for terminal collision diagonals at odd prime-power conductors of depth at least two (Theorem 36) and can fail at composite conductors (Proposition 39). The conductor ledger identifies every leakage term. Vanishing of all proper pushdowns is sufficient for the top-conductor mean. Base 1515 shows how surviving leakage changes it.

Proof. Combine the prime-power mean law with the conductor ledger and the explicit base-1515 computation of Proposition 39. ◻

The Quadratic Edge

Theorem 19 concerns linear observables. The natural quadratic invariant is the energy on the unit group, E(Fw)=∑a∈(Z/mZ)×∣Fw(a)∣2=1φ(m)∑χ mod m∣F^w(χ)∣2,E(F_w)=\sum_{a\in(\mathbb{Z}/m\mathbb{Z})^{\times}}|F_w(a)|^2 =\frac{1}{\varphi(m)}\sum_{\chi\bmod m}|\widehat F_w(\chi)|^2, which is Parseval on (Z/mZ)×(\mathbb{Z}/m\mathbb{Z})^{\times}.

For a primitive character, the transform is its floor potential times its ordinary boundary flux. For an induced character, Theorem 31 replaces that flux with the depth-weighted boundary pairing at prime powers. Energy sums their squared magnitudes by conductor. This finite identity specifies the energy at each fixed modulus. Its growth as the base or depth increases requires estimates for the resulting boundary moments and sawtooth correlations.

Theorem 42 (Prime-power energy decomposition). Let pp be prime, let N≥1N\ge1, let m=pNm=p^N, and let w:Z/mZ→Cw:\mathbb{Z}/m\mathbb{Z}\to\mathbb{C}. Then E(Fw)=1φ(pN)∑t=1N∑χ∗modptprimitive odd∣B1,χ∗‾∣2∣∑n mod pNw(n)(ηχ(n+1)−ηχ(n))∣2,E(F_w) =\frac{1}{\varphi(p^N)} \sum_{t=1}^{N} \sum_{\substack{\chi^\ast\bmod p^t\\ \mathrm{primitive\ odd}}} \bigl|B_{1,\overline{\chi^\ast}}\bigr|^2 \left|\sum_{n\bmod p^N}w(n) \bigl(\eta_\chi(n+1)-\eta_\chi(n)\bigr)\right|^2, where χ\chi is the character modulo pNp^N induced by χ∗\chi^\ast.

Proof. Parseval and the identity Fw(−a)=−Fw(a)F_w(-a)=-F_w(a) show that only odd characters contribute. Every odd character modulo pNp^N is induced by a unique primitive odd character χ∗ mod pt\chi^\ast\bmod p^t for some 1≤t≤N1\le t\le N. Theorem 31 gives the corresponding coefficient. Substitution into Parseval gives the formula. ◻

For the base-nine table, the six centered carry values have total square mass 16/316/3. The two primitive odd Fourier coefficients each have square magnitude 1616, while the induced odd channel vanishes. Parseval gives 32/6=16/332/6=16/3.

Remark 43 (The quadratic layer). The signed boundary representation gives Fw(a)=−∑x mod mμw(x)s(xa).F_w(a)=-\sum_{x\bmod m}\mu_w(x)s(xa). Consequently E(Fw)=∑x,y mod mμw(x)μw(y)‾∑a∈(Z/mZ)×s(xa)s(ya).E(F_w) =\sum_{x,y\bmod m}\mu_w(x)\overline{\mu_w(y)} \sum_{a\in(\mathbb{Z}/m\mathbb{Z})^{\times}}s(xa)s(ya). The inner expressions are finite sawtooth correlations over the unit group. For q≥2q\ge2, write sq(r)={r/q−1/2,1≤r<q,0,r=0,s(h,q)=∑r mod qsq(r)sq(hr),s_q(r)= \begin{cases} r/q-1/2,&1\le r<q,\\ 0,&r=0, \end{cases} \qquad \mathfrak s(h,q)=\sum_{r\bmod q}s_q(r)s_q(hr), and set s(h,1)=0\mathfrak s(h,1)=0. If x,y∈(Z/mZ)×x,y\in(\mathbb{Z}/m\mathbb{Z})^{\times} and h≡yx−1(modm)h\equiv yx^{-1}\pmod m, Möbius inversion of the unit condition gives ∑a∈(Z/mZ)×sm(xa)sm(ya)=∑d∣mμMob(d) s(h,m/d).\sum_{a\in(\mathbb{Z}/m\mathbb{Z})^{\times}}s_m(xa)s_m(ya) =\sum_{d\mid m}\mu_{\mathrm{Mob}}(d)\, \mathfrak s(h,m/d). Multiplication by xx first turns the unit variable into u=xau=xa. Inserting 1(u,m)=1=∑d∣(u,m)μMob(d)1_{(u,m)=1}=\sum_{d\mid(u,m)}\mu_{\mathrm{Mob}}(d), writing u=dru=dr, and using sm(dr)=sm/d(r)s_m(dr)=s_{m/d}(r) gives the formula. Thus every unit-index correlation is a finite linear combination of classical Dedekind sums [15, 16, 17]. For prime-power mm, Theorem 31 accounts for the nonunit terms on the character side.

For a primitive odd character χ mod m\chi\bmod m, the standard functional equation [9] gives the exact magnitude relation ∣B1,χˉ∣=mπ∣L(1,χ)∣.|B_{1,\bar\chi}|=\frac{\sqrt m}{\pi}|L(1,\chi)|. The primitive part of the energy is therefore a boundary-weighted second moment of the values L(1,χ)L(1,\chi) at one. At prime depth two with the collision indicator, it is the primitive summand obtained directly from the carry-boundary factorization above.

The Surviving Boundary

The digit rule creates a signed boundary chain μw\mu_w, and Sw(χ)=⟨χ,μw⟩S_w(\chi)=\langle\chi,\mu_w\rangle reads that chain on the unit group. Telescoping removes the interior cell differences. The remaining flux is a finite incomplete character sum over a structured support [12].

A nonunit cell can still create a neighboring unit endpoint. Ordinary fluxes and primitive transforms see the boundary on units. Induced transforms may retain nonunit endpoints through conductor depth. Two supports have the same ordinary fluxes exactly when their unit boundary derivatives agree.

The terminal prime-power boundary has the required unit norm, reverses under negation, and cancels at its only ledger-active lower conductor. Hence 1npo∑∣SG(χ)∣2=2∣∂formG∣.\frac1{n_{\mathrm{po}}}\sum |S_G(\chi)|^2 =2|\partial_{\mathrm{form}}G|. Base 1515 preserves the reflection but not the lower-conductor cancellation. Its proper pushdowns survive and change the mean. The ledger identifies exactly which terms prevent the prime-power collapse.

Beyond Finite Windows

A finite-prefix rule already closes on a carry boundary. The analysis stops at that boundary. Whole-orbit statistics, recurrences, complete repetends, and products of reduced carry observables require a separately specified region and are not consequences of the finite-prefix theorem.

For three-point and higher agreements, the support changes but the factorization is ready. The open question is whether the prime-power mean law persists.

For composite moduli, any mean law must retain the proper pushdowns exposed by the exact conductor ledger.

The classical machinery and the digit-specific contribution are now separate. The floor creates the odd sawtooth and its generalized Bernoulli response. A digit rule marks a finite region. Interior differences cancel. Ordinary unit-boundary fluxes and conductor-depth pairings read what remains. The digit pattern supplies the region, but the transform sees its edge. That signed carry boundary is the part of long division that survives.

References

[1]A. S. Petty, nfield, software repository, https://github.com/alexspetty/nfield.

[2]A. Lempel and H. Greenberger, Families of sequences with optimal Hamming-correlation properties, IEEE Trans. Inform. Theory 20 (1974), no. 1, 90–94, doi:10.1109/TIT.1974.1055169.

[3]S. C. Kak and A. Chatterjee, On decimal sequences, IEEE Trans. Inform. Theory 27 (1981), no. 5, 647–652, doi:10.1109/TIT.1981.1056394.

[4]K. Girstmair, The digits of 1/p1/p in connection with class number factors, Acta Arith. 67 (1994), no. 4, 381–386, doi:10.4064/aa-67-4-381-386.

[5]K. Girstmair, Digit variance and Dedekind sums, J. Number Theory 65 (1997), no. 2, 197–205, doi:10.1006/jnth.1997.2149.

[6]M. R. Murty and R. Thangadurai, The class number of Q(−p)\mathbb Q(\sqrt{-p}) and digits of 1/p1/p, Proc. Amer. Math. Soc. 139 (2011), no. 4, 1277–1289, doi:10.1090/S0002-9939-2010-10560-9.

[7]S. Pujahari and N. Saikia, ℓ\ell-adic digits and class numbers of imaginary quadratic fields, Internat. J. Math. 35 (2024), no. 11, article 2450041, doi:10.1142/S0129167X24500411.

[8]K. Girstmair, On the variance of the digits of 1/p1/p, Ramanujan J. 70 (2026), no. 2, article 27, doi:10.1007/s11139-026-01406-5.

[9]H. Davenport, Multiplicative Number Theory, 3rd ed., revised by H. L. Montgomery, Graduate Texts in Mathematics 74, Springer, 2000.

[10]T. M. Apostol, Introduction to Analytic Number Theory, Undergraduate Texts in Mathematics, Springer, 1976.

[11]L. C. Washington, Introduction to Cyclotomic Fields, Graduate Texts in Mathematics 83, Springer, 2nd ed., 1997.

[12]H. L. Montgomery and R. C. Vaughan, Multiplicative Number Theory I. Classical Theory, Cambridge Studies in Advanced Mathematics 97, Cambridge University Press, 2007.

[13]H. Iwaniec and E. Kowalski, Analytic Number Theory, American Mathematical Society Colloquium Publications 53, American Mathematical Society, 2004.

[14]W. D. Banks, A. Conflitti, and I. E. Shparlinski, Character sums over integers with restricted gg-ary digits, Illinois J. Math. 46 (2002), no. 3, 819–836, doi:10.1215/ijm/1258130986.

[15]H. Rademacher and E. Grosswald, Dedekind Sums, Carus Mathematical Monographs 16, Mathematical Association of America, 1972.

[16]T. M. Apostol, Modular Functions and Dirichlet Series in Number Theory, Graduate Texts in Mathematics 41, Springer, 2nd ed., 1990.

[17]B. C. Berndt, Reciprocity theorems for Dedekind sums and generalizations, Advances in Mathematics 23 (1977), 285–316.