kontrol ettim yazdığınız küme sağlıyor.Ama en küçük olduğunu garanti edebilirmiyiz sıkıntı orda.Ayrıca benden çok daha az elemanlı bulmuşsunuz tebrikler
istenen=False
while istenen==False:
a=itertools.combinations(range(1,19),6)
b=itertools.combinations(range(1,19),3)
c=[(1, 2, 3, 4, 5, 6), (1, 2, 3, 4, 7, 8), (1, 2, 3, 4, 9, 10), (1, 2, 3, 4, 11, 12), (1, 2, 3, 4, 13, 14), (1, 2, 3, 4, 15, 16), (1, 2, 3, 4, 17, 18), (1, 2, 5, 6, 7, 8), (1, 2, 5, 6, 9, 10), (1, 2, 5, 6, 11, 12), (1, 2, 5, 6, 13, 14), (1, 2, 5, 6, 15, 16), (1, 2, 5, 6, 17, 18), (1, 2, 7, 8, 9, 10), (1, 2, 7, 8, 11, 12), (1, 2, 7, 8, 13, 14), (1, 2, 7, 8, 15, 16), (1, 2, 7, 8, 17, 18), (1, 2, 9, 10, 11, 12), (1, 2, 9, 10, 13, 14), (1, 2, 9, 10, 15, 16), (1, 2, 9, 10, 17, 18), (1, 2, 11, 12, 13, 14), (1, 2, 11, 12, 15, 16), (1, 2, 11, 12, 17, 18), (1, 2, 13, 14, 15, 16), (1, 2, 13, 14, 17, 18), (1, 2, 15, 16, 17, 18), (3, 4, 5, 6, 7, 8), (3, 4, 5, 6, 9, 10), (3, 4, 5, 6, 11, 12), (3, 4, 5, 6, 13, 14), (3, 4, 5, 6, 15, 16), (3, 4, 5, 6, 17, 18), (3, 4, 7, 8, 9, 10), (3, 4, 7, 8, 11, 12), (3, 4, 7, 8, 13, 14), (3, 4, 7, 8, 15, 16), (3, 4, 7, 8, 17, 18), (3, 4, 9, 10, 11, 12), (3, 4, 9, 10, 13, 14), (3, 4, 9, 10, 15, 16), (3, 4, 9, 10, 17, 18), (3, 4, 11, 12, 13, 14), (3, 4, 11, 12, 15, 16), (3, 4, 11, 12, 17, 18), (3, 4, 13, 14, 15, 16), (3, 4, 13, 14, 17, 18), (3, 4, 15, 16, 17, 18), (5, 6, 7, 8, 9, 10), (5, 6, 7, 8, 11, 12), (5, 6, 7, 8, 13, 14), (5, 6, 7, 8, 15, 16), (5, 6, 7, 8, 17, 18), (5, 6, 9, 10, 11, 12), (5, 6, 9, 10, 13, 14), (5, 6, 9, 10, 15, 16), (5, 6, 9, 10, 17, 18), (5, 6, 11, 12, 13, 14), (5, 6, 11, 12, 15, 16), (5, 6, 11, 12, 17, 18), (5, 6, 13, 14, 15, 16), (5, 6, 13, 14, 17, 18), (5, 6, 15, 16, 17, 18), (7, 8, 9, 10, 11, 12), (7, 8, 9, 10, 13, 14), (7, 8, 9, 10, 15, 16), (7, 8, 9, 10, 17, 18), (7, 8, 11, 12, 13, 14), (7, 8, 11, 12, 15, 16), (7, 8, 11, 12, 17, 18), (7, 8, 13, 14, 15, 16), (7, 8, 13, 14, 17, 18), (7, 8, 15, 16, 17, 18), (9, 10, 11, 12, 13, 14), (9, 10, 11, 12, 15, 16), (9, 10, 11, 12, 17, 18), (9, 10, 13, 14, 15, 16), (9, 10, 13, 14, 17, 18), (9, 10, 15, 16, 17, 18), (11, 12, 13, 14, 15, 16), (11, 12, 13, 14, 17, 18), (11, 12, 15, 16, 17, 18), (13, 14, 15, 16, 17, 18)]
ekle=[]
for i in c:
d=itertools.combinations(i,3)
for j in d:
ekle.append(j)
if set(ekle)==set(b):
print(set(ekle))
print(len(c))
istenen=True