from itertools import combinations, imap
from operator import add
from functools import partial
result = imap(partial(map, add, range(6)), combinations(range(1, 46), 6))
6 1 45. 6 x0, x1, x2, x3, x4, x5 1 45,
x0, x1+1, x2+2, x3+3, x4+4, x5+5
1-50 , y0, y1, y2, y3, y4, y5 x
y0, y1-1, y2-2, y3-3, y4-4, y5-5
, , . , . , . . , 16 6, 1212 , .