cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Combinations without repetition!

jkowalski
12-Amethyst

Combinations without repetition!

I am trying to write a program but it did not work out. Actually, I do not know the programming in Mathcad. Black magic for me.

I want to have the program written in Mathcad because I would have to export a file from the Internet websites and later imported into Mathcad. Too much of this work.

Example of what I want to get on this page:http://www.mathsisfun.com/combinatorics/combinations-permutations-calculator.html


Please see the attached file for more info. Thanks! JK

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:jkowalski)

Something like the attached?

Still playing lotto?

View solution in original post

5 REPLIES 5

Do you mean something like the attached?

Alan

I'm sorry but this is not the solution to my problem....

see a *.gif file.

I have a vector(array) of numbers:


Vec:=[5,8,17,33,80]


and I would like to enumerate all the combinations of a subset of three of element.

The result is:

5,8,17

5,8,33

5,8,80

........

........

17,33,80


Total to be 10.

============================================================


Of course, I also want the program to solve various possibilities depending on the vector(array).

An example:

Vec:=[20,31,41,45,65,78,80] to subset of 4 of element.

result is:


20,31,41,45

20,31,41,65

20,31,41,78

................

................

45,65,78,80

Combin(7,4)=35 possibilities

Werner_E
25-Diamond I
(To:jkowalski)

Something like the attached?

Still playing lotto?

jkowalski
12-Amethyst
(To:Werner_E)

This worked perfectly well. 🙂

I play lotto purely theoretical.

Thanks again. for your time(a lot of time) and help

Werner_E
25-Diamond I
(To:jkowalski)

I play lotto purely theoretical.

Sure the best way to save money anyway 😉

Announcements

Top Tags