This is a little complicated, i'll try to explain as best i can.

Say I have n different numbers,

I wish to find the summation of every possible way of multiplying different numbers together.

For clarification: if I would want:

If i would want:

Basically, I just need a function that gives this result.