Erdős 261 greedy carry: closed form for a block of subtracting steps
ProvedErdos261.subtracting_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 subtracting, then with ,
equivalently . For () this recovers with the Borwein–Loring numbers .
Preamble
import Mathlib import Definitions.Def_Erdos261_defs open Finset
Formal statement
namespace Erdos261
theorem subtracting_block (n j l : ℕ)
(h : ∀ i < l, ((n + j + i + 1 : ℕ) : ℤ) ≤ 2 * greedy n (j + i)) :
greedy n (j + l) + 2 ^ l * ((((n + j : ℕ) : ℤ) - greedy n j) + 2) = ((n + j + l : ℕ) : ℤ) + 2 := 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.3)/(A.4) of claim from GPT 6.1 Sol (fourth answer, Oct 23 2026), Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026)