I have to do some very repetitive calculations based on how many objects there are.
Example there are 4 objects.
Then I have to do these calculations:
1+2
1+3
1+4
2+1
2+3
2+4
3+1
3+2
3+4
4+1
4+2
4+3
1+3+2
1+4+3
1+2+4
3+2+1
3+4+2
3+2+4
4+2+1
4+3+1
4+2+3
1+2+3+4
How to do this in a non repetitive way of calculation all possibilities ? I want to calculate all possibilities expect that a object my not appear twice.