Program of combinations of sums