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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Alternating sum of signs of powers of 3/23/2

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

"Is a(n)>0a(n)>0?"

The answer is negative: a(331523)=−1a(331523) = -1. The restriction n>2n > 2 excludes the initial zero a(2)=0a(2) = 0.

The counterexample and formal proof were developed by Codex (GPT-6), prompted by Samuel Schlesinger.

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

Formal statement

theorem conjecture1 : ¬ ∀ n : ℕ, 2 < n → 0 < a n
Show the full Challenge.lean (109 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Alternating sum of signs of powers of $3/2$

The sequence $a(n) = -\sum_{k=1}^n (-1)^{\lfloor (3/2)^k \rfloor}$.

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

@[expose] public section

namespace OeisA71532

open Finset Filter
open scoped Asymptotics

/-- The sequence $a(n) = -\sum_{k=1}^n (-1)^{\lfloor (3/2)^k \rfloor}$. -/
def a (n : ℕ) : ℤ :=
  - ∑ k ∈ Icc 1 n, (-1 : ℤ) ^ (3 ^ k / 2 ^ k)

/-- Value of the sequence `a` at 1. -/
@[category test, AMS 11]
theorem a_1 : a 1 = 1 := by
  decide

/-- Value of the sequence `a` at 2. -/
@[category test, AMS 11]
theorem a_2 : a 2 = 0 := by
  decide

/-- Value of the sequence `a` at 3. -/
@[category test, AMS 11]
theorem a_3 : a 3 = 1 := by
  decide

/-- Value of the sequence `a` at 4. -/
@[category test, AMS 11]
theorem a_4 : a 4 = 2 := by
  decide

/-- Value of the sequence `a` at 5. -/
@[category test, AMS 11]
theorem a_5 : a 5 = 3 := by
  decide

set_option linter.style.formal_proof_palomar false in
/--
"Is $a(n)>0$?"

The answer is negative: $a(331523) = -1$. The restriction $n > 2$ excludes the initial
zero $a(2) = 0$.

The counterexample and formal proof were developed by Codex (GPT-6), prompted by
Samuel Schlesinger.
-/
@[category research solved, question, AMS 11, formal_proof using lean4 at
  "https://github.com/SamuelSchlesinger/a071532-counterexample/blob/818c9f6b3f1eed9ebd1b3b9481848dc21f3e3243/Counterexample.lean#L28-L35"]
theorem conjecture1 : ¬ ∀ n : ℕ, 2 < n → 0 < a n := by
  sorry

/--
For $n$ large enough, does $a(n) > \sqrt{n}$ always hold?
-/
@[category research open, AMS 11]
theorem conjecture2 :
    ∃ N : ℕ, ∀ n : ℕ, N ≤ n → (a n : ℝ) > Real.sqrt (n : ℝ) := by
  sorry

/--
Conjecture: asymptotically, $a(n) \sim C \log(n)^2$ for some constant $C > 0$.
-/
@[category research open, AMS 11]
theorem conjecture3 :
    ∃ C : ℝ, 0 < C ∧ (fun n : ℕ ↦ (a n : ℝ)) ~[atTop] (fun n : ℕ ↦ C * Real.log (n : ℝ) ^ 2) := by
  sorry

def conjecture3_value.answer : ℝ := sorry

/--
Conjecture: the constant $C$ in $a(n) \sim C \log(n)^2$ is approximately $1.4$.
-/
@[category research open, question value, AMS 11]
theorem conjecture3_value :
    |conjecture3_value.answer - 1.4| < 0.1 ∧
      (fun n : ℕ ↦ (a n : ℝ)) ~[atTop] (fun n : ℕ ↦ conjecture3_value.answer * Real.log (n : ℝ) ^ 2)
        := by
  sorry

end OeisA71532

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

nosorry fetch oeis-71532
nosorry submit oeis-71532 nosorry/oeis-71532/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.