Carry Boundaries and Bernoulli Spectra in Long Division
Cite this paper
A. S. Petty, Carry Boundaries and Bernoulli Spectra in Long Division, DOI: 10.5281/zenodo.20451178.
Abstract
Fix a base and a prefix length . A weight on the digit cylinders defines a count over all numerators . We prove that, after removal of its bulk and terminal endpoint, this count is an exact carry table indexed by . At every primitive odd Dirichlet character its Fourier coefficient factors as 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 , with , conductor balance and antipodal oddness give At base , proper-conductor boundary mass survives and changes the mean from to , 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.
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 and a modulus coprime to . For , let denote its representative in . Long division is governed by 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 , independent of the digit rule. The rule marks a finite region. Interior differences cancel, leaving its signed boundary. Each primitive odd transform is Every rule on the first 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 -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 and permits an arbitrary weight on its first 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 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- 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 , 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 let the digits be the greedy long-division digits The readout after remainder steps is the -st digit, Hence an observable built from readouts at lags depends on only through .
Proof. Write Then and The last two integers are congruent modulo , while the first lies in . It is therefore the residue modulo of . The base- expansion of that integer shows that this residue is . ◻
At level , the first digits form the single cell index . Counting digit words is therefore the same as counting how often that index enters each marked cell.
Proposition 2 (Finite-prefix slice identity). Let , let , and let with , , and . Define the finite-prefix weighted count and the carry sum Then and therefore The right side is the centered weighted carry count attached to the residue .
Proof. The condition is equivalent to . For the number of admissible numerators in this half-open interval is For , the formula also removes the excluded endpoint . Every other lower endpoint is nonintegral because . At , the interval ends at , but the count uses . Removing that endpoint subtracts . Multiplying by and summing gives the first identity. Substituting gives the second. ◻
Example 3 (A nine-state slice). Take , , and mark the two-digit words whose digits agree. Then and . For , the first two digits agree exactly for the four numerators since lies in exactly at those values. At the residue , the marked cells contribute two carries, so the slice identity reads The intrinsic digit count has separated into its bulk, its carry count, and its terminal endpoint.
Remark 4. After removing the bulk and the terminal endpoint, the count depends only on . 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 , , , and let be any set of length- digit words. Put where are the padded base- digits of from most significant to least significant. For with , , and , let Then , and hence Every finite-prefix digit relation with is therefore a carry-boundary observable, up to the standard endpoint normalization.
Proof. For set . Since , the base- digits of are exactly the first long-division digits . Hence the digit word of lies in exactly when . This gives . Since , the conditions and are equivalent. Proposition 2 with gives the centered identity. ◻
Corollary 6 (Weighted cylinder reduction). Let be a finite-prefix digit observable and set . Under the hypotheses of Proposition 2, with , , and , the intrinsic weighted count equals . Define its centered table by
Proof. The digit word of at level is the base- word of , so . Sum over and apply Proposition 2. ◻
Specializing the digit-word set recovers the standard observables.
Corollary 7 (Collision diagonal). For the two-point collision at lag , with and , and for coprime to , the intrinsic collision count reduces to the carry-boundary observable attached to .
Corollary 8 (Three-point agreement). For , , and coprime to , the intrinsic three-point count reduces to the carry-boundary observable attached to .
Corollary 9 (Adjacent transitions and block patterns). For coprime to and for a set of allowed digit pairs at level two, the adjacent-transition count reduces to the carry-boundary observable attached to . For a set of allowed words, again with coprime to , the block-pattern count reduces to the carry-boundary observable attached to the level- support .
Proof of Corollaries 7–9. Each is Theorem 5 for the stated digit-word set. The four supports encode, respectively, the collision relation , the agreement , the pair condition on , and the word condition on . In each case 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 and . The associated carry-boundary observable is where is the centered sawtooth of §4. Its boundary flux against a character is For and we write and . Characters are extended by zero off the unit group, and we use the transform
The summand of is a carry. For the increment equals exactly when . This is precisely the step from to crossing a multiple of . Thus 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 , the signed boundary chain is the cyclic difference so that the boundary flux is the pairing
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 as a disjoint union of maximal integer intervals. The formal boundary is the multiset of interval endpoints, one left endpoint and one post-right endpoint per interval. Thus The cyclic signed boundary chain is recovered from the formal boundary by summing signs at each residue modulo . Endpoints that coincide modulo may cancel, so can carry less total mass than .
The formal boundary counts walls before residues are identified. The chain records the cancellations after identification. Ordinary fluxes and primitive transforms see only . 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 modulo , with , there are singleton cells. Its formal boundary has size . The two endpoints at residue cancel in .
For , the six formal endpoints reduce modulo . Two meet and cancel at . The four unit endpoints that remain have signed mass at , at , at , and at . 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
Lemma 13 (Endpoint normalization). For , define the centered carry table Then Thus the sawtooth-normalized observable and the centered carry table differ by a constant independent of . The observable gives the cleaner boundary formula, while and have identical primitive odd transforms.
Proof. For and , neither nor is congruent to modulo . Hence where . At the value gives the extra in the difference, and after the outer minus sign this contributes . At , , giving an extra in the difference and hence after the outer minus sign. Summing the remaining terms gives . ◻
Corollary 14 (Endpoint constants are spectrally invisible). Extend off by the same formula, or arbitrarily; only unit values contribute to Dirichlet transforms. For every nonprincipal Dirichlet character ,
Proof. The two differ by the constant of Lemma 13, and for nonprincipal . ◻
This corollary justifies passing between the intrinsic centered table of §2 and the sawtooth-normalized in every nonprincipal Dirichlet transform.
Remark 15 (Fixed level versus complexity). At a fixed level , 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 and define on This is the centered fractional-part function on residue classes. Through it is the oscillatory part of the floor. The single property that drives the theory is that is odd,
The normalization below is the standard first generalized Bernoulli convention for Dirichlet characters; see, for example, [11].
Lemma 16 (Boundary-to-Bernoulli). For one has whenever is even. For every primitive character , In particular, when is primitive and even.
Proof. The substitution and the oddness of give The transform therefore vanishes when is even. A primitive character of modulus is nonprincipal, so . It follows that 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 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 be primitive and with . Then for every integer , with the convention when . In particular whenever .
Proof. For , substitute to get . For , the additive character has conductor ; 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 be primitive. For every integer , In particular the sum vanishes whenever .
Proof. Use the finite Fourier expansion on , Since has mean zero, . Therefore by Lemma 17. The parenthesized factor is independent of ; setting identifies it as via Lemma 16. ◻
The uniformity in is the point. Separability sends every nonunit index to the exact value . The factorization therefore holds for every weight without a coprimality hypothesis on the boundary.
Theorem 19 (Carry-Boundary Factorization). Let , let , and let be primitive. Then for even , and for primitive odd ,
Proof. Expand and exchange sums, By Lemma 18, the two inner sawtooth transforms are and . Hence the preceding sum is . Even-character vanishing follows from . ◻
Remark 20 (Where the non-unit indices went). Lemma 18 absorbs every boundary index not coprime to . By primitivity, such an endpoint contributes . 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 is constant, then , so and for every . A uniform digit weight has no boundary and no transform.
Proof. Directly from Definition 10, by cyclic telescoping. Hence every transform of vanishes. ◻
Corollary 22 (Spectral factorization of finite-prefix observables). Let , , and . Let be a finite-prefix digit observable with cylinder weight . Its centered table from Corollary 6 satisfies, for every primitive odd ,
The Unit-Boundary Flux
For an interval support, interior differences cancel and only the signed endpoints remain.
Lemma 23 (Interval Stokes formula). If is a disjoint union of integer intervals, then interior differences cancel and where is the signed boundary, with a left endpoint carrying sign and a post-right endpoint carrying sign .
Proof. In the value at an interior point appears once with each sign and cancels, leaving the endpoints. ◻
Thus is the character integrated over the boundary. For primitive odd , Theorem 19 reads 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 and , and recall . For every Dirichlet character , extended by zero off the unit group, Thus the full ordinary-flux family recovers exactly on the unit group and recovers nothing on nonunits. Explicitly, Two weights have the same ordinary fluxes exactly when their unit boundary derivatives agree For a subfamily , equality means Under the usual Hermitian inner product, the unit-boundary difference is orthogonal to .
Proof. Shifting the index in the first sum, Characters vanish off , so the sum sees only . The characters modulo form an orthogonal basis of functions on , giving the stated determinacy and the subfamily orthogonality criterion. ◻
Corollary 25 (No unit boundary flux). If is supported on nonunit residues, then for every Dirichlet character modulo . Consequently for every primitive character . 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 , which is zero. ◻
The limit of the corollary is already visible modulo . Let . Then so every ordinary Dirichlet flux vanishes. Let be induced from the nontrivial character modulo , with and . Directly, 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 , , . The lag-one collision diagonal is This is the support already used in Example 3. Its visible signed boundary is Let be the primitive odd character modulo with , so A direct computation gives and independently . 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 , level , is Under the carry-boundary reduction, the distinguishing data of this diagonal are the signed endpoints of . The same reduction applies to any finite collection of digit equalities or inequalities.
Corollary 26 (Collision boundary factorization). For primitive odd , . By Corollary 7 the intrinsic finite-prefix collision table has this same factorization, up to the endpoint normalization.
The three-point agreement support at level , , is the intersection of two diagonals, hence again digit-defined.
Corollary 27 (Three-point factorization). For primitive odd , . The floor potential is identical to the two-point case; only the boundary changes.
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 be prime, , and let be induced by a primitive , with . Only positive conductor levels are needed. The principal character at is even and does not enter the odd decompositions. For write with and . The conductor depth weight is
The power of in an endpoint records how far that endpoint survives under this loss of resolution.
Theorem 30 (Conductor-stratified twisted sawtooth). With as above and the sawtooth modulo , For primitive this is Lemma 18.
Proof. If , both sides vanish. Now write with . For , write units modulo as with , and put . Since , the lifts of reduce to lower-level fibers, each repeated times. The factor comes from that multiplicity. Applying for gives by Lemma 16 at conductor . For , the inner sawtooth depends only on with ; since is primitive modulo , its sum over each fiber vanishes. ◻
Theorem 31 (Conductor-stratified factorization). With notation as above, for every weight , Lower-conductor odd transforms pair the same boundary derivative with endpoints weighted by conductor depth.
Proof. Expand and apply Theorem 30 to and . Shifting the first finite sum gives which is the boundary-chain form. ◻
This pairing is not the ordinary flux The character vanishes on nonunits. The weight 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 be an odd prime, , and . Let and let Write Then the signed boundary chain of is the pushforward If , every point in the support of is divisible by . Consequently for every primitive character .
Proof. An interval of lifts to Its left endpoint becomes , and its post-right endpoint becomes , with the same signs. Summing over the maximal intervals gives . When , every lifted endpoint is a nonunit modulo . Corollary 25 then gives . ◻
The theorem says that a support lifted from level cannot acquire primitive visibility above . Visibility at itself requires a nonzero primitive component of there. The terminal collision support has such a component by Theorem 36.
Lift the nine-state support from modulus to modulus . The lifted support is Every surviving endpoint is divisible by . Primitive characters modulo therefore see no boundary, while the original boundary remains visible at its native modulus .
Corollary 33 (Leading-lag conductor stratification). Let be an odd prime, , , , . The leading-lag collision support is defined by equality of the first digit and digit . It is the prefix pullback of the terminal collision support at level . If , then for every primitive . At conductor , the support 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 digits, so is the pullback of and Theorem 32 applies with this . The native-conductor statement is Theorem 36 at level . ◻
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 , write When is the boundary derivative of , this agrees with the flux notation above.
Definition 34 (Mean-admissible weight). Let be an odd prime, , . A weight supported on unit residues is mean-admissible if
(conductor balance) for every unit , ;
(antipodal oddness) for every unit .
Theorem 35 (Boundary Mean Criterion). Let be an odd prime, , , and let be mean-admissible with . Then where .
Proof. For units , the primitive-odd kernel is the odd part of the conductor-exact Dirichlet kernel. Expand the second moment against this kernel. Condition (i) kills both terms at conductor . At conductor , the diagonal contributes . Condition (ii) makes the antipodal contribution . Hence Finally, , and division by gives . ◻
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 be an odd prime, , and . Write each residue with its padded -digit base- expansion, and let be the terminal collision diagonal. Let be the signed boundary chain restricted to . Then , the unit boundary norm is , and Equivalently, the primitive-odd flux has root-mean-square value
Proof. A point of is with and . Each point is a singleton interval. Its left endpoint is with sign , and its right endpoint is with sign . There are singletons, so (Definition 12). Modulo one has and , so the unit endpoints are the with and the with , giving .
We verify the two conditions for . Modulo , every unit residue has the form with . It receives one negative endpoint and one positive endpoint . Their signed mass is zero, which gives conductor balance. Negation sends exchanging unit endpoints with opposite signs. This gives antipodal oddness. The Boundary Mean Criterion now gives the moment , and ◻
For the nine-state example, the formal boundary has size and the visible unit boundary has squared norm . There are two primitive odd characters modulo , and each has squared flux magnitude . Their mean is therefore , 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 , , and . For each define the unit pushdown for . For , is understood as the trivial group. Then
Proof. Only units contribute. Expand the second moment and apply the primitive-odd kernel obtained by Möbius inversion of orthogonality over conductors followed by the odd projection . Grouping by common residue modulo gives the diagonal and the antipodal . ◻
The bracket in the ledger is nonnegative. Pairing with writes it as , 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 (, ) vanishes and is antipodally odd on , then 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 in the ledger, where the diagonal is and antipodal oddness gives . ◻
Base shows the failure explicitly. The top-level symmetry survives, but two lower conductors still carry boundary mass.
Proposition 39 (Composite obstruction). In base at level , let and The signed boundary of has nonzero proper-conductor pushdowns modulo and . The primitive-odd mean at conductor is , while
Proof. The diagonal consists of the fifteen singletons Thus has mass at and mass at , and . Negation sends to modulo , so the unit-restricted chain is antipodally odd.
The ledger-active divisors are , , , and . Modulo one has , so each unit entrance cancels the unit exit in the same residue class and . The proper pushdowns at and are nonzero already at the residue , since Writing and , exact reduction of the thirty signed endpoints gives At each of , one has . Same-sign endpoints are distinct. A cross-sign collision would require , which pairs only with . Those are the excluded nonunit endpoints at residue . The sixteen unit endpoints therefore remain distinct, each with value or . Antipodal oddness gives and , which explains the value directly. Theorem 37 now gives There are primitive odd characters modulo , so the primitive-odd mean is . The top-conductor term alone would give . The leakage terms at and lower that value by , so the prime-power identity fails. ◻
Dividing the four ledger contributions by the character population makes the base- calculation especially transparent. The conductor- term contributes , the conductor- term contributes , the conductor- term contributes , and the conductor- term is zero. Thus the mean is . 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 and . Every case returns the predicted primitive-odd mean The base- ledger also returns mean modulo , 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 shows how surviving leakage changes it.
Proof. Combine the prime-power mean law with the conductor ledger and the explicit base- computation of Proposition 39. ◻
The Quadratic Edge
Theorem 19 concerns linear observables. The natural quadratic invariant is the energy on the unit group, which is Parseval on .
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 be prime, let , let , and let . Then where is the character modulo induced by .
Proof. Parseval and the identity show that only odd characters contribute. Every odd character modulo is induced by a unique primitive odd character for some . 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 . The two primitive odd Fourier coefficients each have square magnitude , while the induced odd channel vanishes. Parseval gives .
Remark 43 (The quadratic layer). The signed boundary representation gives Consequently The inner expressions are finite sawtooth correlations over the unit group. For , write and set . If and , Möbius inversion of the unit condition gives Multiplication by first turns the unit variable into . Inserting , writing , and using gives the formula. Thus every unit-index correlation is a finite linear combination of classical Dedekind sums [15, 16, 17]. For prime-power , Theorem 31 accounts for the nonunit terms on the character side.
For a primitive odd character , the standard functional equation [9] gives the exact magnitude relation The primitive part of the energy is therefore a boundary-weighted second moment of the values 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 , and 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 Base 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 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 and digits of , Proc. Amer. Math. Soc. 139 (2011), no. 4, 1277–1289, doi:10.1090/S0002-9939-2010-10560-9.
[7]S. Pujahari and N. Saikia, -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 , 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 -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.