A177316: Number of permutations of n copies of 1..4 with all adjacent differences <= 1 in absolute value.
Statement
From Peter Bala, Jan 14 2020: Conjecture: a(n) = (1/3)*( A005259(n) + A005259(n-1) ). Equivalently, a(n) = Sum_{k = 0..n} binomial(n,k)^2*binomial(n+k-1,k)^2. Cf. A103882. If true, then the sequence satisfies the recurrence a(n) = (2*(102*n^6 - 612*n^5 + 1462*n^4 - 1768*n^3 + 1143*n^2 - 382*n+52) * a(n-1) - (2*n-1)*(3*n^2 - 3*n+1) (n-2)^3 a(n-2)) / (n^3*(2*n - 3) * (3*n^2 - 9*n+7)) and the supercongruences a(n*p^k) == a(n*p^(k-1)) ( mod p^(3*k) ) for all positive integers n and k and any prime p >= 5. [added Apr 18 2022: assuming the recurrence given in the Maple program below is correct then these conjectures are true.]
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-a177316.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-a177316.lean
import Mathlib /-! # A177316: Number of permutations of n copies of 1..4 with all adjacent differences <= 1 in absolute value. Source: https://oeis.org/A177316 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_a177316 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a177316