def f(x): y=(x+2019)/(2*x-4) return y for n in range(3,3001): a=f(n) if int(a)==a: print("(",n,";",a,")")