A165540: Number of permutations of length n which avoid the patterns 1234 and 2341.
Statement
Conjecture: +(14681*n+187954)*(n+3) *a(n) +(14681*n^2-2696783*n-4897218) *a(n-1) +(-888761*n^2+12771539*n+5490342) *a(n-2) +2*(1635223*n^2-14850835*n+13281012) *a(n-3) +2*(-1908503*n^2+15402653*n-25889820) *a(n-4) +156*(2*n-7)*(3301*n-14374) *a(n-5)=0.
Posed by R. J. Mathar · 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-a165540.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-a165540.lean
import Mathlib /-! # A165540: Number of permutations of length n which avoid the patterns 1234 and 2341. Source: https://oeis.org/A165540 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_a165540 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a165540