Initial release

This commit is contained in:
Francois JUMELLE
2021-05-03 22:32:40 +02:00
commit 20526d93c8
928 changed files with 452368 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
from itertools import product
n = 18
start = (1, 17, 31, 41)
table = list(start)
while len(table) <= n:
next = max(table) + 1
while True:
next_is_ok = True
for i in table:
for couple in product(table, repeat=2):
if couple[0] + couple[1] == i + next:
next_is_ok = False
if next_is_ok:
table.append(next)
print(table)
break
next += 1
print(table[-1], ",", sum(table))