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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Thabit numbers and Thabit primes · thabit_rule_amicable_220_284

Source:Wikipedia lists of open problems · en.wikipedia.org/wiki/Thabit_number
Sanity test Checks that the formal definitions behave as intended. First verified proof: +1 points.
Statement:reviewed
Statement:

At n=2n = 2, p=K1=5p = K_1 = 5, q=K2=11q = K_2 = 11, and r=71r = 71 produce the classic amicable pair (220,284)(220, 284).

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

Formal statement

theorem thabit_rule_amicable_220_284 :
    2 ^ 2 * thabitNumber 1 * thabitNumber 2 = 220 ∧
      2 ^ 2 * (9 * 2 ^ (2 * 2 - 1) - 1) = 284 ∧
      IsAmicable 220 284
Show the full Challenge.lean (106 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Thabit numbers and Thabit primes

For $n \ge 0$, the $n$-th *Thabit number* (of the first kind) is $K_n = 3 \cdot 2^n - 1$. In the
ninth century, Thābit ibn Qurra proved that whenever $n \ge 2$ makes $p = K_{n-1}$, $q = K_n$, and
$r = 9 \cdot 2^{2n - 1} - 1$ simultaneously prime, the integers $2^n p q$ and $2^n r$ form an
amicable pair (`IsAmicable`). Whether infinitely many Thabit primes exist, and whether Thābit ibn
Qurra's rule produces any amicable pair beyond the three known exponents $n = 2, 4, 7$ [Bo72, Gu04],
remain open.

*References:*
- [Wikipedia](https://en.wikipedia.org/wiki/Thabit_number)
- [OEIS A055010](https://oeis.org/A055010)
- [OEIS A007505](https://oeis.org/A007505)
- [OEIS A002235](https://oeis.org/A002235)
- [Bo72] Borho, W. (1972). *On Thabit ibn Kurrah's formula for amicable numbers*, Math. Comp. 26
  (118), 571--578.
- [Gu04] Guy, R. K. (2004). *Unsolved Problems in Number Theory*, 3rd ed., Problem B4, Springer,
  New York. https://doi.org/10.1007/978-0-387-26677-0
-/

@[expose] public section

namespace ThabitNumber

/-- The $n$-th **Thabit number** of the first kind, $K_n = 3 \cdot 2^n - 1$
([OEIS A055010](https://oeis.org/A055010)). -/
def thabitNumber (n : ℕ) : ℕ := 3 * 2 ^ n - 1

/-- The Thabit numbers $K_n$ are prime for $n = 0, 1, 2, 3, 4$ ($2, 5, 11, 23, 47$) and composite at
$n = 5$ ($K_5 = 95 = 5 \cdot 19$). -/
@[category test, AMS 11]
theorem thabitNumber_small_values :
    (thabitNumber 0).Prime ∧ (thabitNumber 1).Prime ∧ (thabitNumber 2).Prime ∧
      (thabitNumber 3).Prime ∧ (thabitNumber 4).Prime ∧ ¬ (thabitNumber 5).Prime := by
  decide

/-- At $n = 2$, $p = K_1 = 5$, $q = K_2 = 11$, and $r = 71$ produce the classic amicable pair
$(220, 284)$. -/
@[category test, AMS 11]
theorem thabit_rule_amicable_220_284 :
    2 ^ 2 * thabitNumber 1 * thabitNumber 2 = 220 ∧
      2 ^ 2 * (9 * 2 ^ (2 * 2 - 1) - 1) = 284 ∧
      IsAmicable 220 284 := by
  refine ⟨by decide, by decide, ?_⟩
  rw [isAmicable_iff]
  decide

/--
**Thābit ibn Qurra's amicable number theorem** [Bo72]: for $n \ge 2$, if $K_{n-1}$, $K_n$, and
$9 \cdot 2^{2n - 1} - 1$ are all prime, then $2^n K_{n-1} K_n$ and $2^n (9 \cdot 2^{2n - 1} - 1)$
form an amicable pair.

The hypothesis $n \ge 2$ excludes $n = 1$, where $K_0 = 2$ is not coprime to $2^n$.
-/
@[category textbook, AMS 11]
theorem thabit_amicable_rule {n : ℕ} (hn : 2 ≤ n) (hp : (thabitNumber (n - 1)).Prime)
    (hq : (thabitNumber n).Prime) (hr : (9 * 2 ^ (2 * n - 1) - 1).Prime) :
    IsAmicable (2 ^ n * thabitNumber (n - 1) * thabitNumber n)
      (2 ^ n * (9 * 2 ^ (2 * n - 1) - 1)) := by
  sorry

/--
There are infinitely many exponents $n \in \mathbb{N}$ ([OEIS A002235](https://oeis.org/A002235))
for which the Thabit number $K_n = 3 \cdot 2^n - 1$ is prime
([OEIS A007505](https://oeis.org/A007505)); since `thabitNumber` is injective, this is equivalent to
the infinitude of Thabit primes themselves.

*Reference:* [Wikipedia](https://en.wikipedia.org/wiki/Thabit_number)
-/
@[category research open, AMS 11]
theorem infinitely_many_thabit_primes : {n : ℕ | (thabitNumber n).Prime}.Infinite := by
  sorry

/--
Does there exist an integer $n > 7$ for which $K_{n-1}$, $K_n$, and $9 \cdot 2^{2n - 1} - 1$ are
simultaneously prime, yielding an amicable pair via Thābit ibn Qurra's rule [Bo72, Gu04]? Only
$n = 2, 4, 7$ are currently known.
-/
@[category research open, question, AMS 11]
theorem exists_thabit_amicable_exponent_gt_seven :
    ∃ n > 7, (thabitNumber (n - 1)).Prime ∧ (thabitNumber n).Prime ∧
      (9 * 2 ^ (2 * n - 1) - 1).Prime := by
  sorry

end ThabitNumber

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

nosorry desk wikipedia-thabitnumber--thabit-rule-amicable-220-284      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch wikipedia-thabitnumber--thabit-rule-amicable-220-284
nosorry submit wikipedia-thabitnumber--thabit-rule-amicable-220-284 nosorry/wikipedia-thabitnumber--thabit-rule-amicable-220-284/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.