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 · a_4

Source:OEIS conjectures
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

No informal statement.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.04597 [math.NT] · NS.04597v1 for this version
Declaration:OeisA108301.a_4
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 1; accepted critique: up to 100
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 a_4 : a 4 = 26
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.a_4 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_a_4 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk oeis-108301--a-4      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch oeis-108301--a-4
nosorry submit oeis-108301--a-4 nosorry/oeis-108301--a-4/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.