Al P. answered 11/02/16
Tutor
0
(0)
Online Mathematics tutor
I cheated a bit too, and wrote a C program. For each combination less than or equal to 15, I sorted the 5 numbers high to low and kept count of how many times that sorted value was seen (so for example 2 1 1 1 1 in the file means one 2 with four 1's where the 2 can be anywhere in the numbers picked). A sequence like 2 1 1 1 1 is equivalent, as far as number of times it shows up, as "one number with four of some other number" if that makes any sense.
https://www.wyzant.com/resources/files/499876/adding_1_5_w_repeats_allowed
For the sequence 1 1 1 1 1 there is only one way to produce it (and since there is a constraint of sum <= 15, the only other two outputs where all five numbers are the same is 2 2 2 2 2 and 3 3 3 3 3). [ this accounts for 3 arrangements ]
Outputs like 2 1 1 1 1 occur 5!/4! = 5 ways (5! ways to arrange 5 numbers, but we've over counted by 4! ways because the 1's are indistinguishable). [ this pattern occurs 10 times ]
Then there are these additional five forms and their corresponding number of ways to produce them:
2 2 1 1 1 5!/(2!*3!) = 120/(2*6) = 10 ways [ occurs 10 times ]
5 2 1 1 1 5!/(3!) = 120/6 = 20 ways [ occurs 17 times ]
3 3 2 2 1 5!/(2!*2!) = 120/4 = 30 ways [ occurs 18 times ]
5 3 2 1 1 5!/(2!) = 120/2 = 60 ways [ occurs 10 times ]
5 4 3 2 1 5! = 120 ways [ occurs 1 time ]
Where I get stuck is computing how many times we'd expect, say, two unique numbers with a number repeated 3 times, because it depends on the constraint of not adding to more than 15. That form happens to appear 17 times. Perhaps the setup requires more or less a brute-force approach...
Hope this helps.
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
Jason L.
11/02/16