A008319: Smallest number that is sum of squares of distinct earlier terms.
Statement
Resta's conjecture is correct. Let x = floor(sqrt(n) - 12). For n > 1935, x^2 > n/2. For n > 1853, n - x^2 > 892. So n > 1935 can be decomposed into x^2 plus a number greater than 892. Since the other number is smaller than x^2, any decomposition into squares will use only numbers smaller than x. By induction, all numbers greater than 1935 (and hence greater than 892) are in this sequence.
Posed by Charles R Greathouse IV · OEIS nice
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-a008319.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-a008319.lean
import Mathlib /-! # A008319: Smallest number that is sum of squares of distinct earlier terms. Source: https://oeis.org/A008319 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_a008319 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a008319