Petty's Notebook
ArticlesPapersnfieldAbout
Get notified when new posts are published. No spam, just math.
Alexander S. Petty  |  ©2009-2026
← Back
Boundaries

The Orbit's Edge

May 30, 202611 min read
Companion paper: Additive Boundaries and Conductor Energies of Periodic Remainder Orbits →
The blue loop is a remainder orbit closing under multiplication. The gold edge beside it asks where addition crosses the orbit's boundary, and a longer orbit can still have a shallow edge.
The blue loop is a remainder orbit closing under multiplication. The gold edge beside it asks where addition crosses the orbit's boundary, and a longer orbit can still have a shallow edge.

Long division in base two turns 1/2431/2431/243 into a repeating block 162162162 digits long. The remainders behind it wander through 162162162 of the numbers below 243243243 before they come back to one. A cycle that long looks as if its arithmetic ought to be complicated. Its edge, though, is plain. Line the 162162162 remainders up in ordinary order and the set switches off at every multiple of three and back on one step later, the same three-place pattern the whole way around. Every character that responds to that edge needs nothing finer than modulus three. A two-digit rule in base fifteen, with far fewer pieces, spreads its edge over five different moduli. A cycle’s length and the depth of its edge are separate things, and the characters measure the edge.

Carry Boundaries and Bernoulli Spectra in Long Division reduced any finite digit rule to the signed edges of the cells it selects. A repeating tail isn’t a finite digit rule. Its remainders still form a set, though, the orbit that multiplication by the base carves out of the units, and that set has edges in the same sense. The tools are classical, characters, Gauss sums and Jacobi sums. The new part is an exact accounting of the edge’s squared response by conductor, with every level counted as a nonnegative amount, so that nothing at a lower resolution can hide behind a cancellation.

Three steps, four crossings

The smallest example is one seventh in base two. Its digits are 000, 000, 111 and then repeat, because the remainders go 1→2→4→11\to2\to4\to11→2→4→1, doubling each time and subtracting seven whenever they pass it.

The doubling cycle connects residues one, two and four on a seven-bead circle, with emitted digits zero, zero and one on the arrows. Below, the same beads in numerical order have entrances at one and four and exits at three and five. The doubling cycle connects residues one, two and four on a seven-bead circle, with emitted digits zero, zero and one on the arrows. Below, the same beads in numerical order have entrances at one and four and exits at three and five.
One seventh in base two. The doubling cycle 1 → 2 → 4 lights three beads, and read in ordinary order it has four signed crossings.

On the circle, the three gold beads are the remainders the cycle visits, joined by the doubling steps and labeled with the digits they write. Below, the same seven beads are laid out in ordinary order as a row of lit and dark cells. The row is dark at 000, lit at 111 and 222, dark at 333, lit at 444 and dark at 555 and 666. Reading left to right there are four crossings, into the lit cells at 111 and 444 and out of them at 333 and 555. Multiplication decided which beads are lit. Addition, stepping from each number to the next, finds where the lit set starts and stops, and 111 and 222 touch with no crossing between them even though multiplication treats them as separate stops. Give an entrance a minus sign and an exit a plus sign, and the signed edge at seven is minus at 111, plus at 333, minus at 444 and plus at 555.

The signed boundary and the character measurement

For a base bbb coprime to qqq, start at remainder one and let H=⟨b⟩H=\langle b\rangleH=⟨b⟩ be its multiplicative orbit modulo qqq. Write 1H\mathbf1_H1H​ for its membership function. The additive boundary is

μH(x)=1H(x−1)−1H(x).\mu_H(x)=\mathbf1_H(x-1)-\mathbf1_H(x).μH​(x)=1H​(x−1)−1H​(x).

For a Dirichlet character χ\chiχ, its boundary flux is

SH(χ)=∑x mod qμH(x)χ(x)=∑r∈H(χ(r+1)−χ(r)).\begin{aligned} S_H(\chi)&=\sum_{x\bmod q}\mu_H(x)\chi(x)\\ &=\sum_{r\in H}\bigl(\chi(r+1)-\chi(r)\bigr). \end{aligned}SH​(χ)​=xmodq∑​μH​(x)χ(x)=r∈H∑​(χ(r+1)−χ(r)).​

