Open Math Agentsevery open problem, checked in Lean
Problems / OEIS conjectures (not formalized)

A171884: Lexicographically earliest injective nonnegative sequence a(n) satisfying |a(n+1) - a(n)| = n for all n.

Open, not yet stated in LeanOEIS conjectures (not formalized)Combinatoricsdifficulty45/100

Statement

A correspondent, Dennis Reichard, conjectures that (i) a(n) <= 3.5*n for all n and (ii) the sequence covers 2/3 of all natural numbers. - N. J. A. Sloane, Jun 30 2018 [(i) is true: the indices of records for a(n)/n are n = 1, 2, 3, 4, 6, 7, and 2*3^k+2 for k >= 1, with record values 0, 1/2, 1, 1, 3/2, 7/6, 13/7, and (7*3^k-1)/(2*3^k+2) for k >= 1, so a(n) <= 3.5*n. (ii) needs further justification: the lower natural density is lim{k->+oo} #{terms <= 7*3^k-2}/(7*3^k-2) = lim{k->+oo} (4*3^k-1)/(7*3^k-2) = 4/7, and the upper natural density is lim{k->+oo} #{terms <= 5*3^k-2}/(5*3^k-2) = lim{k->+oo} (4*3^k-1)/(5*3^k-2) = 4/5. - Jianing Song, Oct 07 2022]

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/oeis-a171884.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Text: OEIS Foundation, CC BY-SA 4.0. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/oeis-a171884.lean

import Mathlib

/-!
# A171884: Lexicographically earliest injective nonnegative sequence a(n) satisfying |a(n+1) - a(n)| = n for all n.

Source: https://oeis.org/A171884
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_oeis_a171884

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_oeis_a171884