The alternating word 13 is maximal on digits one through three
ProvedFreiman.background_period13_first_differencecontinued-fractionsmarkov-spectrumnumber-theory
At the first disagreement with the periodic word 13, a positive word using only digits at most three has the continued-fraction order making it smaller.
Preamble
import Definitions.Def_Freiman_backgroundWords
Formal statement
namespace Freiman
theorem background_period13_first_difference (b : ℕ → ℕ+) (hb : ∀ n : ℕ, (b n : ℕ) ≤ 3)
(n : ℕ) (hp : ∀ k : ℕ, k < n → b k = backgroundPeriod13 k)
(hd : b n ≠ backgroundPeriod13 n) :
if Even n then backgroundPeriod13 n < b n else b n < backgroundPeriod13 n := by
sorry
end FreimanSource
Freiman's Hall ray: Proof report and corrected English text, 8 September 2026, §1.4, Lemma 1.7 and its proof, printed pp. 11–12.