A330155: Triangle read by rows. Given n enumerated cards in a stack, with 1 at the top and n at the bottom, repeat the following process k
Statement
Conjecture: Each diagonal forms a unique sequence S. Let S(m) be the m-th diagonal in T, for example with m=2, S(2) = 1,3,3,2,1,7,...; then T(n,k) = k-th element in S(n-k+1). Let z = ceiling(m/2); the first z elements in S(m) are z,z-1,z-2,...,1. Let G(x) = 3*((x-2)/2)+2 if x even, 3*((x-1)/2)+1 otherwise. Let B(x) = Sum_{i=0..x-1} 2*G(m)*3^i. Let C(x) = z if x=0, B(x)+z otherwise. C(x)-th element in S(m) is 1, for all x >= 0. Let D(x) = G(m)*3^(x-1), with x > 0. Let y = minimum x such that k <= C(x). Finally S(m) = z-k+1 if z >= k, D(y)+1 if C(y)-k >= D(y), C(y)-k+1 otherwise. for all k. Then T(n,k) = k-th element in S(n-k+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-a330155.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-a330155.lean
import Mathlib /-! # A330155: Triangle read by rows. Given n enumerated cards in a stack, with 1 at the top and n at the bottom, repeat the following process k Source: https://oeis.org/A330155 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_a330155 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a330155