Left to Solve
Problems / MathOverflow (not formalized)

Number of solutions to $n^ 2 = x^2 + y^2 + 2z^2$

Open, not yet stated in LeanMathOverflow (not formalized)Number Theorydifficulty55/100

Statement

I was intrigued by this result in Journal of Number Theory from 2013. Let .

Theorem The number of such that is given by the symbol is a variant of the Legendre symbol are given by and the necessary values of the classical Legendre symbol are given by

I think this problem is slightly difficult because you have to sieve out the squares, but otherwise, shouldn't this result fall out of Hasse principle or a theta function of some kind? I could solve this equation possibly over each prime (as well as ) and then multiply the result.

There's no guarantee even of one solution here, but for this enumerative result we're simply stating that we could multiply the result from all places.

Was it …

Posed by john mangual · nt.number-theory

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/mo-287040.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. 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/mo-287040.lean

import Mathlib

/-!
# Number of solutions to $n^ 2 = x^2 + y^2 + 2z^2$

Source: https://mathoverflow.net/questions/287040
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_mo_287040

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_287040