• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Math Question

There's probably an easier way than what I'm doing (just listing them out), but here is the problem:

Find all the sets of four whole numbers with a sum of 16.
Is there some way to find out how many sets there are so I know if I have them all or something? This math problem sucks 🙁
-- mrcodedude
 


<< assuming the numbers you pick can't be repeated? >>


Yeah, so you can't have like:
4+4+6+2 and 6+2+4+4 as different combo's.
-- mrcodedude
 
If you want to count the number of sets, break down the number of sets of 4 whole numbers that sum to 1, 2, 3, ... until you hit 8 (convenient stopping point). Then the counting is simplified for sets of numbers that sum to 16 since those numbers are already represented as a combination of the ones you already calculated.

I know that's hand wavy, but this is the jist of the recursive methods already proposed.
 
Back
Top