number theory problem

1847 days ago by bardg

bound = 3000 candidates = [] for p in range(0, 100): candidates = candidates + [ factorial(p) ] for x in range(-bound, bound): small_z = ceil( (x - 2) / 3 ) if (mod(x,100)==1): print "Starting to consider x=", print x for z in range(small_z, bound): y = 4 + 6*z - x pfactorial = x^3 + y^3 - 4 if (pfactorial in candidates): print "Solution!" print "x=", print x, print "y=", print y, print "p=antifactorial of ", print pfactorial 
       
Starting to consider x= -2999
Starting to consider x= -2899
Starting to consider x= -2799
Starting to consider x= -2699
Starting to consider x= -2599
Starting to consider x= -2499
Starting to consider x= -2399
Starting to consider x= -2299
Starting to consider x= -2199
Starting to consider x= -2099
Starting to consider x= -1999
Starting to consider x= -1899
Starting to consider x= -1799
Starting to consider x= -1699
Starting to consider x= -1599
Starting to consider x= -1499
Starting to consider x= -1399
Starting to consider x= -1299
Starting to consider x= -1199
Starting to consider x= -1099
Starting to consider x= -999
Starting to consider x= -899
Starting to consider x= -799
Starting to consider x= -699
Starting to consider x= -599
Starting to consider x= -499
Starting to consider x= -399
Starting to consider x= -299
Starting to consider x= -199
Starting to consider x= -99
Solution!
x= -1 y= 5 p=antifactorial of  120
Starting to consider x= 1
Solution!
x= 1 y= 3 p=antifactorial of  24
Starting to consider x= 101
Starting to consider x= 201
Starting to consider x= 301
Starting to consider x= 401
Starting to consider x= 501
Starting to consider x= 601
Starting to consider x= 701
Starting to consider x= 801
Starting to consider x= 901
Starting to consider x= 1001
Starting to consider x= 1101
Starting to consider x= 1201
Starting to consider x= 1301
Starting to consider x= 1401
Starting to consider x= 1501
Starting to consider x= 1601
Starting to consider x= 1701
Starting to consider x= 1801
Starting to consider x= 1901
Starting to consider x= 2001
Starting to consider x= 2101
Starting to consider x= 2201
Starting to consider x= 2301
Starting to consider x= 2401
Starting to consider x= 2501
Starting to consider x= 2601
Starting to consider x= 2701
Starting to consider x= 2801
Starting to consider x= 2901
Starting to consider x= -2999
Starting to consider x= -2899
Starting to consider x= -2799
Starting to consider x= -2699
Starting to consider x= -2599
Starting to consider x= -2499
Starting to consider x= -2399
Starting to consider x= -2299
Starting to consider x= -2199
Starting to consider x= -2099
Starting to consider x= -1999
Starting to consider x= -1899
Starting to consider x= -1799
Starting to consider x= -1699
Starting to consider x= -1599
Starting to consider x= -1499
Starting to consider x= -1399
Starting to consider x= -1299
Starting to consider x= -1199
Starting to consider x= -1099
Starting to consider x= -999
Starting to consider x= -899
Starting to consider x= -799
Starting to consider x= -699
Starting to consider x= -599
Starting to consider x= -499
Starting to consider x= -399
Starting to consider x= -299
Starting to consider x= -199
Starting to consider x= -99
Solution!
x= -1 y= 5 p=antifactorial of  120
Starting to consider x= 1
Solution!
x= 1 y= 3 p=antifactorial of  24
Starting to consider x= 101
Starting to consider x= 201
Starting to consider x= 301
Starting to consider x= 401
Starting to consider x= 501
Starting to consider x= 601
Starting to consider x= 701
Starting to consider x= 801
Starting to consider x= 901
Starting to consider x= 1001
Starting to consider x= 1101
Starting to consider x= 1201
Starting to consider x= 1301
Starting to consider x= 1401
Starting to consider x= 1501
Starting to consider x= 1601
Starting to consider x= 1701
Starting to consider x= 1801
Starting to consider x= 1901
Starting to consider x= 2001
Starting to consider x= 2101
Starting to consider x= 2201
Starting to consider x= 2301
Starting to consider x= 2401
Starting to consider x= 2501
Starting to consider x= 2601
Starting to consider x= 2701
Starting to consider x= 2801
Starting to consider x= 2901