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 two squares, a power of 3, and a power of 5 · a_6

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

Formal statement

theorem a_6 : A 6
Show the full Challenge.lean (81 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Sum of two squares, a power of 3, and a power of 5

Any integer $n > 1$ can be written as $a^2 + b^2 + 3^c + 5^d$ where $a, b, c, d$ are
nonnegative integers.

Zhi-Wei Sun has offered a \$3,500 prize for the first proof.

*References:*
- [A303656](https://oeis.org/A303656)
- Z.-W. Sun, "Restricted sums of four squares," arXiv preprint:
  https://arxiv.org/abs/1701.05868v10
- Z.-W. Sun, "Refining Lagrange's four-square theorem," Journal of Number Theory:
  http://maths.nju.edu.cn/~zwsun/RefineFourSquareTh.pdf
- Z.-W. Sun, "Restricted sums of three or four squares":
  http://maths.nju.edu.cn/~zwsun/Square-sum.pdf
- Zhi-Wei Sun's 1-3-5 conjecture and variations:
  https://www.aimspress.com/aimspress-data/era/2020/2/PDF/1935-9179_2020_2_589.pdf
-/

@[expose] public section

namespace OeisA303656

/-- The predicate that `n` can be written as $a^2 + b^2 + 3^c + 5^d$ for nonnegative integers. -/
def A (n : ℕ) : Prop :=
  ∃ a b c d : ℕ, n = a ^ 2 + b ^ 2 + 3 ^ c + 5 ^ d

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

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

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

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

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

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

/--
**Zhi-Wei Sun's Conjecture (A303656)**: Any integer $n > 1$ can be written as the sum of two
squares, a power of 3, and a power of 5.
-/
@[category research open, AMS 11]
theorem conjecture (n : ℕ) (hn : 1 < n) : A n := by
  sorry

end OeisA303656

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

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