The second line follows by shifting the first sum by one. Each orbit point contributes the character’s change from that point to its neighbor.

A character is zero on residues that are not invertible modulo qqq. These measurements therefore recover only the boundary restricted to the units. They do not recover the boundary at nonunits. An odd character satisfies χ(−x)=−χ(x)\chi(-x)=-\chi(x)χ(−x)=−χ(x). Throughout this article, energy means a sum of squared magnitudes ∣SH(χ)∣2|S_H(\chi)|^2∣SH​(χ)∣2, without averaging and before applying a Bernoulli factor.

A different invertible starting remainder visits a coset of HHH. The examples and orbit formulas here use the orbit starting at one.

Six remainders, three arrows

At nine, doubling visits all six remainders that three doesn’t divide before returning,

1→2→4→8→7→5→1.1\to2\to4\to8\to7\to5\to1.1→2→4→8→7→5→1.

In numerical order they form three lit runs, entered at 111, 444 and 777 and left at 333, 666 and, wrapping around, 000.

A six-state doubling cycle modulo nine has visible entrances at one, four and seven. Their three negative character arrows align at conductor three, reaching minus three. At conductor nine they turn through a closed triangle. A six-state doubling cycle modulo nine has visible entrances at one, four and seven. Their three negative character arrows align at conductor three, reaching minus three. At conductor nine they turn through a closed triangle.
The six-step cycle at nine, entrances at 1, 4, 7 and exits at 0, 3, 6. One character lines the entrances up, and a conductor-nine character closes them into a triangle.

In the figure the violet ticks at 111, 444 and 777 are the entrances and the gray ticks at 000, 333 and 666 are the exits. The exits sit on multiples of three, where every Dirichlet character is zero, so only the three entrances count. Below, two odd characters read them. The character that only sees a remainder modulo three gives 111, 444 and 777 the same arrow, and the three minus signs line up into a response of −3-3−3, with squared length 999. A character that needs the full modulus nine turns the three arrows a third of a circle apart, and they close into a triangle with response zero. The other character of that kind closes its triangle the other way. The conductor of a character is the least modulus it needs, and every bit of response in this six-step cycle sits at conductor three.

Both triangles, with the phases written out

The units modulo nine are successive powers of two. Specify a character by

χj(2)=e2πij/6.\chi_j(2)=e^{2\pi i j/6}.χj​(2)=e2πij/6.

The odd characters have j=1,3,5j=1,3,5j=1,3,5. On the visible boundary μH=−δ1−δ4−δ7\mu_H=-\delta_1-\delta_4-\delta_7μH​=−δ1​−δ4​−δ7​, their responses are

SH(χ3)=−(1+1+1)=−3,SH(χ1)=−(1+ω+ω2)=0,SH(χ5)=−(1+ω2+ω)=0,\begin{aligned} S_H(\chi_3)&=-(1+1+1)=-3,\\ S_H(\chi_1)&=-(1+\omega+\omega^2)=0,\\ S_H(\chi_5)&=-(1+\omega^2+\omega)=0, \end{aligned}SH​(χ3​)SH​(χ1​)SH​(χ5​)​=−(1+1+1)=−3,=−(1+ω+ω2)=0,=−(1+ω2+ω)=0,​

where ω=e2πi/3\omega=e^{2\pi i/3}ω=e2πi/3. The first character factors through modulus three. The other two have conductor nine. Their triangles run in opposite directions and close at the same point.

More stops on the same circuit

Try twenty-seven, then eighty-one, then 243243243. Doubling visits 181818, 545454 and 162162162 remainders before coming home, and the circles fill with chords as the cycle lengthens.

Four exact doubling diagrams at moduli nine, twenty-seven, eighty-one and 243 grow from six to 162 visited remainders. Teal and gold chords record emitted binary digits. Violet entrance marks repeat between gray exits every three residues. Four exact doubling diagrams at moduli nine, twenty-seven, eighty-one and 243 grow from six to 162 visited remainders. Teal and gold chords record emitted binary digits. Violet entrance marks repeat between gray exits every three residues.
Doubling cycles at 9, 27, 81 and 243, every step drawn. The edge keeps one three-place rhythm, and the energies 9, 81, 729 and 6,561 all sit at conductor three.

