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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Digital sum of the Fermat number 22n+12^{2^n} + 1

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

a(0)a(0), a(1)a(1), a(5)a(5), a(6)a(6), a(7)a(7) and a(11)a(11) are primes. Are there any more?

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

Formal statement

theorem conjecture : ∃ n > 11, (a n).Prime
Show the full Challenge.lean (71 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Digital sum of the Fermat number $2^{2^n} + 1$

`a n` is the digital sum of the Fermat number $2^{2^n} + 1$.
The conjecture asks if there are any prime numbers in this sequence beyond $n=11$.

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

@[expose] public section

namespace OeisA108301

/-- The primary defining sequence `a`.
`a n` is the digital sum of the Fermat number $2^{2^n} + 1$. -/
def a (n : ℕ) : ℕ :=
  (Nat.digits 10 (2 ^ 2 ^ n + 1)).sum

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

@[category test, AMS 11]
theorem a_1 : a 1 = 5 := by decide

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

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

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

/-- $a(0)$, $a(1)$, $a(5)$, $a(6)$, $a(7)$ and $a(11)$ are primes. -/
@[category textbook, AMS 11]
theorem primes_in_a :
    (a 0).Prime ∧ (a 1).Prime ∧ (a 5).Prime ∧
    (a 6).Prime ∧ (a 7).Prime ∧ (a 11).Prime := by
  rw [show a 0 = 3 by decide, show a 1 = 5 by decide, show a 5 = 59 by decide,
    show a 6 = 89 by decide, show a 7 = 167 by decide, show a 11 = 2741 by decide +kernel]
  norm_num

/-- $a(0)$, $a(1)$, $a(5)$, $a(6)$, $a(7)$ and $a(11)$ are primes. Are there any more? -/
@[category research open, question, AMS 11]
theorem conjecture : ∃ n > 11, (a n).Prime := by
  sorry

end OeisA108301

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