A255992: T(n,k)=Number of length n+k 0..1 arrays with at most one downstep in every k consecutive neighbor pairs.
Statement
T(n,k) = n+k+1 + Sum{r=1..floor((n-2)/k)+2} Sum{j=0..r-1} (-1)^j*C(r-1,j)*(k-1)^(r-1-j)*(k-2)^j*C(n+(2-r)*k+2*r-1-j,2*r+1). This confirms all conjectures here and in the related sequences A255993-A255998 (see Fried link).
Posed by Sela Fried · 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-a255992.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-a255992.lean
import Mathlib /-! # A255992: T(n,k)=Number of length n+k 0..1 arrays with at most one downstep in every k consecutive neighbor pairs. Source: https://oeis.org/A255992 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_a255992 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a255992