import itertools as it
start = 100
numbersCount = 3
step = 10
termsCount = 3
numbers = range(start, start + numbersCount * step, step)
print(list(numbers))
for terms in it.combinations_with_replacement(numbers, termsCount):
print(sum(terms), '=', ' + '.join(map(str, terms)))
aW1wb3J0IGl0ZXJ0b29scyBhcyBpdAoKc3RhcnQgPSAxMDAKbnVtYmVyc0NvdW50ID0gMwpzdGVwID0gMTAKdGVybXNDb3VudCA9IDMKCm51bWJlcnMgPSByYW5nZShzdGFydCwgc3RhcnQgKyBudW1iZXJzQ291bnQgKiBzdGVwLCBzdGVwKQpwcmludChsaXN0KG51bWJlcnMpKQpmb3IgdGVybXMgaW4gIGl0LmNvbWJpbmF0aW9uc193aXRoX3JlcGxhY2VtZW50KG51bWJlcnMsIHRlcm1zQ291bnQpOgoJcHJpbnQoc3VtKHRlcm1zKSwgJz0nLCAnICsgJy5qb2luKG1hcChzdHIsIHRlcm1zKSkp