README.md
7.1 kB · markdown
mixed-powers
- Computes, for a finite base set
Dof integers>= 3and a levelk >= 1, whether every large integer is a sum of distinct terms of the multisetM_k(D)of powersd^j,dinD,j >= k, one copy per base: Erdos problem 124 at one level. - The certificate is the surplus certificate of
research/notes/erdos.md: the sumsP_nof thenleast terms are held as one bit array, each term folded in by one shift-or pass, and after each termT = 1 + max{x <= S_n/2 : x not in P_n}is read by a word scan down fromS_n/2; whenT <= a_(n+1)and the stepa_(m+1) <= S_m - 2T + 1holds until the surplus(sigma - 1) a_(m+1) >= C_k + 2T - 1takes over, the level is complete andF = T - 1is the largest integer that is no sum. The step check runs over the terms up to10^30in exact integer arithmetic,sigmaandC_kover the common denominator of thed - 1. - The census enumerates the base sets in
[3, R]minimal forsigma > 1andgcd = 1, every other such set containing one, and certifies each atk = 1, 2, ...until a cell passes the bit cap. - The route verb reads, per minimal base set, the least
sum(M_1(D) below N)/Nover termsNin[10^E, 10^30], truncated to six places, the quantity that bounds two-part partitions belowsigma = 2.
VERBS
census R K BITS THREADS: every minimal base set in[3, R]atk = 1..Kwith a2^BITS-bit array per cell; printsF, the count of positive non-sums up toF, the indexnand terma_nof the certificate,S_n, the term where the surplus takes over, and the depth histogram. Runtime2.9s atcensus 10 5 32 4,8.7s atcensus 12 5 32 4, on4threads,512MB per thread.cell D K BITS: one base set, comma separated, at one level. Runtime1.0s atcell 3,4,5 4 34,1.3s atcell 3,6,9,10,12 2 34,2GB.control: nine cells against a plain knapsack over every term up to4 F, sameFand same count of non-sums, and agcd = 3set that never certifies below2^24. Runtime0.9s.set D K B: the same base set read as a set of powers, ties counted once, by a plain knapsack toB; prints the largest non-sum belowB. Runtime under0.01s atset 3,5,6,9 1 20000, which reads649against the multiset'sF = 22.windows D K E F: over the termsa_(n+1)in[10^E, 10^F]ofM_K(D), the count of windowsa_(n+2) > S_nand of pairsm < nof windows where the upper window(S_m, a_(m+2))meets the lower window(S_n - a_(n+1), a_(n+2) - a_(n+1)). Runtime under0.01s atwindows 3,4,5 1 6 30:27of123, no pair.graham T P Q BITS: the setfloor(T (P/Q)^n),n >= 1, up to2^BITS, exact in integers; the count of windows and of windows holding a non-sum, and the largest non-sum up to2^(BITS-1). Runtime under0.1s atgraham 2 5 3 26:31windows, all holding a non-sum, largest23559582.refute BITS: the set2 F_m - 1,m >= 2, up to2^BITS, which refutes the surplus lemma L of the note: the least of2 (S_n - a_(n+1)) - a_(n+1), the windows and those holding a non-sum, and the non-sums below10^6. Runtime under0.1s atrefute 27:36windows, all holding a non-sum.ternary N HI THREADS:g_3(n)of Erdos problem 817 forn = 1..N, exhaustive: for each largest element in turn, a search from the top down over sets whose3^nternary sums are distinct, one bit array of sums, pruned byg_3(r)of the run before and bysum a_i^2 >= (9^n - 1)/8. Runtime5.9s atternary 6 200 8.probe N TOP THREADS: the same search at one largest element. Runtime36s atprobe 7 380 8.band LO HI W THREADS: the least largest element in[LO, HI]of an admissible 7-set whose six largest elements lie withinWof it, exhaustive inside that band. Runtime2.8s atband 419 475 70 8, which finds{302, 409, 447, 459, 465, 466, 474}, and114s atband 419 473 100 8, which finds none.offsets LO HI: the offset families{0, 1, 3, 8, 22, 60},{0, 2, 6, 9, 23, 61},{0, 2, 5, 7, 21, 60}below a largest element plus one free offset. Runtime1.3s.route R E: the least ratio per minimal base set in[3, R]over terms in[10^E, 10^30]. Runtime under0.01s.
RUN
bash scripts/cargo.sh cargo run --release -p mixed-powers -- census 10 5 32 4
bash scripts/cargo.sh cargo run --release -p mixed-powers -- census 12 5 32 4
bash scripts/cargo.sh cargo run --release -p mixed-powers -- cell 3,4,5 4 34
bash scripts/cargo.sh cargo run --release -p mixed-powers -- cell 3,6,9,10,12 2 34
bash scripts/cargo.sh cargo run --release -p mixed-powers -- control
bash scripts/cargo.sh cargo run --release -p mixed-powers -- set 3,5,6,9 1 20000
bash scripts/cargo.sh cargo run --release -p mixed-powers -- route 10 12
bash scripts/cargo.sh cargo run --release -p mixed-powers -- windows 3,4,5 1 6 30
bash scripts/cargo.sh cargo run --release -p mixed-powers -- graham 2 5 3 26
bash scripts/cargo.sh cargo run --release -p mixed-powers -- refute 27
bash scripts/cargo.sh cargo run --release -p mixed-powers -- ternary 6 200 8
bash scripts/cargo.sh cargo run --release -p mixed-powers -- band 419 475 70 8
bash scripts/cargo.sh cargo run --release -p mixed-powers -- band 419 473 100 8
bash scripts/cargo.sh cargo test --release -p mixed-powers,7tests, under1s after the build.
READS
30minimal base sets in[3, 10], all certified atk = 1, 2, 3,21atk = 4,5atk = 5;103in[3, 12], all atk = 1, 2with{3, 6, 9, 10, 12}atk = 2from the cell verb,F = 1473914231.F({3, 4, 5}, k)atk = 1..4:79, 77613, 4330731, 1075364603, with11, 1128, 45704, 1785062positive non-sums up toF;F({3, 4, 6}, k)atk = 1..3:986, 242113, 58941162.- The one base set in
[3, 12]withsigma = 1andgcd = 1is{3, 4, 7}, outside the certificate. - Route ratios over
[10^12, 10^30]for the30minimal base sets in[3, 10]: between1.105953and1.537469.
WITNESSES
research/claims/erdos.md, every row citing this study:route 10 12: the two-part obstruction at twelve digits.census 10 5 32 4: cofinite atk = 1, 2, 3for every base set in[3, 10].census 12 5 32 4andcell 3,6,9,10,12 2 34: cofinite atk = 1, 2for every base set in[3, 12].census 10 5 32 4,cell 3,4,5 4 34andcontrol: the largest non-sums of{3, 4, 5}and{3, 4, 6}and the knapsack agreement.census 10 5 32 4andcell 3,4,5 4 34: the Conjecture row on{3, 4, 5}at every level.cell 3,5,6,9 1 20andset 3,5,6,9 1 20000: sets and multisets differ on tie cells.graham 2 5 3 26: the seed of the incompleteness offloor(2 (5/3)^n).windows: the power multisets run no window chain.census 10 5 32 4,cell 3,4,5 4 34andcell 3,4,5 5 34: the certificate for{3, 4, 5}atk = 5passes2^34bits.refute 27: the Refuted row on the surplus lemma L.ternary 6 200 8:g_3(n)for Erdos problem 817 atn = 1..6.band 419 475 70 8and the crate test on the set:g_3(7) <= 474.band 419 473 100 8: no set beating474with its six largest elements within100of the top.- The certificate, exactness, monotone, two-part, window and surplus-does-not-heal rows are proofs on
research/notes/erdos.md.