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.

What was already known

Colin Barker conjectured the recurrence in 2012. The Atlas repository contains the h1 proof in a commit dated 28 August 2026. Xiaojian Zeng posted a proof of the same recurrence in September. Tom Adamczewski’s OEIS Open result concerns the related rule that always chooses the greatest admissible integer.

How the result developed

  1. 11 Sept 2026 · Formal checking [1]

    Lean and NanoDa, run reported by Niket Patel is credited for the reported check (Complete A022030 proof against the vendored statement).

  2. 14 Sept 2026 · Formal checking [2]

    Lean 4.33.1, run reported by Niket Patel is credited for the reported check (Complete proof of the alternating A022030 linear recurrence against the pinned Formal Conjectures definition).

  3. 30 Oct 2026 · Manuscript date [3]

    Skander Moalla and colleagues reported the AI-assisted result in this manuscript.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

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

AI involvement

The paper lists this result among eight open Formal Conjectures targets proved by h1 with GPT-5.6 Sol. The authors designed the proving system and selected the targets. For this sequence, the model bounded the difference between the square of a term and the product of its neighbours. Niket Patel’s follow-up build uses the benchmark’s definition of the sequence.

Importance

The terms can be generated with fixed coefficients once the first four are known. The original rule uses a squared term and a rounded quotient at each step.

Technical verification

Niket Patel reports that Lean 4.33.1 checked the complete proof against the imported Formal Conjectures definition. The theorem uses only Lean’s three standard axioms. A separate comparison run reports acceptance by Lean and NanoDa against a local copy of the statement.

Formal checking

The build report names the A022030 declaration and records only the standard axioms. The source imports the benchmark’s definition and repeats the exact statement.

Checker
Lean 4.33.1, run reported by Niket Patel
Scope
Complete proof of the alternating A022030 linear recurrence against the pinned Formal Conjectures definition.
Basis
Reported by the linked checker
Check date
2026-09-14

Formal checking

Patel reports acceptance by both kernels for the vendored A022030 challenge.

Checker
Lean and NanoDa, run reported by Niket Patel
Scope
Complete A022030 proof against the vendored statement.
Basis
Reported by the linked checker
Check date
2026-09-11

Human understanding

The proof file gives the determinant argument and the bounds used to recover each rounded quotient. The available sources contain no human explanation attributed to the reasoning in the h1 proof.

Other useful sources

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

Include the model-origin proof of the exact alternating recurrence with source-bound checks and the same-statement prior publication.