Are there 369569 subsets of 6 numbers that add to 150, from
a set of 61 numbers, range = 1 to 61?
ie...
Given:
VB Code:
Dim MySourceArr() As Integer ReDim MySourceArr(60) For MyI = 0 To 60 MySourceArr(MyI) = MyI + 1 Next MyI
and:
VB Code:
Dim My4_arr() As Integer ReDim My4_arr(5)
How many combinations of 61 elements, taken 6 at a time add to 150, if the 61 elements are the numbers 1 thru 61?
I've got an app that calculates 369569 of them over 71 seconds, and I'm wondering if it is correct?
-Lou




Reply With Quote