Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Sums of a square and three weighted cubes · a_0

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.06031 [math.NT] · NS.06031v1 for this version
Declaration:OeisA262824.a_0
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:ad0973511ccdc1fb9a3a4d3e384e0852487f4c30ef4da1d0a3a0f159e035dd6c
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/262824.lean

Formal statement

theorem a_0 : a 0 = 1
Show the full Challenge.lean (106 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Sums of a square and three weighted cubes

Number of ordered ways to write $n$ as $w^2 + x^3 + 2y^3 + 3z^3$, where $w, x, y$ and $z$ are
nonnegative integers.

*References:*
- [A262824](https://oeis.org/A262824)
-/

@[expose] public section

namespace OeisA262824

/--
Number of ordered ways to write $n$ as $w^2 + x^3 + 2y^3 + 3z^3$ with nonnegative integers
$w, x, y, z$.
-/
def a (n : ℕ) : ℕ :=
  ∑ w ∈ Finset.range (n + 1),
    ∑ x ∈ Finset.range (n + 1),
      ∑ y ∈ Finset.range (n + 1),
        ∑ z ∈ Finset.range (n + 1),
          if w ^ 2 + x ^ 3 + 2 * y ^ 3 + 3 * z ^ 3 == n then 1 else 0

@[category test, AMS 11]
theorem a_0 : a 0 = 1 := by decide

@[category test, AMS 11]
theorem a_1 : a 1 = 2 := by decide

@[category test, AMS 11]
theorem a_2 : a 2 = 2 := by decide

@[category test, AMS 11]
theorem a_3 : a 3 = 3 := by decide

@[category test, AMS 11]
theorem a_4 : a 4 = 4 := by decide

/--
Conjecture (i): For any $m \in \{3, 4, 5, 6\}$ and $n \ge 0$, there are nonnegative integers
$w, x, y, z$ such that $n = w^2 + x^3 + 2y^3 + mz^3$.
-/
@[category research open, AMS 11]
theorem conjecture_1 (m : ℕ) (hm : m ∈ ({3, 4, 5, 6} : Finset ℕ)) (n : ℕ) :
    ∃ w x y z : ℕ, n = w ^ 2 + x ^ 3 + 2 * y ^ 3 + m * z ^ 3 := by
  sorry

/--
Conjecture (ii): Every nonnegative integer $n$ can be written as $w^2 + x^3 + 2y^3 + z^4$
for some nonnegative integers $w, x, y, z$.
-/
@[category research open, AMS 11]
theorem conjecture_2 (n : ℕ) :
    ∃ w x y z : ℕ, n = w ^ 2 + x ^ 3 + 2 * y ^ 3 + z ^ 4 := by
  sorry

/--
Conjecture (ii): Every nonnegative integer $n$ can be written as $w^2 + x^3 + 2y^3 + 3z^4$
for some nonnegative integers $w, x, y, z$.
-/
@[category research open, AMS 11]
theorem conjecture_3 (n : ℕ) :
    ∃ w x y z : ℕ, n = w ^ 2 + x ^ 3 + 2 * y ^ 3 + 3 * z ^ 4 := by
  sorry

/--
Conjecture (ii): Every nonnegative integer $n$ can be written as $w^2 + x^3 + 2y^3 + 6z^4$
for some nonnegative integers $w, x, y, z$.
-/
@[category research open, AMS 11]
theorem conjecture_4 (n : ℕ) :
    ∃ w x y z : ℕ, n = w ^ 2 + x ^ 3 + 2 * y ^ 3 + 6 * z ^ 4 := by
  sorry

/--
Conjecture (ii): Every nonnegative integer $n$ can be written as $2w^2 + x^3 + 4y^3 + z^4$
for some nonnegative integers $w, x, y, z$.
-/
@[category research open, AMS 11]
theorem conjecture_5 (n : ℕ) :
    ∃ w x y z : ℕ, n = 2 * w ^ 2 + x ^ 3 + 4 * y ^ 3 + z ^ 4 := by
  sorry

end OeisA262824

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA262824.a_0 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_0 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-262824--a-0      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-262824--a-0
nosorry submit oeis-262824--a-0 nosorry/oeis-262824--a-0/Solution.lean --wait

Contributions

No contributions yet — be the first. Submit a proof or a finding.

Research in progress

People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.

Nobody has shared research on this problem yet.

Sign in to share your research.

Statement review

Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.

Sign in to open a critique.