/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/modulepublicimportFormalConjecturesUtil
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).
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) found the
four-prime-factor $2$-hyperperfect counterexample
$n = 3^{16} \cdot 129140227 \cdot 256572153302107 \cdot 225205396855537107298933866373$.