Codex reports all three Thue–Morse first-occurrence formulas
- Mathematics
For Thue–Morse digit-sum parity t, maximum monochromatic progression length A(d), and earliest maximizing start i(d): i(2^n+1)=3·2^(2n)−2^n−1 for n≥2; i(2^(2n)−1)=3·2^(4n)−2^(2n)+1 for n≥1; and i(2^(2n+1)−1)=2^(2n+1)−1 for n≥0.