Every chord in the figure is an actual doubling step, all 162162162 of them at 243243243, and the drawings get busier and busier. The edge doesn’t. Around every circle the entrances and exits keep the three-place rhythm shown along the bottom, an exit at each multiple of three and an entrance one step after it. The energies are 999, 818181, 729729729 and 6,5616{,}5616,561, which are 323^232, 929^292, 27227^2272 and 81281^2812, the squared number of aligned entrances each time. All of it stays at conductor three. The finer characters keep closing their arrows into polygons. The law is exact for any base whose powers visit every unit modulo an odd prime power, and a base that visits only some of the units can leave a different edge.

The prime-power law, conductor by conductor

Suppose H=UpeH=U_{p^e}H=Upe​ for an odd prime ppp. Membership fails exactly at multiples of ppp, so

μH(x)=1p∣x−1x≡1(modp).\mu_H(x)=\mathbf1_{p\mid x}-\mathbf1_{x\equiv1\pmod p}.μH​(x)=1p∣x​−1x≡1(modp)​.

Characters ignore the first term. At conductor ppp, every one of the pe−1p^{e-1}pe−1 remaining entries has phase one and boundary sign minus one. Each odd character there has flux −pe−1-p^{e-1}−pe−1.

At a higher conductor pfp^fpf, the visible residues project onto the subgroup of units congruent to one modulo ppp, with equal multiplicity. A primitive character of conductor pfp^fpf is nontrivial on that subgroup, so its sum over the subgroup is zero. This is the same cancellation as the triangle at nine, with more arrows.

There are (p−1)/2(p-1)/2(p−1)/2 odd characters at conductor ppp. Consequently

Pp=p−12 p2e−2,Ppf=0(2≤f≤e).\begin{aligned} P_p&=\frac{p-1}{2}\,p^{2e-2},\\ P_{p^f}&=0\qquad(2\leq f\leq e). \end{aligned}Pp​Ppf​​=2p−1​p2e−2,=0(2≤f≤e).​

The increasing energy is unnormalized. Both the size of the orbit and the magnitude of its flux grow. The conductor supporting that energy does not.

The energy below 225

Other edges spread out. In base fifteen, the rule asking for a repeated digit in a two-digit word picks the cells 0,16,32,…,2240,16,32,\ldots,2240,16,32,…,224 out of 225225225. A character written modulo 225225225 may already be determined modulo 999 or 252525, so count each odd character at the least modulus it needs and add up the squared responses level by level.

A segmented area divides 1920 units of boundary energy into five positive contributions. Five residue rings show the collected boundary at conductors nine, twenty-five, forty-five, seventy-five and 225, beside proportional bars of lengths 24, 240, 360, 400 and 896. A segmented area divides 1920 units of boundary energy into five positive contributions. Five residue rings show the collected boundary at conductors nine, twenty-five, forty-five, seventy-five and 225, beside proportional bars of lengths 24, 240, 360, 400 and 896.
Base fifteen’s 1,920 units of squared response, 896 at conductor 225 and 1,024 below it, split into five nonnegative levels.

The long bar at the top divides 1,9201{,}9201,920 units of squared response by area, 896896896 at the full conductor 225225225 and 1,0241{,}0241,024 below it. The rows underneath give the five occupied levels, each beside a small ring showing the boundary collected at that modulus. They hold 242424 at conductor nine, 240240240 at twenty-five, 360360360 at forty-five, 400400400 at seventy-five and 896896896 at 225225225. Every row is a sum of squares, so nothing elsewhere can cancel it. Keeping only the characters that need all of 225225225 would miss more than half the energy.

The exact ledger and a boundary that cancels without vanishing
Conductor Boundary energy
9 24
25 240
45 360
75 400
225 896
Total 1920

