Two trips, no lasting change
Write 6 and 10 in binary: and . Both end in one zero. Feed them to Turing machine 3626, and both runs end after five steps with the tape exactly as it started. Try 12 (): one more trailing zero, but thirteen steps. This machine doesn’t compute a new number. The interesting question is how long it takes to leave the old one intact.
The exit is on the right
Number the cells from right to left; cell holds the bit worth . The tape extends left forever, with zeros in all unused cells. The head starts at cell 0 in state . Each step writes a bit, moves one cell and updates the state. Moving right from cell 0 ends the run, and that move counts.
| State | Reads 0 | Reads 1 |
|---|---|---|
| Write 0, move left, stay in | Write 1, move right, enter | |
| Write 1, move left, enter | Write 0, move right, stay in |
For 6, the tape reads 0 1 1 from the head leftward. The first two steps pass the zero and return from the first one. On step three, state changes the zero to a temporary one and sends the head left again. On step four, the same first one sends the head back. Step five erases the temporary mark and exits. The farther one is never touched. For 10 the higher bits are different, but the trip is the same.
What makes the machine take two trips?
Let , where is any finite string of higher bits followed by implicit zeros. There may or may not be cells to the right of the starting cell. Watch for a local event: the first move right past the starting cell, whether or not that move halts the whole machine.
Start in state on the first cell of , for any , any higher bits , and any finite right context . At the first rightward crossing of the starting cell, all tape symbols have been restored. If is empty, the move exits; if (nearest bit first), the state is with the head on , leftward string , and remaining right context . The time is independent of both strings:
Following Ma and Zhang, §2: with no zero before the first one, rule crosses immediately without changing the bit. For , rule enters . The induction hypothesis brings the head back to the saved zero in state after moves; the presence of that extra cell prevents any earlier exit from the full tape. Rule writes a temporary one and re-enters in state . A second full -step trip returns to the same cell, now marked one. Rule changes it back to zero and makes the first crossing of the original starting cell. Each trip restores its block and never passes its own start before its final move. The three single moves and the two trips give the recurrence. Adding three gives , with .
Why does a divisor sum give the same answer?
Every positive integer is uniquely with odd. The exponent , written , counts how many times you can divide by 2, or how many zeros end the binary numeral. For example, , so . Zero is excluded: there is no first one on an all-zero tape, and state moves left forever.
Euler’s totient counts integers from 1 to that are coprime to . For with , just the odd ones qualify, so . The Möbius function gives zero if a prime square divides ; otherwise it gives a sign according to the number of distinct primes, with . Bala’s two sums are
For every positive , the machine halts, restores every tape bit, and its first boundary-crossing time satisfies . The machine half of this result is the restoring argument with and an empty right context.
Pair each odd divisor with when is even. Both the Möbius sign and the sign from parity flip, so the pair contributes . Terms divisible by 4 give zero. If the odd part exceeds 1, choosing whether to include each distinct prime of gives the expansion of , and the contributions cancel. Only and for survive. In particular, , not 4: this is the paper’s correction to a comment in A296306.
For 12 the divisors are 1, 2, 3, 4, 6 and 12, but only the powers of two count. So . In general, . On odd inputs the sum is empty and the answer is one. The run and the divisor sum see the same feature of the input: how many factors of 2 can be peeled off.
Watch how temporarily marking one zero turns one trip into two.
From one input to a whole range
Among (), there are inputs with exactly trailing zeros and time : subtract the multiples with at least one extra zero. Split as , and the total time is . Among the inputs of binary length , the average is and the maximum is , reached only by . The average grows linearly in the number of bits, but the slowest runs grow much faster.
Under the same initialization and boundary convention, both other machines restore all bits for positive inputs. Machine 3589 turns at the first one and exits directly in steps. Machine 3197 takes steps: one on even inputs, three on odd inputs. The recurrence for 3626 does not carry over to different rules.
Sources and scope
Haobo Ma and Wenlin Zhang, paper, version 3, §§1–4, CC BY 4.0. Peter Bala posed the question on September 11, 2026, in A393210, Comments revision 18, and A069517, Formula revision 31. The paper credits Sequence Machine’s April 18, 2026 record of the equivalent pointwise XOR formula and Stephen Wolfram’s 2026 worst-case formula. The contribution is not the first appearance of the answer: it is a proof for every positive input that connects a restoring trace to the signed divisor sum. The paper also credits Antti Karttunen and Amiram Eldar for prior descriptions of the support of the signed Möbius sum in A069517.
The pinned Lean code proves that the first boundary-crossing trace on positive inputs has length equal to the divisor sum. Its public halting endpoint does not carry the final tape. This does not certify the restoring lemma with arbitrary right context or all of the paper’s corollaries. The restoring-lemma request describes the missing statement and the proof it can reuse. The examples illustrate the proof, not replace it. The paper does not address the A000695 tree conjecture or the behavior of machine 924.
What else the powers of two count
The paper’s §3 follows a simple idea: once the signed Möbius sum has cancelled on all divisors except powers of two, you can change the weight of each surviving divisor. The formulas below are for and ; a sum with no terms is zero.
For each integer and any complex-valued weight on the positive integers,
The surviving weights at and at are multiplied by and , respectively.
For integers and , the sum is if , and if . These are the constant-weight and geometric-sum cases. For every integer , : a term with or contributes zero.
For integer , the weight gives ; the weight gives . Here the indicator equals one on even inputs and zero otherwise. Only and can contribute since for . The second sum at , and , give 1 on odd inputs and 3 on even inputs. They are A010684, not the term at that machine 3197 gives.
Put and (A276391 and A038712). For positive , , , and . If , the odd/even split gives , hence for . For binary digits of , : changing to adds one base-four digit and removes its lower ones.
For , with , the paper gives . In particular and . Each weight exceeds the sum of the preceding weights, so changing the highest differing digit orders the sums. This yields as a formal series. The paper credits Bannister et al. for prior proof of the asymptotic and digit formula, and Bala for the A080277 product identity.
For real , write . A term with index occurs exactly at the positive multiples of , so geometric sums give
The respective powers give A038712, A296306 and A318935; and . Ralf Stephan’s 2003 result already gives the ordinary series for positive-integer weights .
For a prime and with , every divisor is uniquely , with and . Factoring the common positive sum over gives, for real ,
This ratio is integral at nonnegative integer exponents. At , put . Its value set is exactly for integers . For , since the two arguments have the same valuation. Counting each valuation in this prefix gives . These are the four A296306 claims; the paper credits David Radcliffe’s earlier formula and M. F. Hasler’s earlier explanations.
For and , the ratio of the sum of cubes of all divisors to the sum of cubes of the odd divisors is . Equivalently, : each with contributes after multiplication by four. See A318935 and the antecedents credited in §3: Lamont, Sloane, Wu and Eldar.
Source: Haobo Ma and Wenlin Zhang, version 3, §3. These are arithmetic consequences, not additional claims about machine 3626’s tape.
Verification ledger
Lean-verified results correspond to frozen declarations in trureturing. Written proofs and open items are listed separately below. The table lists the Lean correspondence; links are fixed to the pinned commit, so they do not drift with upstream changes.
Formal basis: trureturing commit 8a24ea4e79de · the-omega-institute/trureturing
(none)
Written proofs
These results cite DOI sources, book proofs and registered formalization requests. They are not kernel-verified and are excluded from LEAN ✓ counts.
- Lemma 1.1 — Restoring first crossing · Proof · DOI: 10.5281/zenodo.24405774 · Lemma 1, Section 2 · trureturing-requests#530
Open problems and conjectures
The following items are explicitly marked open; the book does not treat them as proved.
(none)