A398446: Number of permutations of [n] avoiding the pattern 1324 with the maximum element n in position n-2.
Statement
Conjecture: for d >= 1, A395725(n,n-d) = pd(M)*binomial(2*M,M) + qd(M)*4^M with M = n-1-d, where deg pd = d-1 with leading coefficient 1/d!, q1 = 0, and for d >= 2, deg qd = d-2 with leading coefficient binomial(d,2)/d!, pd(0) - qd(0) = 1, and pd(0) + qd(0) = A061552(d). Verified for d = 1..9. This sequence is d = 2, where those conditions leave nothing free: p2 = (M+3)/2 and q2 = 1/2. The next case is d = 3, with p3 = (M^2+11*M+21)/6 and q_3 = (M+5)/2.
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-a398446.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-a398446.lean
import Mathlib /-! # A398446: Number of permutations of [n] avoiding the pattern 1324 with the maximum element n in position n-2. Source: https://oeis.org/A398446 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_a398446 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a398446