To look at a smaller modulus ddd, first restrict the boundary to the units of the original modulus mmm. Then add the weights whose residues agree modulo ddd. Call that collected boundary MdM_dMd​.

Md(r)=∑x∈Umx≡r(modd)μ(x).M_d(r)=\sum_{\substack{x\in U_m\\x\equiv r\pmod d}}\mu(x).Md​(r)=x∈Um​x≡r(modd)​∑​μ(x).

Collecting the weights is only the first step. Their arrangement determines which characters can see them. A nonzero collected boundary can still be invisible to every odd character.

In base five, select the two-digit cells whose first digit is smaller than the second. The unit-visible boundary modulo twenty-five consists of four entrances,

μ=−δ1−δ7−δ13−δ19.\mu=-\delta_1-\delta_7-\delta_{13}-\delta_{19}.μ=−δ1​−δ7​−δ13​−δ19​.

Modulo five, each of the four nonzero residues receives weight minus one. Opposite residues therefore have equal weights. An odd character gives those residues opposite phases, so their contributions cancel in pairs.

A five-by-five grid selects the base-five words whose first digit is smaller. Four violet marks identify unit-visible entrances. After reduction modulo five, four signed character arrows point in opposite pairs and cancel at the center. A five-by-five grid selects the base-five words whose first digit is smaller. Four violet marks identify unit-visible entrances. After reduction modulo five, four signed character arrows point in opposite pairs and cancel at the center.
Base five’s first-digit-smaller rule. Its four entrances collect to equal weights at opposite residues, so every odd character cancels them.

The collected boundary has not vanished. Its odd response has. Here P5=0P_5=0P5​=0 and P25=40P_{25}=40P25​=40.

For a general ledger, let

Δd=∑r∈Ud∣Md(r)∣2,Ad=∑r∈UdMd(r)Md(−r)‾.\begin{aligned} \Delta_d&=\sum_{r\in U_d}|M_d(r)|^2,\\ A_d&=\sum_{r\in U_d}M_d(r)\overline{M_d(-r)}. \end{aligned}Δd​Ad​​=r∈Ud​∑​∣Md​(r)∣2,=r∈Ud​∑​Md​(r)Md​(−r)​.​

Odd-character orthogonality gives the energy through level ddd as φ(d)(Δd−Ad)/2\varphi(d)(\Delta_d-A_d)/2φ(d)(Δd​−Ad​)/2. Isolate exact conductor DDD by Möbius inversion,

PD=12∑d∣DμMob(D/d)φ(d)(Δd−Ad).P_D=\frac12\sum_{d\mid D}\mu_{\rm Mob}(D/d)\varphi(d)(\Delta_d-A_d).PD​=21​d∣D∑​μMob​(D/d)φ(d)(Δd​−Ad​).

The terms used to calculate PDP_DPD​ can have signs. The resulting PDP_DPD​ cannot be negative. Concentration at the top means every proper-conductor entry is zero. The exact condition at each level is that its primitive odd projection vanishes, which can happen while the collected boundary itself is nonzero.

The neighbor at minus one

The orbit is built by multiplication, yet its edge compares a remainder with its neighbor. Classical Jacobi sums describe exactly that meeting of the two operations.

For the orbit of squares modulo a prime, the calculation lands on a small and unexpected address. After the characters that are constant on the orbit are set aside, the remaining energy follows one of four formulas, chosen by the prime modulo eight. The proof explains the eight. Odd-character cancellation leaves a single contribution where the shifted neighbor is minus one, so the remainder itself is minus two. Whether minus two is a square is decided by the prime modulo eight.

The Jacobi calculation, including the endpoint correction

Let qqq be an odd prime and ψ\psiψ its quadratic character. For an odd character χ\chiχ not constant on the square orbit, define

J+(ψ,χ)=∑y mod qψ(y)χ(y+1).J_+(\psi,\chi)=\sum_{y\bmod q}\psi(y)\chi(y+1).J+​(ψ,χ)=ymodq∑​ψ(y)χ(y+1).

The orbit flux is

SH(χ)=J+(ψ,χ)−12.S_H(\chi)=\frac{J_+(\psi,\chi)-1}{2}.SH​(χ)=2J+​(ψ,χ)−1​.

