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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Smallest nn-th power equal to a sum of consecutive immediately preceding positive nn-th powers

Source:OEIS conjectures
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

Is a(n)≠0a(n) \ne 0 for any n>3n > 3?

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

Formal statement

theorem conjecture : ∃ n > 3, a n ≠ 0
Show the full Challenge.lean (75 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Smallest $n$-th power equal to a sum of consecutive immediately preceding positive $n$-th powers

Smallest $n$-th power equal to a sum of some consecutive, immediately preceding, positive $n$-th
powers, or $0$ if none.

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

@[expose] public section

namespace OeisA230718

/-- Smallest $n$-th power equal to a sum of some consecutive, immediately preceding, positive
$n$-th powers, or $0$ if none. For $n \ge 1$, this is the smallest $N^n$ ($N \ge 3$) such that
$\sum_{i=k}^{N-1} i^n = N^n$ for some $1 \le k \le N - 2$ (equivalently,
$k^n + (k+1)^n + \dots + (k+m)^n = (k+m+1)^n$ with $k \ge 1$ and $m \ge 1$), or $0$ if none
exists; for $n = 0$, $a(0) = 1^0 = 1$ (taking $k = 1, m = 0$). -/
noncomputable def a (n : ℕ) : ℕ :=
  if n = 0 then 1 else
  let P (N : ℕ) : Prop :=
    N ≥ 3 ∧ ∃ k ∈ Finset.Icc 1 (N - 2), ∑ i ∈ Finset.Ico k N, i ^ n = N ^ n
  let N_min := sInf { N : ℕ | P N }
  if N_min = 0 then 0 else N_min ^ n

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

@[category test, AMS 11]
theorem a_1 : a 1 = 3 := by
  dsimp [a]
  rw [IsLeast.csInf_eq (a := 3) (by decide)]
  rfl

@[category test, AMS 11]
theorem a_2 : a 2 = 25 := by
  dsimp [a]
  rw [IsLeast.csInf_eq (a := 5) (by decide)]
  rfl

@[category test, AMS 11]
theorem a_3 : a 3 = 216 := by
  dsimp [a]
  rw [IsLeast.csInf_eq (a := 6) (by decide)]
  rfl

/--
Is $a(n) \ne 0$ for any $n > 3$?
-/
@[category research open, question, AMS 11]
theorem conjecture : ∃ n > 3, a n ≠ 0 := by
  sorry

end OeisA230718

To prove it: keep every definition of Challenge.lean unchanged and prove OeisA230718.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-230718
nosorry submit oeis-230718 nosorry/oeis-230718/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.