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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:a(n)=16n2+1a(n) = 16n^2 + 1

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

Conjecture: a(n)=⌊114n−log⁡(2)+1n+1+1n+2+⋯+12n⌋.a(n) = \left\lfloor \frac{1}{\frac{1}{4n} - \log(2) + \frac{1}{n+1} + \frac{1}{n+2} + \dots + \frac{1}{2n}} \right\rfloor.

Proof sketch (certificate style; the kernel-checked development lives at the formal_proof permalink below). Write T(n)=log⁡2−(H(2n)−H(n))T(n) = \log 2 - (H(2n) - H(n)) for the harmonic tail defect. The proof sandwiches T(n)T(n) between two explicit telescoping bounds — h(n)h(n) from below and h(n)+60/(4n+1)7h(n) + 60/(4n+1)^7 from above, where hh telescopes a degree-7 rational certificate. The two resulting inequalities reduce to polynomial coefficient-nonnegativity facts discharged by elementary tactics, after which the reciprocal lands in [16n2+1, 16n2+2)[16n^2 + 1,\, 16n^2 + 2) and the floor evaluates exactly.

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

Formal statement

theorem conjecture (n : ℕ) (hn : n > 0) :
    (a n : ℝ) =
      (⌊ 1 / ((4 * n : ℝ)⁻¹ - log 2 + ∑ k ∈ (Finset.Icc (n + 1) (2 * n)), (k : ℝ)⁻¹) ⌋ : ℝ)
Show the full Challenge.lean (77 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# $a(n) = 16n^2 + 1$

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

@[expose] public section

namespace OeisA108211

/--
The primary defining sequence `a`.
`a n` is defined as $16n^2 + 1$.
-/
def a (n : ℕ) : ℕ := 16 * n ^ 2 + 1

/-- Term theorems verifying the first few values of the sequence against the official OEIS b-file -/
@[category test, AMS 11]
theorem a_1 : a 1 = 17 := by decide

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

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

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

@[category test, AMS 11]
theorem a_5 : a 5 = 401 := by decide

open Real

set_option linter.style.formal_proof_palomar false in
/--
Conjecture:
$$a(n) = \left\lfloor \frac{1}{\frac{1}{4n} - \log(2) +
  \frac{1}{n+1} + \frac{1}{n+2} + \dots + \frac{1}{2n}} \right\rfloor.$$

**Proof sketch** (certificate style; the kernel-checked development lives at the
`formal_proof` permalink below). Write $T(n) = \log 2 - (H(2n) - H(n))$ for the harmonic
tail defect. The proof sandwiches $T(n)$ between two explicit telescoping bounds — $h(n)$
from below and $h(n) + 60/(4n+1)^7$ from above, where $h$ telescopes a degree-7 rational
certificate. The two resulting inequalities reduce to polynomial coefficient-nonnegativity
facts discharged by elementary tactics, after which the reciprocal lands in
$[16n^2 + 1,\, 16n^2 + 2)$ and the floor evaluates exactly.
-/
@[category research solved, AMS 11, formal_proof using formal_conjectures at
"https://github.com/chy4pro/formal-conjectures/blob/f24f80aeaa3d5073bf4a54ed9daa102a5e0f1fad/FormalConjectures/OEIS/108211.lean#L540"]
theorem conjecture (n : ℕ) (hn : n > 0) :
    (a n : ℝ) =
      (⌊ 1 / ((4 * n : ℝ)⁻¹ - log 2 + ∑ k ∈ (Finset.Icc (n + 1) (2 * n)), (k : ℝ)⁻¹) ⌋ : ℝ) := by
  sorry

end OeisA108211

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