A232895: Sequence (or tree) S of all positive integers in the order generated by these rules: 1 and 2 are in S; if x is in S then x + 2 and
Statement
Let S be the sequence (or tree) of numbers generated by these rules: 1 and 2 are in S; if x is in S then x + 2 and 2*x are in S, where duplicates are deleted as they occur. Every positive integer occurs exactly once in S, so that S is a permutation of the natural numbers. Deleting duplicates as they occur, the generations of S are given by g(1) = (1,2), g(2) = (3,4), g(3) = (5,6,8), g(4) = (7,10,12,16), ... Concatenating gives 1,2,3,4,5,6,8,... Conjecture: the position of the n-th odd positive integer in S is the linearly recurrent sequence given by A232896(n) for n>=1.
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-a232895.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-a232895.lean
import Mathlib /-! # A232895: Sequence (or tree) S of all positive integers in the order generated by these rules: 1 and 2 are in S; if x is in S then x + 2 and Source: https://oeis.org/A232895 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_a232895 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a232895