The minus one comes from the missing unit at zero. Indeed, extending characters by zero there,

1H=1+ψ2−δ02.\mathbf1_H=\frac{1+\psi}{2}-\frac{\delta_0}{2}.1H​=21+ψ​−2δ0​​.

Taking its additive boundary introduces −(δ1−δ0)/2-(\delta_1-\delta_0)/2−(δ1​−δ0​)/2. Pairing with χ\chiχ contributes −1/2-1/2−1/2. The other unshifted character product sums to zero because χ\chiχ is off resonance. That leaves the displayed formula.

The classical Jacobi magnitude is ∣J+∣2=q|J_+|^2=q∣J+​∣2=q. On summing over the off-resonant odd characters, orthogonality tests y+1=1y+1=1y+1=1 and y+1=−1y+1=-1y+1=−1. The first gives y=0y=0y=0, where ψ\psiψ is zero. The second gives ψ(−2)\psi(-2)ψ(−2). Write r=q mod 8r=q\bmod8r=qmod8. The supplementary laws for ψ(−1)\psi(-1)ψ(−1) and ψ(2)\psi(2)ψ(2) then yield

Eoff(q)={(q−1)(q+3)/8,r=1,(q−3)(q+3)/8,r=3,(q−1)2/8,r=5,(q−5)(q+1)/8,r=7.\begin{gathered} \mathcal E^{\rm off}(q)=\\ \begin{cases} (q-1)(q+3)/8,&r=1,\\ (q-3)(q+3)/8,&r=3,\\ (q-1)^2/8,&r=5,\\ (q-5)(q+1)/8,&r=7. \end{cases} \end{gathered}Eoff(q)=⎩⎨⎧​(q−1)(q+3)/8,(q−3)(q+3)/8,(q−1)2/8,(q−5)(q+1)/8,​r=1,r=3,r=5,r=7.​​

At 7,17,23,317,17,23,317,17,23,31 these are 2,40,54,1042,40,54,1042,40,54,104. Off-resonant energy excludes any odd character constant on the orbit. At seven, the quadratic character is one such character. Its squared response is sixteen, making the full odd energy eighteen rather than two.

Jacobi sums and the study of neighboring power residues are classical. Lehmer, Lehmer and Mills study consecutive power residues, and Girstmair connects digit variance with Dedekind sums. The calculation here applies that arithmetic to the signed edge and separates its squared responses by exact conductor.

Additive Boundaries and Conductor Energies of Periodic Remainder Orbits gives the proofs, the expansion for higher-index orbits and the conditions under which a finite-state digit rule extends to a boundary on all residues. Its energy is measured before the Bernoulli factor. For primitive odd characters, multiplying the boundary response by the negative Bernoulli factor gives the carry coefficient.

Three compact views of the calculations
The seven-residue construction in one circle. Multiplication visits one, two and four; addition detects the four signed crossings.
The seventh’s cycle in one circle, three visits and four crossings.
The exact-conductor ledger as five positive bars. Their sum is 1920, of which 1024 lies below conductor 225.
The five conductor levels at 225 as bars, totaling 1,920.
The prime-level reduction at nine. All three unit-visible entrances reduce to one modulo three, giving response minus three and squared magnitude nine.
The reduction at nine, three entrances all at 1 modulo 3, with response −3.

Back at 243243243, the doubling circuit takes 162162162 steps to come home, one for each remainder it visits. Its edge is the three-place pattern, an exit at a multiple of three and an entrance one step later, eighty-one times around the circle. The odd characters see those 818181 entrances all pointing the same way at conductor three and nowhere else, and the energy is 6,5616{,}5616,561, exactly 81281^2812. The base-fifteen rule, with only thirty formal edges, needs five conductors to hold its 1,9201{,}9201,920.

Companion paper: Additive Boundaries and Conductor Energies of Periodic Remainder Orbits →
Share

Discussion

Sign in to join the discussion.

← All articlesRead the paper →
← Previous: Carry Boundaries and Bernoulli Spectra
Next: Digit Collisions and the Cubic Law →