Question: How to get maple to output combinations (not the total)

November 16 2012 LouWatts 0
0

Hi im trying to get maple to output different combinations from a list of elements ( without using any packages ). 

for example I have a list :

  here each { } is one element and I need to do combinations in 3's soo I want it to return:
  order doesnt matter and I dont want repetitions.
1. {2,8} {2,4,6,7,8} {4,6,8}
2. {2,8} {2,4,6,7,8} {1,4,8}
3. {2,8} {2,4,6,7,8} {1,4,8,9}
4. {2,8} {4,6,8} {1,4,8}
5. {2,8} {4,6,8} {1,4,8,9}
6. {2,8} {1,4,8} {1,4,8,9}
7. {2,4,6,7,8} {4,6,8} {1,4,8}
8. {2,4,6,7,8} {4,6,8} {1,4,8,9}
9. {2,4,6,7,8} {1,4,8} {1,4,8,9}
10. {4,6,8} {1,4,8} {1,4,8,9}

so I will get 10 combinations in total.

how would I go about this?
I would really appreciate some advice 

Please Wait...