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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Representations of nn as the sum of two pentagonal and a generalized decagonal number · a_4

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.05924 [math.NT] · NS.05924v1 for this version
Declaration:OeisA253187.a_4
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
Statement hash:17993ac1614b23e560f17f1a76270921441b8696321eacbe2c2c6bfa95f80fbe
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/OEIS/253187.lean

Formal statement

theorem a_4 : a 4 = 1
Show the full Challenge.lean (93 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Representations of $n$ as the sum of two pentagonal and a generalized decagonal number

The sequence $a(n)$ counts the number of ordered ways to write $n$ as the sum of a pentagonal
number $\frac{x(3x-1)}{2}$ ($x \ge 0$), a second pentagonal number $\frac{y(3y+1)}{2}$ ($y \ge 0$),
and a generalized decagonal number $m(4m-3)$ ($m \in \mathbb{Z}$).

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

@[expose] public section

namespace OeisA253187

open Nat Finset

/-- Returns $1$ if $r$ is a generalized decagonal number $m(4m-3)$ for some $m \in \mathbb{Z}$
(equivalently, $16r + 9$ is a perfect square), and $0$ otherwise. -/
def countGeneralizedDecagonalIndex (r : ℕ) : ℕ :=
  if Nat.sqrt (16 * r + 9) * Nat.sqrt (16 * r + 9) = 16 * r + 9 then 1 else 0

/-- Number of ordered ways to write $n$ as the sum of a pentagonal
number, a second pentagonal number, and a generalized decagonal number. -/
def a (n : ℕ) : ℕ :=
  ∑ x ∈ range (n + 1), ∑ y ∈ range (n + 1),
    let sumPent := Nat.polygonalNumber 5 x + Nat.generalizedPolygonalNumber 5 (-(y : ℤ))
    if sumPent ≤ n then
      countGeneralizedDecagonalIndex (n - sumPent)
    else
      0

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

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

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

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

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

/-- The set of pairs $(k, m)$ appearing in Sun's universal sum conjecture. -/
def cPairs : Set (ℕ × ℕ) :=
  {(5, 7), (5, 9), (5, 13), (6, 5), (6, 7), (7, 5)}

/--
Conjecture: $a(n) > 0$ for all $n$.
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11]
theorem conjecture_1 (n : ℕ) : 0 < a n := by
  sorry

/--
Conjecture: For any ordered pair $(k, m)$ among $(5,7), (5,9), (5,13), (6,5), (6,7), (7,5)$,
each nonnegative integer $n$ can be written as the sum of a $k$-gonal number, a second $k$-gonal
number, and a generalized $m$-gonal number.
- _Zhi-Wei Sun_
-/
@[category research open, AMS 11]
theorem conjecture_2 (k m : ℕ) (hkm : (k, m) ∈ cPairs) (n : ℕ) :
    ∃ x y : ℕ, ∃ z : ℤ,
      Nat.polygonalNumber k x + Nat.generalizedPolygonalNumber k (-(y : ℤ)) +
        Nat.generalizedPolygonalNumber m z = n := by
  sorry

end OeisA253187

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

nosorry desk oeis-253187--a-4      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-253187--a-4
nosorry submit oeis-253187--a-4 nosorry/oeis-253187--a-4/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.