Erdős 261 greedy carry: closed form for a block of doubling steps
ProvedErdos261.doubling_blockerdos-problemsnumber-theory
Let be the greedy carry for Erdős Problem 261 started at : , and if (a subtracting step), otherwise (a doubling step). The greedy algorithm for terminates iff some . Theorem. If steps are all doubling, then
Together with subtracting_block this gives the exact phase calculus of the greedy orbit: every phase acts by an explicit affine map, so termination after a fixed phase pattern is an exponential Diophantine condition.
Preamble
import Mathlib import Definitions.Def_Erdos261_defs open Finset
Formal statement
namespace Erdos261
theorem doubling_block (n j t : ℕ)
(h : ∀ i < t, 2 * greedy n (j + i) < ((n + j + i + 1 : ℕ) : ℤ)) :
greedy n (j + t) = 2 ^ t * greedy n j := 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); (A.8) of claim from GPT 6.1 Sol (fourth answer, Oct 23 2026), Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026)