Carry counts from two-digit words with matching digits form a finite
table. Its centered square mass is the digit-collision energy. We prove
that its normalized energy is asymptotically one less than the exact
continuous average, settling the sampling-limit conjecture left by the
secondary-term calculation. For an odd prime p, put N=p−1, let ψ be the centered sawtooth with value zero
at integers, and set BN(x)=2∑j≤Nψ(jx). Then ∫01BN(x)2dx−p21a=0∑p2−1BN(a/p2)2=1+O(p−ηlog4(2p)) for an explicit absolute
η>0. The grid samples are exactly
the centered carry readings in a different order. At the origin all
clocks record zero, although their squared one-sided sum is N2. Its share N2/p2 tends to one. We show that the
combined discrepancy from the interior resets tends to zero as both the
profile and grid grow. The proof joins the two orientations of a
Dedekind reciprocity descent into a complete interval with golden
endpoints, then uses reciprocal-phase oscillation in its denominator.
Replacing just the squared sample at the origin by N2 therefore makes the finite and continuous
averages agree asymptotically. In the original energy units, this
identifies a quadratic sampling correction beneath the scale resolved by
the cubic law and its secondary term.
An integral ignores the value assigned at a single point. A finite
table records it. When the table and the function grow together, that
one value can leave a discrepancy that survives averaging. For the carry
table studied here, the discrepancy tends to one. Its source is a common
reset of all the clocks representing the table. The proof must also
account for the growing family of resets between them.
A digit collision asks whether two digit positions agree. Here the
positions are the two digits of a base-p word. In base three, the words 00, 11 and
22 occupy the integer positions zero,
four and eight. Place them on a circle with nine positions.
Multiplication by two moves their marks to zero, eight and seven. A
further step of two takes two marks across the join. Those crossings are
the carries being counted.
For an odd prime base p, there are
p matching-digit words on a circle of
p2 positions. For each multiplier
a from zero through p2−1, multiply their positions by a and count the crossings under a further
step of a. The resulting list of counts
is the carry table. Subtracting the proportional allowance
a/p gives its centered readings. Their
squares sum to the collision energy Ep.
The same table has a clock representation. Define the integer-zero
sawtooth by ψ(x)={{x}−21,0,x∈/Z,x∈Z,BN(x)=2j=1∑Nψ(jx),N=p−1, where {x} denotes the fractional part. Each
component rises linearly and resets at multiples of 1/j; this repeating motion is why we call it
a clock. The clocks are added before the sum is squared, so their
interactions are part of the energy.
The sampling grid consists of the p2 points 0,1/p2,…,(p2−1)/p2. Proposition 2.1 shows that the values of BN on this grid are the centered carry
readings in a different order. The continuous capacity and the finite
average are therefore J(N)=∫01BN(x)2dx,p2Ep=p21a=0∑p2−1BN(a/p2)2. Their
difference Sp=J(p−1)−Ep/p2 is the sampling defect. Sampling here
uses every entry of the carry table.
The Secondary Term in Digit-Collision Energy[7] proved that, for odd
prime bases, Ep=p3−π2p2(logp)2+O(loglog(3p)p2log2(2p)). That
calculation bounded the sampling defect below the secondary scale and
left its proposed limit Sp→1 open. The limit resolves a finer question about the same
energy, with its exact continuous capacity retained.
The origin explains the candidate one. Each doubled clock approaches
−1 just to its right and +1 just to its left around the periodic join.
Thus BN2 approaches N2 from either side, while BN(0)2=0. Replacing that single squared
sample by N2 raises the finite average
by N2/p2, which tends to one. To
prove that this is the entire limiting difference, we must control the
combined signed discrepancy from the interior. Both the number of clocks
and the sampling grid grow with p.
The proof gives an explicit positive power saving. Its exponent
combines the derivative-estimate saving 1/(214−2) with a denominator cutoff at
p1/28, giving η=28(214−2)1=4586961.
These are conservative choices in the proof, explained at their points
of use below. Their role is to establish convergence. The stronger
square-root rate suggested by the numerical data is formulated in
Conjecture 15.1.
Theorem 1.1 (Unit sampling defect). For odd primes
p, let N=p−1 and Sp=∫01BN(x)2dx−p21a=0∑p2−1BN(a/p2)2. With η=1/458696, one has Sp=1+O(p−ηlog4(2p)). The implied
constant is absolute. Equivalently, the original finite carry energy
satisfies Ep=p2[J(p−1)−1]+O(p2−ηlog4(2p)).
In the original energy units, the unit defect is a quadratic
correction. It lies inside the larger remainder of the secondary-term
expansion. The theorem determines this correction relative to the exact
capacity J(p−1); a finer
expansion of that capacity is a separate question.
The sampling identity in Section 3 separates the origin from a signed
sum of Dedekind terms. Reciprocity follows each term through division
with remainders. An initial sequence of division steps is a
prefix; its matrix records how the original pair is
reconstructed from the smaller one. We stop when a remainder crosses a
threshold and bound all the costs accumulated before that crossing. The
terminal terms retain both possible orientations of the descent. Their
signs allow them to be joined into a complete interval of primitive
rational coordinates. Holding the numerator fixed then exposes
reciprocal-phase oscillation in the denominator. This controls the
terminal terms across all the original cutoffs and proves the limit.
The analytic ingredients are classical. We use Dedekind reciprocity
and its cotangent representation [1], Weil’s complete Kloosterman bound including
its Ramanujan zero mode [6], Erdős–Turán discrepancy [5], and the classical
derivative estimate stated in [4]. The golden interval belongs to the
geometry of signed continued fractions [3]; its population is proved directly
below. Throughout the descent, the signed source, its cutoff and its
multiplicity remain those of the original carry table.
Clock representation of
the carry table
Fix an odd prime p throughout, and
write N=p−1,q=p2,ℓ=log(2p),Hn=j=1∑nj1. We write (j,k) for the greatest common divisor. A bar
over a unit denotes its inverse modulo the modulus in use. The integers
from zero through q−1 represent all
two-digit base-p words, including
leading zeros. This finite residue system is the two-digit
carrier. The word with both digits equal to d has value pd+d, so the equal-digit words occupy Gp={(p+1)d:0≤d<p}. For 0≤a<q put Cp(a)=n∈Gp∑(⌊q(n+1)a⌋−⌊qna⌋),Fp(a)=Cp(a)−pa, and Ep=∑a=0q−1Fp(a)2. Each difference
of floors is zero or one. It records whether the step from na/q to (n+1)a/q crosses an integer boundary,
counting arrival at the boundary as a crossing. This is the circular
carry test described above.
A step of a crosses the join from
exactly a of the q possible starting positions. The
proportional allowance for the p
selected marks is therefore pa/q=a/p.
Subtracting it defines Fp without a
random-digit assumption. The carry table is the list of Cp(a); its centered table is the list of
Fp(a). These are the definitions used
in [7].
Proposition 2.1 (Straightening the carry response).
Writing [x]q for the least
residue, one has Fp([(1−p)A]q)=BN(A/q),Ep=A=0∑q−1BN(A/q)2. Moreover, J(N):=∫01BN(x)2dx=31j,k≤N∑jk(j,k)2.
Proof. Expanding each floor into its argument minus its
fractional part cancels the term a/p.
Since (1−p)(p+1)d≡d(modq), the
two fractional part sums at a=[(1−p)A]q have indices 0,…,p−1 and 1−p,…,0. Their difference is j=1∑p−1({jA/q}−{−jA/q})=2j=1∑p−1ψ(jA/q). This includes integer arguments.
The multiplier 1−p is a unit modulo
q, proving the energy identity. At
a=pc the defining floors telescope to
Cp(pc)=c, so the nonunit readings are
indeed zero.
The L2 Fourier coefficients of
ψ are −1/(2πin) for n=0. Parseval, with the common frequencies
of ψ(jx) and ψ(kx), gives ∫01ψ(jx)ψ(kx)dx=12jk(j,k)2.
Multiplication by four and summation prove (3). ◻
Define the Dedekind sum for all integer h and positive k by s(h,k)=a=1∑k−1ψ(a/k)ψ(ha/k),s(h,1)=0. It is periodic and odd in h. On units it is invariant under inversion.
We use the classical reciprocity identity s(h,k)+s(k,h)=R(h,k),R(h,k)=12hkh2+k2+1−3hk,(h,k)=1. These
formulas use the integer-zero convention throughout [1].
Separating the common reset
At an interior reset, the jump in the squared profile depends on the
readings of the clocks that do not reset there. The signed source below
records their combined contribution to the sampling defect.
Put Mk=⌊N/k⌋, sk=N−kMk and Tk,s(a)=2j=1∑sψ(ja/k),Ap=k=2∑NMka∈Uk∑Tk,sk(a)ψ(qa/k), where Uk is the group of units modulo
k, represented in 1,…,k−1.
Proposition 3.1 (Exact sampling identity). The
complete defect satisfies Sp=p2N2+p24Ap−3p3NHN.
Proof. Between jumps, BN
has slope V=N(N+1). At a reduced
fraction a/k, 2≤k≤N, its midpoint value is Tk,sk(a) and its jump is −2Mk. For f=BN2 this gives [f]a/k=−4MkTk,sk(a),[f′]a/k=−4VMk. At the origin the squared one-sided value
is N2, the chosen sample is zero, and
[f′]0=−4VN. No nonzero jump lies
on the q-grid, since 2≤k<p and (k,q)=1.
Let B2(x)={x}2−{x}+1/6.
Distributional differentiation gives f′′=2V2+x∑[f′]xδx+x∑[f]xδx′.
For nonzero frequencies this determines f(n) by division by (2πin)2. Summing the frequencies
divisible by q, with symmetric Abel
regularization for the first-derivative series, gives q1A=0∑q−1f(A/q)−∫01f=−qN2+q1x∑[f]xψ(qx)−2q21x∑[f′]xB2(qx). Indeed
∑j=0e−2πijy/(2πij)=ψ(y) in this convention and the corresponding
squared-denominator series is −B2(y)/2. The finite jump sums commute with
regularization. The origin correction replaces the regulated value N2 by its sample zero.
The remaining quadratic term is evaluated completely. Expanding Mk as the number of multiples of k through N
and reducing fractions gives 6N+k=2∑NMka∈Uk∑B2(qa/k)=6N+j=1∑Na=1∑j−1B2(qa/j)=6HN. The last equality follows because q permutes the residues modulo j and ∑a=1j−1B2(a/j)=(j−1−1)/6.
Substitution, using V=pN, proves (5). ◻
The first term of (5) tends to one, and the harmonic
term is O(p−2log(2p)). The sampling
limit is therefore reduced to Ap=o(p2). This is a bound on the combined signed contribution
of the interior resets. The rest of the proof keeps that contribution
together through its changing moduli and cutoffs.
For example, direct rational calculation at p=3,5,7 gives Sp=2711,225143,490347.
The asymptotic question is how the interior contribution behaves as the
whole table grows.
For L≥1 and a nonzero residue
a=Qmodk, define ΔL(Q;k)=1a≤Lmodk−1k−a≤Lmodk,ΔL(0;k)=0. Write Lr=⌊N/r⌋ and cN,k(Q)=∑r≤N/kΔLr(Q;k).
Thus ΔL is odd, has absolute
value at most one, and records both ends of the actual prefix.
Proposition 3.2 (The original count source). One
has Ap=k=2∑Nh∈Uk∑cN,k(qh)s(h,k). The source has mean zero, absolute value
at most ⌊N/k⌋, and cyclic
variation at most 4⌊N/k⌋.
Proof. Complete periods of ψ(ja/k) sum to zero. We may therefore
replace the terminal j-prefix in Tk,sk by 1≤j≤N. Expanding Mk into
multiples and combining reduced fractions yields Ap=2l,j≤N∑s(jqˉ,l).
If j=da,l=dk with (a,k)=1, the sawtooth distribution identity
∑b=0d−1ψ((x+b)/d)=ψ(x)
gives s(jqˉ,l)=s(aqˉ,k).
Complete unit blocks in a vanish by
oddness. At fixed d,k only the prefix
ending at Ldmodk survives. Change
variables a=qhmodk, then pair h with −h to
turn twice this prefix into (6).
The modulus-one term is zero. Each difference of interval indicators is
odd, has zero mean and cyclic variation at most four. Summing gives the
stated bounds. ◻
There are two sawtooth conventions in the argument. Dedekind sums
always use ψ. Expanding a literal
floor uses b(x)={x}−1/2, including
b(n)=−1/2 at integers. Direct division
of Q and L by k
proves, when Q≡0(modk), ΔL(Q;k)=k1−2b(Q/k)+b((Q−L−1)/k)+b((Q+L)/k). The shift −L−1 and the term 1/k will both be retained.
Bounds for weighted sources
Three estimates will control different parts of the reciprocity
descent. The first bounds the absolute mass of the Dedekind weights. The
second uses oscillation along a reciprocal phase. The third handles a
weight whose variation can be bounded while the original count source is
retained. Here cyclic variation is the sum of absolute successive
differences around the residue classes, and τ(k) counts the positive divisors of k.
Lemma 4.1 (Absolute Dedekind mass). For every
integer k≥1, a∈Uk∑∣s(a,k)∣≤4kHk2. Consequently u≤U∑1≤e<u/2(e,u)=1∑∣s(e,u)∣≤16U(U+1)HU2.
Proof. The cotangent representation [1] is s(a,k)=4k1n=1∑k−1cot(πn/k)cot(πan/k),(a,k)=1. The
inequality ∣cot(πx)∣≤[2min(x,1−x)]−1 gives ∑n=1k−1∣cot(πn/k)∣≤kHk. For fixed n, let g=(n,k). Multiplication by n has at most g preimages of each nonzero residue, so a∈Uk∑∣cot(πan/k)∣≤gj=1∑k/g−1∣cot(πj/(k/g))∣≤kHk. The
triangle inequality proves the first assertion, including composite
k. Reflection halves this bound on
e<u/2; its possible midpoint has
zero weight. Sum u/8 over u≤U to obtain (9). ◻
The order klog2(2k) of this
absolute mass is classical [2]. The elementary proof above fixes a
convenient bound for every modulus.
Lemma 4.2 (Reciprocal-phase discrepancy). Let
∣X∣≥1, −1≤β≤2, and T≤C0∣X∣. Uniformly over integer
intervals I⊂[2,T] and real γ, t∈I∑b(γ+t+βX)≪C0∣X∣1/3log(2T).
Proof. On a dyadic interval of scale Z≥2, t+β is comparable to Z. For frequency j, the second derivative has size j∣X∣/Z3 and fixed sign. The classical
second-derivative bound gives t∑e2πij(γ+X/(t+β))≪j∣X∣/Z+Z3/2/j∣X∣ on any subinterval.
Integrating the Erdős–Turán inequality gives n=1∑mb(θn)≪J+1m+j=1∑Jj1n=1∑me2πijθn. This formula includes integer phases, since
integrating m/2−#{n:{θn}<t} over 0<t<1 gives the left-hand sum before
taking its absolute value. If Z≤2∣X∣1/3 use the trivial bound.
Otherwise choose J=⌊Z/∣X∣1/3⌋ in (10). The
result is O(∣X∣1/3+Z3/2∣X∣−1/2)=OC0(∣X∣1/3).
Summing the dyadic pieces proves the claim. Short terminal intervals
obey the same estimates. ◻
Lemma 4.3 (Completion against the count source).
Let f be a real function on
residues modulo k, with f(0)=0 and cyclic variation at most Vk. Then c∈Uk∑f(c)cN,k(qcˉ)≪kNVkτ(k)(klog2(2k)+log(2k)).
Proof. Use normalized coefficients f(m)=k−1∑cf(c)e−2πimc/k with centered frequency representatives.
Summation by parts, and the fact that a cyclic path returns to zero,
give ∣f(0)∣c(0)≤Vk/2,=0,∣f(m)∣∣c(n)∣≤4∣m∣Vk(m=0),≤k∣n∣N(n=0). Fourier inversion expresses the sum exactly as
m∑n=0∑f(m)c(n)K(m,nq;k), where K(m,n;k)=x∈Uk∑e2πi(mx+nxˉ)/k. There is no extra factor k. Weil’s bound and the Ramanujan bound are
∣K(m,n;k)∣≪τ(k)k(m,n,k),∣K(0,n;k)∣≤(n,k). Since (q,k)=1, multiplication by q does not change the gcd factors. For
nonzero m,n, m,n=0∑∣mn∣(m,n,k)≪log2(2k)d∣k∑d−3/2≪log2(2k). For the
retained mode m=0, ∑n=0(n,k)/∣n∣≪τ(k)log(2k) by
expansion over common divisors. Substitution proves (11). ◻
The first reciprocity step
Choose a threshold H for the smaller
member of a Dedekind pair. The pairs already below it admit a direct
reciprocal-phase estimate. For the others, reciprocity separates a
rational correction from a new Dedekind sum at a smaller modulus.
Inversion and reflection in (7)
give Ap=2k=2∑N0<c<k/2(c,k)=1∑s(c,k)cN,k(qcˉ). The exceptional
unit at k=2 has zero Dedekind sum. For
H≥1, let L(H) be the part with c≤H. On c>H, apply (4) to write Ap=L(H)+E(H)+B(H), where
E uses 2R(c,k)cN,k(qcˉ) and B uses −2s(k,c)cN,k(qcˉ) on the same
domain.
Proposition 5.1 (First-stage bounds). Uniformly
for integers 1≤H≤N, ∣L(H)∣≪p5/3H1/3ℓ3,∣E(H)∣≪p5/2H−1ℓ3.
Proof. For the first estimate fix c and write k=ct+a with a∈Uc. When c=1, use a=0
and its single residue class. Put f=aˉmodc, with f=0 at c=1. Then kcˉ≡−cf+ck1(mod1),kqcˉ+v≡−cqf+t+a/cq/c2+v/c(mod1). For each source cutoff
L=Lr, the shifts are v=0,−L−1,L. An active family has c<k/2<p/2. Thus its three amplitudes
are comparable to p2/c2, and t≤L/c≪∣X∣. Conditions 2c<k≤L give a single interval. Lemma 4.2, applied to (8), bounds every partial
source sum by O((p/c)2/3ℓ). The
term 1/k costs O(ℓ/c) and is absorbed.
The actual weight is s(c,ct+a)=12t+a/c−s(a,c)−41+12(t+a/c)1+c−2. On t+a/c>2 its endpoint size plus total
variation is O(L/c+1+∣s(a,c)∣). Partial
summation and then summation over r≤N/(2c) give, for fixed c,a,
≪c5/3p5/3(ℓ2+(1+∣s(a,c)∣)ℓ). Lemma 4.1 bounds the sum of these baselines over
a by O(clog2(2c)). Summing c−2/3 through H proves the first claim. This calculation
includes the c=1 families directly.
For the second estimate extend R(c,k) by zero outside H<c<k/2. It is decreasing on that
interval, its absolute value is at most k/(4H), and its cyclic variation is at most
k/H. Apply Lemma 4.3 with Vk=k/H and include the factor two. The
elementary bound ∑k≤Nτ(k)≤NHN finishes the sum. ◻
Cancellation across moduli
For a state in B(H), one
has H<c<k/2 and (c,k)=1. The states with c=1 are already included in L(H). After removing the zero-weight
tie described below, write the strict nearest-remainder step k=mc+εd,0<d<c/2,m≥2(ε=1),m≥3(ε=−1). The
only coprime tie has (c,d)=(2,1) and
weight s(k,2)=0; its contribution is
assigned zero. Let C(H,D) be
the portion of B(H) with d≤D, and let Z(H,D) be its complement. This
partitions the original source states without changing their
weights.
Proposition 6.1 (Cross-modulus bound). For 1≤H,D≤N, ∣C(H,D)∣≪p5/3D1/3ℓ3+pDℓ4.
Proof. Fix m,d,ε
and write c=dt+a, a∈Ud. At d=1 use a=0.
Then s(k,c)=εs(d,c) and
kcˉ≡dεaˉ−dkεm(mod1). For v=0,−L−1,L, put β=da+mε,Xv=−d2εp2+mdv. The shifted phase
is εqaˉ/d+Xv/(t+β)
modulo one. Here −1/3≤β≤3/2 and
87p2/d2≤∣Xv∣≤89p2/d2,
since d<c/2<k/4<p/4 and ∣v∣≤p. Also t≤L/(md)+1/3<2∣Xv∣. The conditions c>H, c>2d and k≤L give one interval. Thus every partial source sum has size O((p/d)2/3ℓ), including the 1/k term.
Split s(d,c)=R(d,c)−s(a,d).
The size plus variation of the first weight is O(L/(md)) on this interval. For fixed m,d,a,ε, partial summation and the
source sum give O(p5/3m−1d−5/3ℓ2). Sum over at
most d residues, both signs, m≤N and d≤D. The result is O(p5/3D1/3ℓ3).
The next baseline is paid separately, at its actual modulus d. Since k>mc/2, ∣cN,k∣≤N/k, and ∑c≡a(d),c>2dN1/c≤HN/d, its absolute contribution at fixed m,d,ε is at most NHNHd2/m. Lemma 4.1 supplies the sum over a. Both orientations and all m,d therefore cost at most 2NDHN2HD2, proving (15). ◻
Descent to the threshold
The preceding step controls pairs that reach a small remainder
immediately. For the other pairs we repeat division, retaining both the
correction at each step and the Dedekind sum still to be resolved.
We now take D=H and retain Z(H,H). Start its original pair at
u0=k,u1=c and descend by uj−1=mjuj+εjuj+1,0<uj+1<uj/2. Perform a step only when uj+1>H, stopping before the first step
crossing to uj+1≤H. Let J≥1 be the number performed and δ0=1, δj=−εjδj−1.
Reciprocity gives s(k,c)fk,H(c)tk,H(c)=fk,H(c)+tk,H(c),=−j=1∑JδjR(uj+1,uj),=δJs(uJ,uJ+1). The corresponding split of Z is denoted Z(H,H)=K(H)+T(H),
with the original coefficient −2cN,k(qcˉ) attached to both terms.
A finite nonempty word ((m1,ε1),…,(ms,εs))
is admissible when each εi∈{−1,1} and each integer
mi satisfies mi≥2 if εi=1 and mi≥3 if εi=−1. Matrix products are ordered
from the first digit on the left to the last on the right. These are
exactly the digit restrictions of the strict nearest-remainder descent
above. The matrix of a prefix carries the terminal remainder pair back
to its original pair. Its determinant, equal to +1 or −1,
records the orientation of that reconstruction.
Lemma 7.1 (Prefix population and stopped variation).
For an admissible nonempty word put P=i∏(mi1εi0)=(ACBE),detP=δ. Then A≥2, ∣B∣<A, 0<C≤A/2, and (A,C)=1. Distinct words
give distinct matrices, and there are at most 4A matrices with a given A. The stopped cost has an extension to all
residues satisfying fk,H(0)=0,TV(fk,H)≤8(k/H)2.
Proof. Appending a digit changes the top row to (Am+B,εA), so A strictly increases and ∣B∣<A. Apply the word backwards to a ratio
e/u∈(0,1/2). Every step produces a
ratio in (0,1/2), proving 0<C≤A/2 by taking e/u↓0. The determinant gives (A,C)=1. Given A,C,δ, the congruence BC≡−δ(modA) leaves at most two
choices of B in (−A,A), and then fixes E. This bounds the count by 4A. The nearest-quotient procedure is unique
on each word’s nonempty interval. Two words with the same matrix
coincide until one ends; strict growth of A excludes a proper extension with the same
matrix.
At a performed cost (u,e), e>H and u>2e, while k=Au+Be,c=Cu+Ee,e=δ(Ac−Ck),u=(k−Be)/A. Its support is one interval in
c. Reversing the word shows that
earlier steps are all above H and that
the original ratio lies in (0,1/2). In
particular k>A(u−e)>AH and u<2k/A. For this prefix, extend the cost
−δR(e,u) by zero off that
interval. Its absolute value is at most k/(2AH). To see monotonicity in e, put v=u/e=k/(Ae)−B/A>2. Both v+1/v and 1/(eu) decrease, the latter because (eu)′=(k−2Be)/A>0. Thus R(e,u) decreases. Its interior
variation and its two endpoint jumps total at most 2k/(AH). Sum over all prefixes with A<k/H to get TV(fk,H)≤2≤A<k/H∑4AAH2k≤8(k/H)2. On unit integers this extension is
exactly (16). On nonunits it is defined
by the same interval sum, which is all Fourier completion requires.
Strict endpoints are retained. ◻
Proposition 7.2 (Complete stopped-cost bound).
Uniformly for 1≤H≤N, ∣K(H)∣≪p7/2H−2ℓ3.
Consequently, at H=⌊p11/14⌋, Sp=1+p24T(H)+O(p−1/14ℓ3).
Proof. Apply Lemma 4.3 to (17), retaining the factor
−2. Its bound at modulus k is ≪H2Nτ(k)(k3/2log2(2k)+klog(2k)). Sum using ∑k≤Nτ(k)≤NHN. The
exact full-source identity is Ap=L(H)+E(H)+C(H,H)+K(H)+T(H).
Propositions 5.1 and 6.1 control the
other terms. At the stated threshold their largest power is p27/14. The term pHℓ4 has smaller power 25/14, so its extra logarithm is absorbed.
Insert these bounds into (5). No source-index truncation is
made. ◻
The threshold p11/14 balances the
growing cost p5/3H1/3 against the
decreasing cost p7/2H−2. Both
have size p27/14 at that scale.
After division by p2, all the
accumulated corrections therefore vanish. It remains to obtain a saving
for the terminal sum T(H).
The golden prefix interval
To estimate the terminal sum, we first need its full population. The
matrices of the stopped paths retain both orientations. Their top rows
will turn the varying path lengths into a single interval of rational
coordinates.
Include the first crossing step in P. Its word has length at least two. The
terminal domain for source index r is
u>H,1≤e≤H,2e<u,(u,e)=1,k=Au+Be≤Lr,c=Cu+Ee. The coprime tie (u,e)=(2,1) has zero weight and is assigned
zero contribution before imposing the strict inequality 2e<u. All preceding remainders exceed
u, so this is precisely a first
crossing. For the sign, write the crossing step as uJ=mu+εe, where u=uJ+1. Periodicity and oddness give the
residual δJs(uJ,u)=δJεs(e,u). The original coefficient −2 and the update δ=δJ+1=−εδJ
therefore give −2δJεs(e,u)=2δs(e,u). Consequently Fr(P)=2δ(u,e) in (24)∑s(e,u)ΔLr(qcˉ;k),T(H)=r=1∑NP∑Fr(P). Every state retains its
original source coefficient and multiplicity.
Put α=25−1,β=1−α,I=(−β,α).
Theorem 8.1 (Complete prefix interval).
Admissible words of length at least two are in bijection with A≥2,(A,B)=1,∣B∣≥2,B/A∈I. The top row
determines the second row and the orientation uniquely. Both endpoints
of I are limits of admissible
words.
Proof. Appending a digit sends z=B/A to ε/(m+z). The identities β=1/(3−β), α=1/(2−β) and α+β=1 show that all admissible maps
preserve I. Starting at (1,0) gives primitive top rows. At length at
least two, ∣B∣ is the preceding
denominator and is at least two.
Conversely, for a nonzero reduced B/A∈I, set A′=∣B∣,ε=sgnB,m=⌊A/∣B∣+β⌋,B′=A−m∣B∣. The
interval has length one with irrational endpoints, so m is the unique integer with B′/A′∈I. Its endpoint inequalities
imply m≥2 for B>0 and m≥3 for B<0. The denominator decreases strictly,
and the pair remains primitive. The process ends at (1,0). Reversal reconstructs a unique word.
The pairs ∣B∣=1 are exactly its
one-step words.
For an explicit second row, let b0
be the inverse of B modulo A. At length at least two, A≥5 and 0<C<A/2. The determinant gives C=min(b0,A−b0),δ={−1,1,b0<A/2,b0>A/2,E=(δ+BC)/A. There is no unit midpoint tie. Finally, if
Fj are the Fibonacci numbers, the
powers of (31−10)
have B/A=−F2j/F2j+2→−β.
Appending (2,1) gives B/A=F2j+2/F2j+3→α. ◻
The inverse ratio map is z↦∣z∣−1−⌊∣z∣−1+1−α⌋, an α-continued-fraction map in the
classical family [3]. The theorem concerns its finite
prefix population. This explicit description lets us sum over every
admissible path while retaining its original source weight.
Small prefix blocks
We group the terminal prefixes by the size of their denominator A. For small denominators, reciprocal-phase
oscillation in the terminal pair gives a sufficient bound. Larger
denominators will require the joined population from the golden
interval.
For dyadic K let Br(K;H)=∑K≤A<2KFr(P),
including both orientations. For an active matrix, k>A(u−e)>Au/2, so AH<2Lr and u<2Lr/K. Lemma 4.1 therefore
gives the block’s terminal absolute mass Wr,K:=active (u,e)∑∣s(e,u)∣≪(Lr/K)2ℓ2.
Proposition 9.1 (Small-block estimate). For every
active r,K,H, ∣Br(K;H)∣≪p2/3LrH1/3Kℓ3.
Proof. Fix a matrix and write u=et+a, with a∈Ue and the convention a=0 at e=1.
Set f=aˉmode, with f=0 at e=1.
The determinant identity gives kqcˉ+v≡−eδqf+t+a/e+B/Aδq/e2+v/(Ae)(mod1). For example, h=δ(A(1−fu)/e−Bf) is integral and
satisfies ch≡1(modk), proving the
formula. The shifts are again v=0,−Lr−1,Lr. Because e<k/A<p/A, ∣v∣e/(Aq)<1/A2≤1/4. Thus the amplitudes
are comparable to p2/e2. Also −1<a/e+B/A<2 and t≪p/e. The terminal inequalities and the
cutoff leave one interval in t.
Lemma 4.2 bounds every partial source sum by
O((p/e)2/3ℓ), including the
literal 1/k terms.
Formula (14),
with c=e, bounds the endpoint size plus
variation of the full s(e,et+a) by
O(Lr/(Ae)+1+∣s(a,e)∣). Partial
summation and Lemma 4.1 give ∣Fr(P)∣≪(Ap2/3LrH1/3+p2/3H4/3)ℓ3. The two
contributions use, respectively, the estimates e≤H∑e−2/3≪H1/3,e≤H∑e1/3log2(2e)≪H4/3log2(2H). Since AH<2Lr, the second term is absorbed by
the first. There are at most 4A
matrices at each A. Sum over K≤A<2K to obtain (24). ◻
Folding opposite
orientations
The small-block bound grows with K.
For large blocks we instead sum over the prefix population before
estimating its size. The following identity transfers the orientation
sign into the odd count source.
Proposition 10.1 (Orientation fold). Fix (u,e) in (20). Put f=uˉmode,v0=(1−fu)/e,h=Av0−Bf=(A−fk)/e, using f=0
when e=1. Then δΔL(qcˉ;k)=ΔL(qh;k). Consequently Br(K;H)=2u>H,1≤e≤H2e<u,(u,e)=1∑s(e,u)Gr,K(u,e), where
Gr,K(u,e)=K≤A<2K,∣B∣≥2,B/A∈I(A,B)=1,Au+Be≤Lr∑ΔLr(q(Av0−Bf);Au+Be).
Proof. From Ac−Ck=δe
one obtains ch=δ+k(C−fc)/e. The
quotient is integral since c≡Cu(mode) and fu≡1(mode). Thus
cˉ≡δh(modk), and
oddness of ΔL proves (26). Substitute in (21)
and apply Theorem 8.1. Both orientations together give
precisely the primitive pairs in (28). ◻
For one orientation alone the inverse of B modulo A
selects only half the population. Equation (26)
removes that restriction from the joined source. Each original
contribution keeps its value, and the complete population now admits the
interval summation used next.
Oscillation in the prefix
denominator
Write L=Lr. Holding B=0 fixed, the restrictions in (28), apart from coprimality, are a
single interval K≤A<2K,A>{B/α,−B/β,B>0,B<0,A≤(L−Be)/u. Globally −2βK<B<2αK. Expand coprimality by 1(A,B)=1=d∣A,d∣B∑μ(d),A=da.
Here μ is the Möbius function. On
each resulting progression the literal count source becomes a sum of
reciprocal phases. Its endpoint shifts must be retained even when
coprimality has been removed.
Lemma 11.1 (Nonprimitive extension and endpoint
phases). The literal identity (8)
remains valid on every pair introduced by (30).
For v=0,−L−1,L, put γ=−qf/e+q/(eu),ζ=eB/u,Xv=qB/u2−v/u. Then, as a real identity, kqh+v=γ−A+ζXv. For every nonempty
block, u<2L/K≤2p/K,K≥4,43u2p2∣B∣≤∣Xv∣≤45u2p2∣B∣,αK<A+ζ<(2+α)K(K≤A≤2K).
Proof. The map (hk)=(uv0e−f)(BA) has determinant −1, so (k,h)=(A,B). Since ∣B∣<A and u>2e, k>A(u−e)>A, whence (k,h)<k. Since k≤L<p, it follows that qh≡0(modk) even for nonprimitive
pairs.
Substitute h=(A−fk)/e and k=u(A+ζ) to get (31). The inequality k>Au/2 gives (32);
the first possible top-row denominator is A=5. Since ∣v∣≤p and ∣B∣≥2, ∣vu/(qB)∣<2/(K∣B∣)≤1/4, giving the
amplitude bounds. Finally e/u<1/2
and the global range of B give −βK<ζ<αK, proving the
denominator bounds on the entire real interval. ◻
The phase amplitudes range too widely for one fixed derivative order
to give a saving everywhere. Orders two through fourteen cover the
window below. The weakest of their savings is κ=(214−2)−1, which is the
derivative factor in the exponent announced in Section 1.
Lemma 11.2 (A fixed derivative window). Let M≥2. Suppose a real phase on an interval of
length at most M has derivatives of
constant sign satisfying ∣g(j)∣≍jTM−j for 2≤j≤14, with
fixed comparison constants. If M1/2≤T≤M13, then every integer subinterval satisfies n∑e2πig(n)≪M1−κ,κ=163821.
Proof. The classical jth
derivative bound [4]
is n∑e2πig(n)≪jmλaj+m1−bjλ−aj,aj=(2j−2)−1,bj=22−j, on length m, when the derivative has fixed sign and
magnitude comparable to λ. For
T≤M, the second derivative gives
O(T+M/T)=O(M3/4).
Otherwise choose 3≤j≤14 with Mj−2≤T≤Mj−1. Then λ≍TM−j lies between constant
multiples of M−2 and M−1. The two terms are bounded by M1−aj and M1−bj+2aj. Since bj−2aj≥aj≥κ, both give the
required saving. For a shorter interval retain the same derivative scale
and replace its actual length by O(M)
in the nonnegative powers above. Empty intervals and intervals with at
most one integer cost O(1). ◻
Power saving for large
blocks
At H=⌊p11/14⌋, split
the prefix denominators at K0=p1/28. The small-block estimate then
gives a total cost of order p55/28ℓ4, below p2. Above that cutoff, the reciprocal phases
fit the derivative window of Lemma 11.2. The
resulting factor satisfies K−κ≤p−κ/28 in that range, giving the exponent η=κ/28.
Theorem 12.1 (Joined source estimate). Let H=⌊p11/14⌋. Uniformly in
every active source index and terminal pair, ∣Gr,K(u,e)∣≪K2−κlog(2K),K>p1/28,κ=1/16382.
Proof. Set D=J=⌊K1/100⌋. First retain the divisors d≤D in (30),
and put M=K/d≥K99/100. For 1≤j≤J the phase on the progression
A=da is g(a)=jγ−da+ζjXv,∣g(h)(a)∣≍hTM−h,T=j∣Xv∣/K. The comparison
constants in Lemma 11.1 are uniform in all source and
terminal parameters. Its lower bound gives T≥3K/8. Its upper bound, u>H≥p11/14/2 and ∣B∣<2K, gives T≤10jp3/7<10K12+1/100. For K≥16, these imply M1/2≤T≤M13. For the upper
inequality use 13(99/100)=12.87 and
10≤160.86. For the lower one use
M≤K. The fixed dyadic cases K=4,8 obey (34)
after enlarging the absolute constant, by counting their O(K2) pairs.
Apply Lemma 11.2 and (10) on the
actual interval (29). For each fixed B,d≤D, a∑ΔL(qh;k)≪JM+M1−κlog(2J)+du1. The last term
pays all the 1/k terms, because k≍Ku and there are O(K/d) integers in this interval. Integer
hits of the shifted phases are included by the literal convention in (10).
For a given d there are O(K/d) nonzero multiples of d in the global B range. Summing (35) and using ∑d−2<∞, ∑dκ−2<∞ gives ≪K2/J+K2−κlog(2K)+K/u. For
d>D use ∣ΔL∣≤1. Their total cost is ≪D<d<2K∑dK(dK+1)≪K2/D+Klog(2K). Since κ<1/100, all these quantities satisfy
(34). The source was joined before
these absolute estimates were taken. ◻
Proof of the sampling limit
Proof of Theorem 1.1. Take H=⌊p11/14⌋ and K0=p1/28. For K>K0, combine (27), (23) and Theorem 12.1 to get ∣Br(K;H)∣≪Lr2K−κℓ3. The complete source sum satisfies ∑rLr2≤N2∑r≥1r−2≪p2. The dyadic sum is geometric, so r∑K>K0∑∣Br(K;H)∣≪p2−κ/28ℓ3. Its constant may
depend on the fixed number κ and
is absolute. For K≤K0,
Proposition 9.1 instead gives r∑K≤K0∑∣Br(K;H)∣≪p5/3H1/3K0ℓ4≤p55/28ℓ4, using ∑rLr≤NHN and ∑K≤K0K≪K0. Thus the exact
reconstruction (21)
yields ∣T(H)∣≪p2−1/458696ℓ3+p55/28ℓ4. Insert this into (18). More
explicitly, Sp=1+O(p−1/458696ℓ3+p−1/28ℓ4+p−1/14ℓ3),
which implies (1). Proposition 2.1 then gives (2). All estimates have
included every original source index and every admissible prefix
depth. ◻
Three-channel sampling
corrections
The difference between the two energy readings also has a finite
three-channel interpretation. Keep N=p−1 and q=p2, and form the frequency Grams of the
same sawtooths, Hrsd=q4a=0∑q−1ψ(ra/q)ψ(sa/q),Hrsc=4∫01ψ(rx)ψ(sx)dx=3rs(r,s)2. Their total sums are Ep/q and J(N). To retain the diagonal and the two orderings of an
off-diagonal pair, let Q be cyclic
shift on R3 and define, for a
real symmetric matrix H, C(H)=tr(H)I+(r<s∑Hrs)Q+(r>s∑Hrs)Q−1. This aggregation
retains three sums from the frequency Gram. Its constant channel reads
the total energy; the other two channels compare the diagonal with the
off-diagonal interaction. Write P0=11T/3 for the constant-line projection in
R3, and P⊥=I−P0 for the centered-plane
projection.
Corollary 14.1 (Cubic sampling correction). For
every odd prime, C(Hd)−C(Hc)=−SpP0+(2Sp−2q3N+q2N)P⊥. Consequently,
with η=1/458696, C(Hd)−C(Hc)+P0−21P⊥op≪p−ηlog4(2p). The transverse eigenvalue of C(Hd) is 2N−J(N)+21+O(p−ηlog4(2p)).
Proof. Put D(H)=1TH1 and δ(H)=tr(H). Symmetry
makes the upper and lower sums equal. Since Q+Q−1=3P0−I, C(H)=D(H)P0+23δ(H)−D(H)P⊥. Each r≤N is coprime to q, so its samples permute the grid. Summing
the square of 2ψ(a/q) gives δ(Hd)=3q2N(q−1)(q−2),δ(Hc)=3N. Subtract the two decompositions and use
D(Hc)−D(Hd)=Sp to obtain (37). The
operator-norm error is at most ∣Sp−1∣+3N/(2q). Theorem 1.1 proves the
stated limit and rate. Substituting D(Hc)=J(N) gives the transverse
formula. ◻
The half-unit corrections are measured against the exact continuous
response. The scalar sampling limit determines all three corrections in
this aggregation. The capacity deficit N−J(N) remains part of the
transverse response.
A unit at the common reset
Correcting a single sample is enough to make the discrete and
continuous readings agree asymptotically. To see this, change the
squared profile only at the origin, setting gN(0)=N2 and gN(x)=BN(x)2 otherwise. Its integral is
unchanged and its grid average increases by N2/p2. Therefore Sp=p2N2+∫01gN(x)dx−p21a=0∑p2−1gN(a/p2). The
expression in parentheses tends to zero by Theorem 1.1. Equation (5) identifies it as 4Ap/p2−NHN/(3p3). Thus
the signed interior estimate has a direct meaning for the table. After
correcting its common reset, the entire grid average approaches the
continuous reading.
The correction also fixes the relation to the continuous capacity
deficit. Exactly, p−p2Ep=[N−J(N)]+1+Sp=[N−J(N)]+2+o(1). One unit comes from
p−N=1 and the other from the sampling
limit. The continuous deficit N−J(N) carries its own finer asymptotics. Determining a third
constant in the full energy expansion requires those terms as well; the
remainder in the known capacity expansion still grows [7].
The next question is how quickly Sp approaches one. The numerical values in the secondary-term
calculation [7]
motivate a stronger rate.
Conjecture 15.1 (Square-root sampling rate). For
every ε>0, Sp=1+Oε(p−1/2+ε) as p→∞ through odd primes.
This bound allows fluctuations on either side of one. The origin
contribution N2/p2 differs from one
by O(p−1), so the proposed
square-root scale concerns the combined signed interior discrepancy. It
asks for stronger cancellation in the same source Ap, with all its weights and cutoff
terms retained.
The cubic law and its secondary term describe the growth of the carry
energy. The sampling limit identifies the persistent difference between
the finite table and its continuous reading. An integral ignores the
value assigned at a single point. The finite table records it.
The value one comes from the prescribed joint growth of the clocks
and the grid. There are N=p−1 clocks
and q=p2 samples, so the common reset
contributes N2/q. Its coherent square
grows at the rate needed to balance the diminishing weight of a single
sample. With the interior discrepancy controlled, this boundary
contribution survives on its own. One sample accounts for the limiting
difference of the entire table.
[2]J. B. Conrey, E. Fransen, R. Klein, and C. Scott, Mean values of Dedekind sums, J. Number Theory56 (1996), 214–226.
[3]J. de Jonge and C. Kraaikamp, Natural extensions for Nakada's α-expansions, descending from 1 to g2, preprint, 2017, https://arxiv.org/abs/1707.09321.
[4]D. R. Heath-Brown, A new k-th derivative estimate for exponential sums via Vinogradov's mean value, Proc. Steklov Inst. Math.296 (2017), 88–103, https://arxiv.org/abs/1601.04493.
Discussion
Sign in to join the discussion.