A390762: Number of ways to write n as (p-1)^2 + (q-1)^2 + (r-1)^2/2 + (s-1)^2/4 with p <= q, where each of p,q,r,s is either 1 or an odd pr
Statement
Conjecture: Let S = {(p-1)/2: p is 1 or an odd prime}. Then each nonnegative integer n can be written as w^2 + b*x^2 + c*y^2 + d*z^2 with w,x,y,z in the set S, provided that (b,c,d) is among the following 25 triples: (1,2,3),(1,2,4),(1,2,5),(1,2,6),(1,2,7),(1,2,12),(1,3,5),(1,3,6),(2,2,3),(2,2,5),(2,3,3),(2,3,4),(2,3,5),(2,3,7),(2,3,9),(2,3,10),(2,4,4),(2,4,5),(2,4,9),(2,4,10),(2,4,11),(2,4,12),(2,5,7),(2,5,8),(2,5,9). · This conjecture holds for (b,c,d) = (2,4,4) if and only if a(n) > 0 for all n >= 0. We have verified a(n) > 0 for all n <= 10^6. It seems that a(n) = 1 only for n = 0, 1, 2, 3, 5, 7, 14, 15, 30, 120, 130, 754, 770, 1186, 2290.
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-a390762.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-a390762.lean
import Mathlib /-! # A390762: Number of ways to write n as (p-1)^2 + (q-1)^2 + (r-1)^2/2 + (s-1)^2/4 with p <= q, where each of p,q,r,s is either 1 or an odd pr Source: https://oeis.org/A390762 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_a390762 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_oeis_a390762