| | @@ -0,0 +1,151 @@ |
| 1 | +# Erdős #939 at exponent four |
| 2 | + |
| 3 | +A positive integer is 4-powerful if every nonzero prime exponent in its |
| 4 | +factorization is at least four. This includes 1. A witness for |
| 5 | +`Erdos939Sums 4` is a pair of distinct positive 4-powerful numbers |
| 6 | +$a,b$ with $\gcd(a,b)=1$ and $a+b$ 4-powerful. The accepted Lean |
| 7 | +theorem `existence_iff_four` reduces the general existence question to |
| 8 | +this case. |
| 9 | + |
| 10 | +The problem discussion reports a search bounding the larger summand by |
| 11 | +$10^{14}$. A later working report uses the same convention at $10^{16}$. |
| 12 | +A Botnet report bounds the sum by $10^{18}$, and a researcher profile |
| 13 | +reports a search up to $9\cdot10^{18}$. This experiment bounds the larger |
| 14 | +summand and therefore allows sums up to twice the stated bound. |
| 15 | +[Problem discussion](https://www.erdosproblems.com/forum/thread/939) |
| 16 | +[Working report](https://www.erdosproblemaday.com/report/939) |
| 17 | +[Botnet report](https://botnet.com/t/fadf55ec-ed4d-4ef5-8846-42bab68c4f1a) |
| 18 | +[Researcher profile](https://github.com/joaquimmj) |
| 19 | + |
| 20 | +## Search completeness (paper proof) |
| 21 | + |
| 22 | +**Theorem.** For integers $0\le L<B\le 10^{24}$, `search B [L]` |
| 23 | +enumerates each unordered pair of distinct positive 4-powerful |
| 24 | +integers $a,b$ with $L<\max(a,b)\le B$, $\gcd(a,b)=1$, and |
| 25 | +$a+b$ 4-powerful exactly once. With $L$ omitted it takes $L=0$. |
| 26 | + |
| 27 | +**Proof.** Put $c=a+b$. All three terms are at most $2B$. |
| 28 | +The sieve lists all primes $p$ with $p^4\le 2B$. |
| 29 | +The recursive generator starts at 1, appends a strictly increasing |
| 30 | +sequence of such primes, and visits each exponent from four to the |
| 31 | +largest that keeps the product at most $2B$. Each recursive call |
| 32 | +emits its product. Unique prime factorization gives a bijection |
| 33 | +between calls and all positive 4-powerful numbers up to $2B$. |
| 34 | +Whenever the smallest allowed power of a prime is too large, all |
| 35 | +larger primes are too large as well. |
| 36 | + |
| 37 | +Since $a,b$ are coprime, they cannot both be even, and parity of the |
| 38 | +equation forces exactly one of $a,b,c$ to be even. The even term is |
| 39 | +divisible by 16. The other two terms are odd. For any $x,y$, the |
| 40 | +sets of common divisors of $x,y$, $x,x+y$, and $x,y-x$ |
| 41 | +when $y>x$ coincide by taking sums or differences. |
| 42 | +Thus the two odd terms share no prime divisor in a primitive triple. |
| 43 | +In particular their masks, which record divisibility by 3, 5, 7 and |
| 44 | +11, must have disjoint bits. |
| 45 | + |
| 46 | +* If the even term is a summand, let $x$ be the odd summand and |
| 47 | + $y=c$ be the larger odd term. Then $y>x$ and $y\equiv x\pmod{16}$. |
| 48 | + The even summand $y-x$ is positive. In each compatible pair of |
| 49 | + masks within a residue class the program checks every $x\le B$ |
| 50 | + and every $y$ with $y>x$ and $y-x\le B$. When $x\le L$, |
| 51 | + it also requires $y>x+L$, exactly the condition $y-x>L$. |
| 52 | +* If $c$ is even, the two odd summands have opposite residues |
| 53 | + modulo 16. They lie in distinct residue classes since an odd |
| 54 | + residue cannot equal its negative modulo 16. Exactly one residue |
| 55 | + is in $\{1,3,5,7\}$. The program starts with that class and looks |
| 56 | + only in its opposite class, again using compatible masks. It |
| 57 | + requires both summands to be at most $B$, and if the first is at |
| 58 | + most $L$, requires the second to be greater than $L$. |
| 59 | + |
| 60 | +In both cases the candidate even term is in $[1,2B]$. A bitmap |
| 61 | +rejects a candidate only if no generated even number has its |
| 62 | +$(n/16)\bmod 2^{24}$ index. Every remaining candidate is checked |
| 63 | +for exact membership in the even set. The final gcd test on the odd |
| 64 | +terms is equivalent to the required gcd on the summands. The |
| 65 | +inequality $x<y$ in the first case and the unique choice of first |
| 66 | +residue in the second prevent repetitions. Thus every printed |
| 67 | +triple is a witness in the interval, and every witness is printed. |
| 68 | +∎ |
| 69 | + |
| 70 | +The computations use unsigned 128-bit integers for values. During |
| 71 | +enumeration each prime is at most $2\cdot10^6$, so even the largest |
| 72 | +trial multiplication is bounded by |
| 73 | +$2\cdot10^{24}(2\cdot10^6)^4<2^{128}$. |
| 74 | +Each accepted product and each candidate sum is at most $2B$. |
| 75 | +Hashing may wrap in 64-bit arithmetic. The set compares full |
| 76 | +128-bit keys, so hash collisions do not change membership. |
| 77 | + |
| 78 | +## Independent checks (paper proof and computation) |
| 79 | + |
| 80 | +**Lemma.** Every positive 4-powerful number has a unique expression |
| 81 | +$d^4 u^5 v^6 w^7$ for positive $d$ and pairwise coprime squarefree |
| 82 | +$u,v,w$. |
| 83 | + |
| 84 | +**Proof.** For prime exponent $e\ge4$, choose a core exponent $0,5,6,7$ |
| 85 | +when $e\bmod4$ is $0,1,2,3$, respectively. The core exponent |
| 86 | +does not exceed $e$, and the remainder is a nonnegative multiple of |
| 87 | +four. The former determines whether the prime belongs to $u,v,w$ |
| 88 | +and the latter determines its multiplicity in $d$. Conversely |
| 89 | +all exponents arising from this expression are zero or at least |
| 90 | +four. Uniqueness follows from the choice at each prime. ∎ |
| 91 | + |
| 92 | +The decomposition also bounds the number of generated values |
| 93 | +through $N$ by $N^{1/4}\zeta(5/4)\zeta(6/4)\zeta(7/4)$. |
| 94 | +Indeed, for each $u,v,w$ the number of possible $d$ is at most |
| 95 | +$N^{1/4}u^{-5/4}v^{-6/4}w^{-7/4}$, and dropping the squarefree and |
| 96 | +coprimality constraints gives the three convergent sums. For $s>1$ |
| 97 | +the integral bound gives $\zeta(s)\le 1+1/(s-1)$. Thus the product of |
| 98 | +the three sums is at most $5\cdot 3\cdot (7/3)=35$, and the number |
| 99 | +of values is at most $7\cdot10^7$ for the supported bounds. Each |
| 100 | +parity case checks at most the square of that number of pairs. |
| 101 | +The counters therefore fit in 64 bits. |
| 102 | + |
| 103 | +`check.py` generates just the cores $q=u^5v^6w^7$ over primes |
| 104 | +with fifth power at most the limit $N$. For each $q$, it counts |
| 105 | +possible $d$ by the integer fourth root of $\lfloor N/q\rfloor$, |
| 106 | +which is the integer square root applied twice. If $q$ is odd, |
| 107 | +the odd products are exactly those with odd $d$. If $q$ is even, |
| 108 | +every product is even. For small bounds it generates the numbers |
| 109 | +explicitly and checks all unordered summand pairs directly. It |
| 110 | +compares both the witness list and the counts of arithmetic matches |
| 111 | +that survive the parity and small-prime sieve before the final gcd. |
| 112 | +The latter comparison tests the two parity cases even when the |
| 113 | +witness list is empty. |
| 114 | + |
| 115 | +## Reproduction |
| 116 | + |
| 117 | +From this directory, compile with a C++20 compiler supporting |
| 118 | +`__uint128_t` and run the offline checks with Python 3. |
| 119 | + |
| 120 | +```sh |
| 121 | +g++ -O3 -std=c++20 -Wall -Wextra -Werror search.cpp -o /tmp/erdos939-search |
| 122 | +python3 check.py /tmp/erdos939-search --bound 10000000000000000000000 |
| 123 | +/tmp/erdos939-search 1000000000000000000000 |
| 124 | +/tmp/erdos939-search 10000000000000000000000 1000000000000000000000 |
| 125 | +``` |
| 126 | + |
| 127 | +## Computational result |
| 128 | + |
| 129 | +**Proposition (exhaustive computation).** Every witness has |
| 130 | +$\max(a,b)>10^{22}$. |
| 131 | + |
| 132 | +| Lower bound $L$ | Upper bound $B$ | Odd values through $2B$ | Even values through $2B$ | Even summand matches | Even sum matches | Coprime witnesses | Wall time | |
| 133 | +| ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: | |
| 134 | +| 0 | $10^{21}$ | 441,301 | 1,324,802 | 12,054 | 5,977 | 0 | 339 s | |
| 135 | +| $10^{21}$ | $10^{22}$ | 794,365 | 2,396,765 | 10,011 | 4,973 | 0 | 845 s | |
| 136 | + |
| 137 | +The two match columns count triples after the parity and small-prime |
| 138 | +filters and before the final gcd test. The independent checker matched |
| 139 | +both candidate-number counts at each bound. At smaller bounds it agreed |
| 140 | +with all the search outputs across ten direct scans, including two with |
| 141 | +a positive $L$. Those comparisons also passed with the C++ executable |
| 142 | +built using the undefined behavior sanitizer. |
| 143 | + |
| 144 | +The full repository check `scripts/check.sh` passed with 9,061 |
| 145 | +build jobs. Its axiom audit reported 719 theorems using only the |
| 146 | +three standard axioms and no `sorry` among 799 constants under |
| 147 | +`ErdosSwarm`. No Lean source changed. The search-completeness |
| 148 | +arguments above are paper proofs, and the finite search output is |
| 149 | +computational evidence. A trial at $10^{23}$ was stopped after generating |
| 150 | +the candidates. The complete coverage ends at $10^{22}$, and the |
| 151 | +unbounded $r=4$ existence question remains open. |