Jeff C.

asked • 11/01/16

How many ways can you add the numbers 1-5, USING ONLY 5 NUMBERS, to get a total of 15 or less. You may use numbers more than once

1,1,1,1,1 is a possibility since it is less than 15. list the possible outcomes

1,2,1,1,1 is a different outcome than 1,1,2,1,1.

ORDER DOES MATTER

2 Answers By Expert Tutors

By:

Al P. answered • 11/02/16

Tutor
0 (0)

Online Mathematics tutor

Jason L.

The way I did it was I ran 5 different nested for loops from 1 to 5 to create all of the 5 digit combos. I then split all of the combos by their individual digits and added them together (I did this part in Excel). Hope that helps.
Report

11/02/16

Al P.

Yes, thank you, I used a very similar approach (in fact your post is what made me think to write a C-program).  I also found the same 1753 arrangements that you did.   Its just that I assumed the problem should be solvable without a program(?)  As such, I was referring to being stuck on the setup of the manual-solution to the problem.  It seems we need to know how many forms to expect (n,m,w,r,s)  where (n,m,w,r,s) € {1,2,3,4,5} subject to n+m+w+r+s ≤ 15   and how many times that form will appear.   My C program found 7 forms, each with various contributions toward the total.   There were two easy forms: all-the-same digits (3 arrangements in all) and all distinct digits  (120 arrangements in all).  Its those pesky remaining forms where there are some duplicate digits that complicates a manual solution.         
 
Report

11/03/16

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.