Outside the Borwein–Loring numbers, the Erdős 261 greedy carry cannot stop within its first two phases
ProvedErdos261.no_two_phase_terminationLet 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 . Write (so , ; these are the Borwein–Loring numbers). Theorem. Suppose (so is not a Borwein–Loring number) and that the steps after step are all doubling steps, i.e. for . Then
So the orbit cannot reach during its initial subtracting run, during the following doubling run, or at the first subtracting step after it. Writing , after the doubling run , and termination at the next step would mean , which is impossible (for it would force ). Every terminating other than the Borwein–Loring numbers therefore needs a later phase.
import Mathlib import Definitions.Def_Erdos261_defs open Finset
namespace Erdos261
theorem no_two_phase_termination (n j t : ℕ) (h1 : 2 ^ (j + 1) - j - 2 < n) (h2 : n < 2 ^ (j + 1 + 1) - (j + 1) - 2)
(hdbl : ∀ s < t, greedy n (j + s + 1) = 2 * greedy n (j + s)) :
∀ i ≤ j + t + 1, greedy n i ≠ 0 := by sorry
end Erdos261