A076217: a(1)=1, a(n) = a(n-1) + n * sign(n-a(n-1)).
Statement
Conjecture: a(n) = -a(n-1)+a(n-2)+a(n-3) for n>5. G.f.: -x*(27*x^28 +54*x^27 +27*x^26 +9*x^10 +18*x^9 +9*x^8 +3*x^4 +6*x^3 +5*x^2 +4*x +1) / ((x -1)*(x +1)^2). · Regarding Barker's conjectured recurrence, it seems to fail at n= powers of 3, and the 2 successive terms. So it holds except for n= 9-11, 27-29, 81-83, 243-245, ....
Posed by Bill McEachen, Colin Barker · OEIS nice
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-a076217.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-a076217.lean
import Mathlib /-! # A076217: a(1)=1, a(n) = a(n-1) + n * sign(n-a(n-1)). Source: https://oeis.org/A076217 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_a076217 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a076217