#Get total number of combiantions

2 messages · Page 1 of 1 (latest)

boreal reef
#

I have an array its lets say [1,2,3] i also have a number lets say 7, in how many ways can i combine the numbers in the array to get the number 7:
Example:
I can combine 1 1 1 1 1 1 1 and 3 2 1 1 but not 3 3 2 as that goes over 7
How could i solve this?

elfin ospreyBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.