/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil /-! # The 1680-Conjecture Any nonnegative integer can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers such that $x^4 + 1680 y^3 z$ is a square. Zhi-Wei Sun has offered a prize of 1,680 RMB for the first proof. *References:* - [A280831](https://oeis.org/A280831) - Z.-W. Sun, "Refining Lagrange's four-square theorem," *J. Number Theory* **175** (2017), 167-190. - Z.-W. Sun, "Refining Lagrange's four-square theorem," arXiv:1604.06723 [math.NT], 2016. -/ @[expose] public section namespace OeisA280831 /-- The predicate that `n` can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers such that $x^4 + 1680 y^3 z$ is a square. -/ def A (n : ℕ) : Prop := ∃ x y z w : ℕ, n = x ^ 2 + y ^ 2 + z ^ 2 + w ^ 2 ∧ IsSquare (x ^ 4 + 1680 * y ^ 3 * z) @[category test, AMS 11] theorem a_0 : A 0 := ⟨0, 0, 0, 0, by norm_num, 0, by norm_num⟩ @[category test, AMS 11] theorem a_1 : A 1 := ⟨1, 0, 0, 0, by norm_num, 1, by norm_num⟩ @[category test, AMS 11] theorem a_2 : A 2 := ⟨1, 0, 0, 1, by norm_num, 1, by norm_num⟩ @[category test, AMS 11] theorem a_3 : A 3 := ⟨1, 0, 1, 1, by norm_num, 1, by norm_num⟩ @[category test, AMS 11] theorem a_4 : A 4 := ⟨2, 0, 0, 0, by norm_num, 4, by norm_num⟩ @[category test, AMS 11] theorem a_7 : A 7 := ⟨1, 1, 1, 2, by norm_num, 41, by norm_num⟩ @[category test, AMS 11] theorem a_95 : A 95 := ⟨6, 3, 1, 7, by norm_num, 216, by norm_num⟩ /-- **Zhi-Wei Sun's 1680-Conjecture (A280831)**: Any nonnegative integer can be written as $x^2 + y^2 + z^2 + w^2$ with $x, y, z, w$ nonnegative integers such that $x^4 + 1680 y^3 z$ is a square. -/ @[category research open, AMS 11] theorem conjecture (n : ℕ) : A n := by sorry end OeisA280831