Results 1 to 8 of 8

Thread: Please Confirm 369,569

Threaded View

  1. #1

    Thread Starter
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Please Confirm 369,569

    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:
    1. Dim MySourceArr() As Integer
    2. ReDim MySourceArr(60)
    3. For MyI = 0 To 60
    4.     MySourceArr(MyI) = MyI + 1
    5. Next MyI

    and:

    VB Code:
    1. Dim My4_arr() As Integer
    2. 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width