A193358: a(0)=1; a(1)=2 and for n>1: a(n)=a(n-a(n-2))+2.
Statement
Conjecture: Every positive integer is in this sequence. · Conjecture: Odd numbers are not repeated. · Both conjectures are true. Sequence follows the pattern: for n = 0,1,2,..., the sequence consists of 2*n terms of value 2*(n+1), followed by the terms 2*n+1 and 2*(n+1). Thus 0 terms of 2 followed by 1 and 2, then 2 terms of 4 followed by 3 and 4, then 4 terms of 6 followed by 5 and 6, etc. In other words, a(n*(3+n)) = 2n+1 and for the rest of the terms, a(n*(n+1)) ,..., a(n+(n+1)^2) = 2*(n+1). It can be shown that this definition satisfies the recurrence relation.
Posed by Chai Wah Wu · OEIS
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-a193358.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-a193358.lean
import Mathlib /-! # A193358: a(0)=1; a(1)=2 and for n>1: a(n)=a(n-a(n-2))+2. Source: https://oeis.org/A193358 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_a193358 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a193358