Linear recurrence for OEIS A022030

OEIS A022030 starts with 4 and 16. Each new term is chosen so that the ratio to the previous term lies just below or just above the preceding ratio. The rule alternates between taking the largest integer below the strict threshold and the smallest integer above it. Does this sequence also follow the fixed linear rule a(n)=4a(n−1)−a(n−3)+a(n−4)a(n)=4a(n-1)-a(n-3)+a(n-4) from n=4n=4 onward?

Why it matters and what counts as progress

Why it matters: The ratio rule uses squaring, division and rounding. A linear recurrence gives the same terms using only fixed multiples and sums once the first four terms are known.

What counts as progress: Prove that the linear rule gives every term of the alternating sequence. The proof must account for both rounding directions and the strict ratio inequalities.

How the problem developed

  1. 16 Feb 2012 · Linear recurrence conjecture [1]

    Colin Barker conjectured the order-four recurrence for the alternating sequence.

  2. 5 Sept 2026 · Proof posted [2]

    Xiaojian Zeng posted a proof that bounds a signed determinant to recover the strict ratio inequalities.

  3. 25 Oct 2026 · Lean proof reported [3][4][5]

    GPT-5.6 Sol proved the recurrence in Lean using a signed determinant to control rounding. Moalla and colleagues reported the proof in October. An Atlas commit dated 28 August contains the argument.

Follow new AI contributions to this problem.

Get email updates

Download problem history

AI contribution

A linear recurrence for a parity-dependent quotient sequence

Skander Moalla, Ahmad Rammal, Niket Patel, Remi Munos, Julia Kempe

Start with a(0)=4a(0)=4 and a(1)=16a(1)=16. With truncated natural-number division, set a(n+2)=(a(n+1)2+a(n)−1)/a(n)−1a(n+2)=(a(n+1)^2+a(n)-1)/a(n)-1 for even nn and a(n+2)=a(n+1)2/a(n)+1a(n+2)=a(n+1)^2/a(n)+1 for odd nn. Then a(n)=4a(n−1)−a(n−3)+a(n−4)a(n)=4a(n-1)-a(n-3)+a(n-4) for every n≥4n\ge 4.

AI involvementAI-led
ImportanceModest
Technical verificationFormal (Lean)
Human understandingFew
Paper date:

Sources

  1. Formal Conjectures statement of Barker’s conjecture
  2. Xiaojian Zeng’s proof of the alternating recurrence
  3. h1: A Taste of the Bitter Lesson in Automated Theorem Proving
  4. Atlas proof snapshot dated 28 August 2026
  5. Lean build against the original benchmark definition
  6. h1 proof attribution and exact A022030 statement
  7. GPT-5.6 Sol’s A022030 proof
  8. OEIS Open and the nonalternating recurrence
  9. Lean and NanoDa comparison of the copied statement
Publication history