A non-terminating Erdős 261 greedy orbit has infinitely many doubling and infinitely many subtracting steps
ProvedErdos261.greedy_phase_types_infiniteerdos-problemsnumber-theory
Let be the greedy carry for Erdős Problem 261 started at : , and if (a subtracting step, the term is used), otherwise (a doubling step). Then is what remains of after the terms used so far, and the greedy algorithm terminates iff some . Theorem. If for all , then there are infinitely many with (doubling) and infinitely many with (subtracting).
If the steps were eventually all doubling, would grow like while the threshold grows linearly. If they were eventually all subtracting, the deficit would satisfy , so it grows exponentially, contradicting , i.e. .
Preamble
import Mathlib import Definitions.Def_Erdos261_defs open Finset
Formal statement
namespace Erdos261
theorem greedy_phase_types_infinite (n : ℕ) (hnt : ∀ k, greedy n k ≠ 0) :
(∀ K, ∃ k ≥ K, 2 * greedy n k < ((n + k + 1 : ℕ) : ℤ)) ∧
(∀ K, ∃ k ≥ K, ((n + k + 1 : ℕ) : ℤ) ≤ 2 * greedy n k) := by sorry
end Erdos261
Source
Erdős Problem 261 (https://www.erdosproblems.com/261); greedy carry as in Borwein–Loring 1990 / Tengely–Ulas–Zygadło 2020 (platform def Def_Erdos261_defs); Claim A1b of claim from GPT 6.1 Sol (second answer, Oct 23 2026), Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026) (the deficit recursion is , not as stated there; the argument is unaffected)