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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Sum of a triangular number, a generalized pentagonal number, and a generalized heptagonal number

Source:OEIS conjectures
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Zhi-Wei Sun's Conjecture (A287616): Any nonnegative integer can be written as the sum of a triangular number x(x+1)/2x(x+1)/2, a generalized pentagonal number y(3y+1)/2y(3y+1)/2, and a generalized heptagonal number z(5z+1)/2z(5z+1)/2, where x,y,zx, y, z are nonnegative integers.

This was proved in [CGQFG26].

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.06114 [math.NT] · NS.06114v1 for this version
Declaration:OeisA287616.conjecture
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60
Statement hash:0ba90245c221309a419e0b0bbba7889c715083a981a00d8894bcfefa0309c7c9
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/287616.lean

Formal statement

theorem conjecture (n : ℕ) : A n
Show the full Challenge.lean (78 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Sum of a triangular number, a generalized pentagonal number, and a generalized heptagonal number

Any nonnegative integer can be written as $x(x+1)/2 + y(3y+1)/2 + z(5z+1)/2$ with $x, y, z$
nonnegative integers.

Zhi-Wei Sun offered a USD 135 prize for the first proof of this conjecture.
Cao, Guo, Qiu, Feng and Gao proved it in [CGQFG26].

*References:*
- [A287616](https://oeis.org/A287616)
- Zhi-Wei Sun, "Universal sums of three quadratic polynomials", arXiv:1502.03056 [math.NT]
- [CGQFG26] Y. Cao, D. Guo, R. Qiu, R. Feng and X.-S. Gao, "Every Nonnegative Integer Is a Sum
  of a Triangular, a Pentagonal, and a Heptagonal Number",
  [arXiv:2606.26035](https://arxiv.org/abs/2606.26035)
-/

@[expose] public section

namespace OeisA287616

/-- The predicate that `n` can be written as $x(x+1)/2 + y(3y+1)/2 + z(5z+1)/2$ for
nonnegative integers $x, y, z$. -/
def A (n : ℕ) : Prop :=
  ∃ x y z : ℕ, n = x * (x + 1) / 2 + y * (3 * y + 1) / 2 + z * (5 * z + 1) / 2

@[category test, AMS 11]
theorem a_0 : A 0 :=
  ⟨0, 0, 0, by norm_num⟩

@[category test, AMS 11]
theorem a_1 : A 1 :=
  ⟨1, 0, 0, by norm_num⟩

@[category test, AMS 11]
theorem a_2 : A 2 :=
  ⟨0, 1, 0, by norm_num⟩

@[category test, AMS 11]
theorem a_3 : A 3 :=
  ⟨2, 0, 0, by norm_num⟩

@[category test, AMS 11]
theorem a_4 : A 4 :=
  ⟨1, 0, 1, by norm_num⟩

/--
**Zhi-Wei Sun's Conjecture (A287616)**: Any nonnegative integer can be written as the sum of
a triangular number $x(x+1)/2$, a generalized pentagonal number $y(3y+1)/2$, and a generalized
heptagonal number $z(5z+1)/2$, where $x, y, z$ are nonnegative integers.

This was proved in [CGQFG26].
-/
@[category research solved, AMS 11]
theorem conjecture (n : ℕ) : A n := by
  sorry

end OeisA287616

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

nosorry fetch oeis-287616
nosorry submit oeis-287616 nosorry/oeis-287616/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.