What are all the possible combinations of 6 integers from 1-26 that SUM up to either 88 or 74? [closed]
I have a pool of integers. It contains all integers from 1 to 26.
Pool=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26
Challenge:
- What are all the possible combinations of 6 integers that Sum up to either 88 or 74?
Note: The numbers are allowed to repeat within the generated series of 6 numbers
result example 1: 26,1,12,1,22,12 result example 2: 1,26,15,26,5,15 result example 3: 1,39,19,19,9,19 result example 4: 14,18,8,8,18,8
I tried doing this manually, but I want to make sure I don't miss any combination, so I'd like to know if this can be done using simple programming.
source https://stackoverflow.com/questions/75378093/what-are-all-the-possible-combinations-of-6-integers-from-1-26-that-sum-up-to-ei
Comments
Post a Comment