"""Conj 7.3 scan over all coprime 3 <= a <= 770, 3 <= b <= 60 (fast scan, limit 40ab, not proved);
prints the largest ratios g(a,c)/g(a,b).  Output: jaffe73_scan_a770_b60.txt"""
import time
from math import gcd
from jaffe_g import g
t0=time.time(); best=[]
for a in range(3, 771):
    for b in range(3, 61):
        if gcd(a,b)!=1 or a==b: continue
        c=b+1
        while gcd(c,a)!=1: c+=1
        if c==a: continue
        r=g(a,c,40)/g(a,b,40); best.append((r,a,b,c))
best.sort(reverse=True)
print("time %.0fs pairs %d" % (time.time()-t0, len(best)))
for x in best[:15]: print(x)
