I started with larger numbers, but as preliminary results would print out and a new low for the sum was found, I cancelled the program and used a new smaller upper limit.
I found (a,b,c) = (40, 108, 45)
with a+b+c = 193
------
top = 200
ans = {}
for a in range(1,top):
for b in range(1,top):
for c in range(1,top):
if lcm(gcd(a,b),c) != 180:
continue
if lcm(gcd(b,c),a) != 360:
continue
if lcm(gcd(c,a),b) != 540:
continue
print(a,b,c)
mysum = a+b+c
if mysum not in ans:
ans[mysum] = [[a,b,c]]
else:
ans[mysum].append([a,b,c])
|
Posted by Larry
on 2024-11-25 23:07:10 |