Odd squares as XORs of consecutive squares

George Tsoukalas, Anton Kovsharov, Sergey Shirobokov, Anja Surina, Moritz Firsching, Gergely Bérczi, Francisco J. R. Ruiz, Arun Suggala, Adam Zsolt Wagner, Eric Wieser, Lei Yu, Aja Huang, Miklós Z. Horváth, Andrew Ferraiuolo, Henryk Michalewski, Edward Lockhart, Codrut Grosu, Thomas Hubert, Matej Balog, Pushmeet Kohli, Swarat Chaudhuri

For every natural n, some natural k satisfies k2k^{2} XOR (k+1)2=(2n+1)2(k+1)^{2} = (2n+1)^{2}.

What was already known

Alex Ratushnyak’s OEIS entry posed existence and uniqueness separately and listed numerical examples.

How the result developed

  1. 8 Jun 2026 · Manuscript date [1]

    George Tsoukalas and colleagues reported the AI-assisted result in this manuscript.

  2. 20 Oct 2026 · Statement and sequence check disclosed [2]

    Carlos Toledo reported that the Lean statement matches the A224515 conjecture and that its translated sequence agrees with the published terms over the tested range.

Follow new evidence and revisions to this result.

Get email updates

Download contribution history

Contribution Assessment

AI involvementAI-autonomous
ImportanceModest
Technical verificationFormal (Lean 4.27.0)
Human understandingExplained

AI involvement

AlphaProof Nexus proved the conjecture for OEIS A224515 as part of the team’s OEIS evaluation. The authors report, The agent found proofs for 44 conjectures. The team used Gemini to formalize the questions and reviewed the resulting statements for fidelity.

Importance

Existence tests whether the binary digits of two adjacent squares can realize every odd square. Uniqueness would determine how often each target occurs.

Technical verification

The publisher reports complete Lean 4.27.0 checking for the archived statement.

Formal checking

The proof rewrites the XOR equation using bitwise AND, lifts a solution one binary digit at a time and turns the modular solution into an exact witness.

Checker
Google DeepMind’s AlphaProof Nexus project
Scope
For every natural n, some natural k satisfies k2k^{2} XOR (k+1)2=(2n+1)2(k+1)^{2} = (2n+1)^{2}.
Basis
Reported by the linked checker

Human understanding

Ralf Stephan explains how the XOR identity reduces the equation to a constraint involving bitwise AND, how to choose bits greedily, and how bounds give an exact witness.

View revision history
· addition

Added the research timeline.

· addition

Added a source excerpt documenting AI involvement.

· publication

AlphaProof Nexus proves existence for every odd square by constructing a solution one binary digit at a time.