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

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Hyperperfect numbers

Source:Wikipedia lists of open problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Statement:

McCranie's odd-kk conjecture (2000): for odd k>1k > 1, every kk-hyperperfect integer nn satisfies n=p2qn = p^2 q with primes p=(3k+1)/2p = (3k + 1)/2 and q=3k+4q = 3k + 4.

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

Formal statement

theorem mccranie_odd_hyperperfect_conjecture {k n : ℕ} (hk_odd : Odd k) (hk : 1 < k)
    (hn : IsHyperperfect k n) :
    ((3 * k + 1) / 2).Prime ∧ (3 * k + 4).Prime ∧ n = ((3 * k + 1) / 2) ^ 2 * (3 * k + 4)
Show the full Challenge.lean (131 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Hyperperfect numbers

An integer $n > 1$ is called $k$-hyperperfect ($k \ge 1$, Minoli and Bear 1975) when
$n = 1 + k \cdot (\sigma_1(n) - n - 1)$, or equivalently $n + k(n + 1) = 1 + k \sigma_1(n)$;
setting $k = 1$ recovers `Nat.Perfect` (cf. `PerfectNumbers.infinitely_many_perfect`). Judson S.
McCranie (2000) conjectured that every $k$-hyperperfect integer with odd $k > 1$ has the form
$p^2 q$ for primes $p = (3k + 1) / 2$ and $q = 3k + 4$. At $k = 2$ (`OEIS A007593`), Alexander
Violette (June 2026) found a four-prime-factor $2$-hyperperfect counterexample outside the family
$n = 3^m(3^{m+1} - 2)$. Guy (2004, §B2, pp. 74–75) also cites Minoli and Bear's (1975)
conjecture that every $k \ge 1$ admits at least one $k$-hyperperfect integer; because
$n - 1 = k(\sigma_1(n) - n - 1)$ fixes $k$ uniquely for $n > 1$, this conjecture entails infinitely
many non-perfect hyperperfect integers ($k \ge 2$, `OEIS A007592`).

*References:*
- [Wikipedia: Hyperperfect number](https://en.wikipedia.org/wiki/Hyperperfect_number)
- [OEIS A007592](https://oeis.org/A007592) (non-perfect hyperperfect integers, $k \ge 2$)
- [OEIS A007593](https://oeis.org/A007593) ($2$-hyperperfect integers, including A. Violette's June
  2026 counterexample)
- D. Minoli and R. Bear (1975), *Hyperperfect numbers*, Pi Mu Epsilon J. **6**, no. 3, 153–157.
- [J. S. McCranie (2000)](https://cs.uwaterloo.ca/journals/JIS/VOL3/mccranie.html), J. Integer Seq.
  **3**, Article 00.1.3.
- R. K. Guy (2004), *Unsolved Problems in Number Theory*, 3rd ed., Springer, §B2, pp. 74–75
  (ISBN `978-0-387-20860-2`).
-/

@[expose] public section

namespace HyperperfectNumber

/-- Predicate asserting that $n > 1$ is $k$-hyperperfect ($k \ge 1$):
$n = 1 + k \cdot (s(n) - 1)$ where $s(n)$ sums the proper divisors of $n$. -/
def IsHyperperfect (k n : ℕ) : Prop :=
  0 < k ∧ 1 < n ∧ n = 1 + k * ((∑ d ∈ n.properDivisors, d) - 1)

instance instDecidableRelIsHyperperfect : DecidableRel IsHyperperfect := fun k n ↦ by
  unfold IsHyperperfect
  infer_instance

/-- At $k = 1$, `IsHyperperfect 1 n` coincides with Mathlib's `Nat.Perfect n`. -/
@[category API, AMS 11]
theorem isHyperperfect_one_iff (n : ℕ) : IsHyperperfect 1 n ↔ n.Perfect := by
  rcases n with _ | _ | m
  · simp [IsHyperperfect, Nat.Perfect]
  · simp [IsHyperperfect, Nat.Perfect]
  · have hgt : 1 < m + 2 := by omega
    have h1 : 1 ∈ (m + 2).properDivisors := Nat.one_mem_properDivisors_iff_one_lt.mpr hgt
    have hge : 1 ≤ ∑ d ∈ (m + 2).properDivisors, d :=
      Finset.single_le_sum (f := fun d ↦ d) (fun _ _ ↦ Nat.zero_le _) h1
    simp only [IsHyperperfect, Nat.Perfect]
    omega

/-- Checks `IsHyperperfect` on $(k, n) = (1, 6), (1, 28), (2, 21), (3, 325)$, where
$325 = 5^2 \cdot 13$ illustrates McCranie's odd-$k$ prime pattern at $k = 3$. -/
@[category test, AMS 11]
theorem isHyperperfect_small_examples :
    IsHyperperfect 1 6 ∧ IsHyperperfect 1 28 ∧
      IsHyperperfect 2 21 ∧ IsHyperperfect 3 325 := by
  decide

/-- Excludes boundary and non-hyperperfect inputs $(0, 6), (2, 0), (2, 1), (2, 10)$. -/
@[category test, AMS 11]
theorem not_isHyperperfect_degenerate_and_ten :
    ¬ IsHyperperfect 0 6 ∧ ¬ IsHyperperfect 2 0 ∧
      ¬ IsHyperperfect 2 1 ∧ ¬ IsHyperperfect 2 10 := by
  decide

/--
McCranie's odd-$k$ conjecture (2000): for odd $k > 1$, every $k$-hyperperfect integer $n$ satisfies
$n = p^2 q$ with primes $p = (3k + 1)/2$ and $q = 3k + 4$.
-/
@[category research open, AMS 11]
theorem mccranie_odd_hyperperfect_conjecture {k n : ℕ} (hk_odd : Odd k) (hk : 1 < k)
    (hn : IsHyperperfect k n) :
    ((3 * k + 1) / 2).Prime ∧ (3 * k + 4).Prime ∧ n = ((3 * k + 1) / 2) ^ 2 * (3 * k + 4) := by
  sorry

/--
Not every $2$-hyperperfect integer has the form $3^m(3^{m+1} - 2)$ with $m \ge 1$ and $3^{m+1} - 2$
prime: Alexander Violette (June 2026, [OEIS A007593](https://oeis.org/A007593)) found the
four-prime-factor $2$-hyperperfect counterexample
$n = 3^{16} \cdot 129140227 \cdot 256572153302107 \cdot 225205396855537107298933866373$.
-/
@[category research solved, AMS 11]
theorem two_hyperperfect_characterization :
    ¬ ∀ n : ℕ, IsHyperperfect 2 n →
      ∃ m ≥ 1, (3 ^ (m + 1) - 2).Prime ∧ n = 3 ^ m * (3 ^ (m + 1) - 2) := by
  sorry

/--
Minoli and Bear's conjecture (1975; Guy 2004, §B2, pp. 74–75): for every integer $k \ge 1$, at
least one $k$-hyperperfect integer exists.
-/
@[category research open, AMS 11]
theorem minoli_bear_hyperperfect_conjecture :
    ∀ k ≥ 1, ∃ n, IsHyperperfect k n := by
  sorry

/--
Infinitely many non-perfect hyperperfect integers ($k \ge 2$, listed in
[OEIS A007592](https://oeis.org/A007592)) exist. This follows from
`minoli_bear_hyperperfect_conjecture` (Guy 2004, §B2, pp. 74–75), because
$n - 1 = k(\sigma_1(n) - n - 1)$ uniquely fixes $k$ for any $n > 1$ (for $k = 1$, cf.
`PerfectNumbers.infinitely_many_perfect`).
-/
@[category research open, AMS 11]
theorem infinitely_many_hyperperfect_numbers :
    {n : ℕ | ∃ k ≥ 2, IsHyperperfect k n}.Infinite := by
  sorry

end HyperperfectNumber

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

nosorry fetch wikipedia-hyperperfectnumber
nosorry submit wikipedia-hyperperfectnumber nosorry/wikipedia-hyperperfectnumber/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.