# Theoretical Results on Erdős Problem #470 (Part 2)

## Theorem 4 (No Odd Squarefree Weird Numbers with $\omega(n) \le 7$)
**Statement.** Let $n$ be an odd squarefree positive integer with $\omega(n) \le 7$ distinct prime factors. Then $n$ is not weird.

**Proof.**
By Theorem 1, no odd squarefree weird number has $\omega(n) \le 6$, and if $n = p_1 \cdots p_7$ ($3 \le p_1 < \dots < p_7$) has an abundant proper divisor $d \mid n$ with $\omega(d) \le 6$, then $d$ is pseudoperfect by Theorem 1, hence $n$ is pseudoperfect. Assume therefore that $n$ is abundant and $m = p_1 p_2 p_3 p_4 p_5 p_6$ is deficient ($D = 2m - \sigma(m) \ge 1$).
1. **Finite bound on $(p_1, \dots, p_6)$:**
   - If $p_1 \ge 5$, $\frac{\sigma(n)}{n} \le \frac{6}{5}\cdot\frac{8}{7}\cdot\frac{12}{11}\cdot\frac{14}{13}\cdot\frac{18}{17}\cdot\frac{20}{19}\cdot\frac{24}{23} = \frac{1990656}{1062347} < 2$, so $p_1 = 3$.
   - For each $2 \le k \le 6$, monotonicity of $\frac{p+1}{p}$ gives $\frac{\sigma(p_1 \cdots p_{k-1})}{p_1 \cdots p_{k-1}} \prod_{j=0}^{7-k} \frac{p_k+2j+1}{p_k+2j} \ge 2$, bounding $p_k$. In particular, by Theorem 1 ($r=6$), the maximum value of $\frac{\sigma(m_5)}{2m_5 - \sigma(m_5)}$ over all deficient $5$-tuples $m_5$ is $29952$ (at $(3,5,7,11,389)$), so $\left(\frac{p_6+1}{p_6}\right)^2 > \frac{59906}{59904}$ gives $p_6 \le 59904 < 10^5$.
   - Exact rational (`__int128`) enumeration (`check_sf7.cpp`) finds all **$20{,}211$** such deficient $6$-tuples $m$.
2. **Reduction of $p_7$ to subset-sum gaps of $\Sigma(\text{divs}(m))$:**
   - Since $n = m p_7$ is abundant and $p_7 > p_6$, its abundance satisfies
     $$A(n) = \sigma(m)(p_7+1) - 2mp_7 = \sigma(m) - p_7 D \in [0, \sigma(m) - p_6 - 1].$$
   - Every divisor of $m$ is a proper divisor of $n$. Hence if $A(n) \in \Sigma(\text{divs}(m))$, then $n$ is pseudoperfect.
   - For each of the $20{,}211$ deficient $6$-tuples $m$, exact interval merging (`check_sf7.cpp`) computes all subset-sum gaps $g \in [1, \sigma(m) - p_6 - 1]$ of the $64$ divisors of $m$ (at most $26$ reachable intervals in every case).
   - Across all $20{,}211$ bases $m$, only **$1{,}091$** gaps $g$ yield an integer prime $p_7 = (\sigma(m) - g)/D > p_6$ (within the upper bound $p_7 \le 271{,}878{,}144$). Exact subset-sum verification including proper divisors $d \cdot p_7 \le g$ confirms all $1{,}091$ numbers $m p_7$ are pseudoperfect (`weird_hits = 0`). $\blacksquare$

---

## Theorem 5 (General Bounds for $m Q_1 Q_2$ Constructions)
**Statement.** Let $m \ge 1$ be deficient with $D = 2m - \sigma(m) \ge 1$, and let $Q_1 < Q_2$ be odd primes with $\gcd(m, Q_1 Q_2) = 1$ such that $m Q_1$ is deficient and $m Q_1 Q_2$ is abundant. Then
$$\frac{\sigma(m)}{D} < Q_1 < \frac{2\sigma(m)}{D}, \qquad Q_2 \le \frac{\sigma(m)(Q_1 + 1)}{D Q_1 - \sigma(m)}.$$
In particular, if $D \ge 4$, then $Q_1 < \frac{\sigma(m)}{2} < m$.

**Proof.**
Since $m Q_1$ is deficient, $D_1 := 2m Q_1 - \sigma(m)(Q_1 + 1) = D Q_1 - \sigma(m) \ge 1$, giving $Q_1 > \frac{\sigma(m)}{D}$.
Since $m Q_1 Q_2$ is abundant, $\sigma(m)(Q_1 + 1)(Q_2 + 1) \ge 2m Q_1 Q_2$, i.e., $D_1 Q_2 \le \sigma(m)(Q_1 + 1)$, which gives the upper bound on $Q_2$.
If $Q_1 \ge \frac{2\sigma(m)}{D}$, then $D_1 = D Q_1 - \sigma(m) \ge \sigma(m)$, so since $Q_2 \ge Q_1 + 2$,
$$D_1 Q_2 \ge \sigma(m)(Q_1 + 2) > \sigma(m)(Q_1 + 1),$$
contradicting abundance of $m Q_1 Q_2$. Thus $Q_1 < \frac{2\sigma(m)}{D}$. When $D \ge 4$, $Q_1 < \frac{\sigma(m)}{2} < m$ since $\sigma(m) < 2m$. $\blacksquare$
