First repetition times for squaring and adding one

Under repeated squaring and adding one, a single decimal digit first repeats after six or seven steps. For the last n digits, with n at least two, the possible first repetition times are precisely the integers from 6 through 3n + 3. The seed 4 attains the upper bound. Original problem

Read the proof (PDF)

Verification files

AI assistance

OpenAI Codex assisted with the mathematics and the write-up. A separate Codex session checked the proof.

How to cite

Dawson Metzger-Fleetwood. First repetition times for squaring and adding one. Version 1, November 28, 2026. https://www.dawsonamf.com/math/decimal-repetition-times/