Zero runs and four-cycle capture
Start with two numbers, . To get the next number, square the older one and add it to the newer one, then keep only the remainder on division by three. The next two numbers are and . After that, leaves remainder , and the pair of numbers has returned to . From there the same instructions give the same future. This small example is the key both to searching an infinite sequence and to telling when a pattern guarantees repetition.
Haobo Ma and Wenlin Zhang’s version 3 paper extends two questions of Steven R. Finch. Its first result shows that a bound on the length of a pattern need not be reached. Its second distinguishes when a sequence is already repeating from when a long enough pattern certifies that it is repeating.
A sequence with a longer memory
Choose a lag . The first entries are and entry is . After that use . All indices start at . Squaring turns each nonzero entry into modulo three: and leave the same remainder. So each step either stays put or advances one place around the circle .
A run with gaps begins at and has zeros at , with no other zeros between them. It has zeros, and it can be part of a longer run. For instance, at lag two the block from position through is : two zeros, one gap. The identical-looking block from through does not count, because it starts before .
Why fifteen is not always reached
Finch showed that for lags congruent to or modulo four, the number of gaps is at most . The bound at lag is . An upper bound does not promise a witness: the allowed length might never occur in this particular sequence.
At lag the maximum is exactly ten gaps, and the ten-gap runs start precisely at for integers . The least eventual period is and the least such that for all is .
The next term only needs the oldest and newest entries in the current window of terms. Write that window as a base-three number with the newest entry on the right; is the window ending at position . To advance, discard the leftmost digit, shift the others left by one place, and append the new value. The state is the whole window, not just its newest digit. Only a repeated window guarantees that all later windows repeat.
The manuscript’s finite certificate checks that through are distinct and that the next state is . Thus the same windows recur forever. This gives the least period and preperiod, not just a period: an earlier state repeat would contradict distinctness. An eventual period for the entries repeats every corresponding window, and a period for the windows already repeats the entries, by reading each window’s oldest digit.
To look for eleven gaps it is enough to inspect entries at the end of a window. Reading backwards preserves the pattern because is a multiple of four. None of the reachable windows passes this test. And any longer run would begin with eleven gaps. For ten gaps the test uses entries: the only matching window is , ending at position and giving start . Its entries are ten copies of followed by . Since the window is on the cycle, every recurrence of it gives another start exactly places later. The finite list works because it is closed under the next step, not because it is long.
Counting from the last disagreement
For a sequence whose least eventual period is four, write for the least nonnegative index after which four-step repetition is exact, so the condition is for every . Let and let be the earliest endpoint of an admissible -gap run. This is called capture: a run ends with a zero and specifies at least consecutive zero/nonzero indicators. Those indicators, together with the endpoint value, determine the future. The start need not be the first zero in the repeating tail.
If and the least eventual period is four, then at and for . In the latter case or . The two cases give or , and or , respectively.
At lag two, the opening example already repeats from the beginning, so . Here and the first eligible pair of zeros is at and . This explains why Finch’s original proposed offset of six fails even though it holds for every eligible larger lag.
For , extend the repeating tail backwards as a four-periodic sequence . Its increments around a cycle sum to zero modulo three, and the number of increments of size one is the number of nonzero entries. A least period of four therefore gives exactly three nonzeros. Starting with its unique zero, the block is . The step that stays still must look back to the only zero; it occurs at offset two for , and offset three for . This forces the two permitted residues of .
The initial stretch of ones from position forces when and when : the cycle can supply at most two or one consecutive ones, respectively. Write and . Comparing steps at index shows that for the indicators of and agree: both values used to compute the increment are already in the common tail. At the indicators differ, since equal indicators would force . This is why the zero pattern can be known earlier than the actual values.
At , the values disagree but are both nonzero. The first and last nonzero positions of the block cannot be the disagreement: the wrong value at either would force a forbidden step of size two. The middle position then gives the triples in Theorem 2. The recurrence at gives in residue class two and in residue class three. The first two zeros after are and . No capturing run can end at or before , because capture would force agreement with from that endpoint on. To end at the candidate starts at in residue class two, giving an extra interior zero at , or at in class three, which is nonzero. Both fail. At the candidate starts at or ; the initial bounds on make it admissible, and the matching indicators give the full run.
Under Theorem 2’s hypotheses, the indicators just before the first start satisfy for larger lags in class two, and , for class three. At the proposed neighborhood condition fails: but .
In both larger-lag cases : in class two it follows a zero and is nonzero; in class three it is nonzero and must step into . Hence the step into gives or , at or , respectively. In class three is a nonzero position in the matching indicators. The lag-two failure concerns this condition, not by itself the full equivalence proposed by Finch.
From a repeating window to the two candidate capture endpoints.
Evidence and limits
The pinned Lean proof for lag rules out universal attainment using the missing eleven-gap pattern. It does not assert the ten-gap witness, all its starts, or the least period and preperiod. The pinned Lean proof for capture refutes the original assertion using lag two, not the general correction or Corollary 3. Those additions are written proofs in Ma and Zhang’s paper; the finite examples for other lags do not classify which sequences eventually have period four or settle Finch’s six individual attainment cases. The shared contribution requests cover the exact lag-61 result, the conditional capture theorem, and the neighborhood conditions.
The original definitions and questions are in Finch’s Three Quadratic Recurrences Modulo 3, §§4, 6–7. Finch’s 2002 note, §0.2 records B. Harder’s earlier computation of the period . V. S. Miller’s account records R. Pinch’s explanation of the four-periodic patterns. The full arguments and certificate are in Ma and Zhang, Extending Finch’s zero-run analysis, version 3, §§1–4, CC BY 4.0.
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.
(none)
Open problems and conjectures
The following items are explicitly marked open; the book does not treat them as proved.
(none)