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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Expansion of (1−x)/(1−2x+3x2)(1 - x)/(1 - 2 x + 3 x^2)

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

It is an open question whether or not this sequence satisfies Benford's law [Berger-Hill, 2017; Arno Berger, email, Jan 06 2017]. - N. J. A. Sloane, Feb 08 2017

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

Formal statement

theorem conjecture : SatisfiesBenford a
Show the full Challenge.lean (85 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Expansion of $(1 - x)/(1 - 2 x + 3 x^2)$

This sequence is the expansion of $(1 - x)/(1 - 2 x + 3 x^2)$ in powers of $x$.
It satisfies the linear recurrence relation $a(n) = 2 a(n-1) - 3 a(n-2)$ for $n \ge 2$,
with initial values $a(0)=1$ and $a(1)=1$.

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

@[expose] public section

namespace OeisA87455

/-- The primary defining sequence `a`, satisfying $a(n) = 2 a(n-1) - 3 a(n-2)$ for $n \ge 2$,
with initial values $a(0)=1$ and $a(1)=1$. -/
def a : ℕ → ℤ
  | 0 => 1
  | 1 => 1
  | n + 2 => 2 * a (n + 1) - 3 * a n

/-- The decimal significand of an integer `x`: the unique real number $S(x) \in [1, 10)$ such that
$|x| = S(x) \cdot 10^k$ for some integer $k$, with the convention $S(0) = 0$. -/
noncomputable def significand (x : ℤ) : ℝ :=
  (x.natAbs : ℝ) / 10 ^ ((Nat.digits 10 x.natAbs).length - 1)

/-- A sequence of integers satisfies Benford's law if, for every $t \in [1, 10)$, the asymptotic
relative frequency of terms whose decimal significand is at most $t$ equals $\log_{10} t$
(Berger-Hill). This is strictly stronger than the law for the leading digit alone. -/
def SatisfiesBenford (s : ℕ → ℤ) : Prop :=
  ∀ t ∈ Set.Ico (1 : ℝ) 10,
    Filter.Tendsto
      (fun N : ℕ =>
        ((Finset.range N).filter (fun n => significand (s n) ≤ t)).card / (N : ℝ))
      Filter.atTop
      (nhds (Real.logb 10 t))

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

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

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

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

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

/--
It is an open question whether or not this sequence satisfies Benford's law
[Berger-Hill, 2017; Arno Berger, email, Jan 06 2017]. - N. J. A. Sloane, Feb 08 2017-/
@[category research open, question, AMS 11 60]
theorem conjecture : SatisfiesBenford a := by
  sorry

end OeisA87455

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