COMBINATORICS

Generating Combinations and Permutations:
Combinations example for 7 numbers taken as groups of 6:
1,2,3,4,5,6
1,2,3,4,5,7
1,2,3,4,6,7
1,2,3,5,6,7
1,2,4,5,6,7
1,3,4,5,6,7
2,3,4,5,6,7
Permutations I example for 2 numbers taken as groups of 3
1,1,1
1,1,2
1,2,1
1,2,2
2,1,1
2,1,2
2,2,1
2,2,2
Permutations II example for 3 numbers taken as groups of 3
1,2,3
1,3,2
2,1,3
2,3,1
3,1,2
3,2,1
