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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Sierpiński number

Source:Wikipedia lists of open problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

Selfridge proved in 1962 that 78557 is a Sierpiński number by showing that all numbers of the form 78557⋅2n+178557 \cdot 2^n + 1 have a factor in the covering set {3,5,7,13,19,37,73}\{3, 5, 7, 13, 19, 37, 73\}.

Subjects:Number Theory (math.NT)
MSC classes:11
Cite as:NS.08467 [math.NT] · NS.08467v1 for this version
Declaration:SierpinskiNumber.selfridge_78557
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:5914930d3b181ca6d4473383a92bf2316274b829bf8b850e4b2d13fc4208094b
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/Wikipedia/SierpinskiNumber.lean

Formal statement

theorem selfridge_78557 : Nat.IsSierpinskiNumber 78557
Show the full Challenge.lean (116 lines) — definitions included
module

public import FormalConjecturesUtil


/-!
# Sierpiński number

*References:*
- [Wikipedia, Sierpiński number](https://en.wikipedia.org/wiki/Sierpi%C5%84ski_number)
- [Si60] Sierpiński, W., Elementary Theory of Numbers. Państwowe Wydawnictwo Naukowe,
  Warsaw (1960).

A positive odd integer $k$ is a *Sierpiński number* if $k \cdot 2^n + 1$ is composite for all
natural numbers $n$. In 1960, Sierpiński proved that there are infinitely many such numbers.
John Selfridge proved in 1962 that 78557 is a Sierpiński number. It is conjectured to be the
smallest.

## Sierpiński problem

The *Sierpiński problem* asks: is 78557 the smallest Sierpiński number?

## Prime Sierpiński problem

The *prime Sierpiński problem* asks: is 271129 the smallest *prime* Sierpiński number?

## Extended Sierpiński problem

The *extended Sierpiński problem* asks: is 271129 the second-smallest Sierpiński number?
-/

@[expose] public section

namespace SierpinskiNumber

/--
Selfridge proved in 1962 that 78557 is a Sierpiński number by showing that all numbers of the
form $78557 \cdot 2^n + 1$ have a factor in the covering set $\{3, 5, 7, 13, 19, 37, 73\}$.
-/
@[category research solved, AMS 11]
theorem selfridge_78557 : Nat.IsSierpinskiNumber 78557 := by
  refine ⟨by decide, fun n => ⟨?_, ?_⟩⟩
  · have h : 1 ≤ 2 ^ n := Nat.one_le_pow n 2 (by norm_num)
    nlinarith [h]
  · have hcov : ∃ p ∈ ([3,5,7,13,19,37,73] : List ℕ), p ∣ (78557 * 2 ^ n + 1) := by
      have base : ∀ r, r < 36 → ∃ p ∈ ([3,5,7,13,19,37,73] : List ℕ),
          p ∣ (78557 * 2 ^ r + 1) := by decide
      obtain ⟨p, hpmem, hpdvd⟩ := base (n % 36) (Nat.mod_lt _ (by norm_num))
      refine ⟨p, hpmem, ?_⟩
      have hp36 : (2 : ℕ) ^ 36 ≡ 1 [MOD p] := by fin_cases hpmem <;> decide
      have e2 : (2 : ℕ) ^ n ≡ 2 ^ (n % 36) [MOD p] := by
        conv_lhs => rw [← Nat.div_add_mod n 36, pow_add, pow_mul]
        calc ((2 : ℕ) ^ 36) ^ (n / 36) * 2 ^ (n % 36)
            ≡ 1 ^ (n / 36) * 2 ^ (n % 36) [MOD p] := Nat.ModEq.mul_right _ (hp36.pow _)
          _ = 2 ^ (n % 36) := by rw [one_pow, one_mul]
      have e3 : 78557 * 2 ^ n + 1 ≡ 78557 * 2 ^ (n % 36) + 1 [MOD p] :=
        (e2.mul_left 78557).add_right 1
      exact (Nat.modEq_zero_iff_dvd).mp
        (e3.trans ((Nat.modEq_zero_iff_dvd).mpr hpdvd))
    intro hprime
    obtain ⟨p, hpmem, hpdvd⟩ := hcov
    rcases hprime.eq_one_or_self_of_dvd p hpdvd with h | h <;> fin_cases hpmem <;> omega

/--
**The Sierpiński problem (Selfridge's conjecture).** Is 78557 the smallest Sierpiński number?

Selfridge conjectured that 78557 is the smallest Sierpiński number. He proved in 1962 that
78557 is indeed a Sierpiński number by showing that all numbers of the form $78557 \cdot 2^n + 1$
have a factor in the covering set $\{3, 5, 7, 13, 19, 37, 73\}$.
-/
@[category research open, question, AMS 11]
theorem selfridge_conjecture :
    IsLeast {k | k.IsSierpinskiNumber} 78557 := by
  sorry

/--
**The prime Sierpiński problem.** Is 271129 the smallest prime Sierpiński number?

In 1976, Nathan Mendelsohn determined that the second provable Sierpiński number is the prime
$k = 271129$.
-/
@[category research open, question, AMS 11]
theorem prime_sierpinski_problem :
    IsLeast {k | k.IsSierpinskiNumber ∧ k.Prime} 271129 := by
  sorry

/--
**The extended Sierpiński problem.** Is 271129 the second-smallest Sierpiński number?

Even if 78557 is confirmed as the smallest Sierpiński number, there could exist a composite
Sierpiński number $k$ with $78557 < k < 271129$. We formalize "second-smallest" as: the
least Sierpiński number $k$ such that there exists exactly one Sierpiński number below it.
-/
@[category research open, question, AMS 11]
theorem extended_sierpinski_problem :
    IsLeast {k | k.IsSierpinskiNumber ∧
      ∃ k', k'.IsSierpinskiNumber ∧ k' < k} 271129 := by
  sorry

end SierpinskiNumber

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

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