How to calculate the number of possible pair combinations of a set, with no repetitions, which include all members?
For example, in a group having {a, b, c}
, the possible pairs* are: {ab, ac, bc}
, and the possible pair* combinations* are:
{ab, bc, ac}; (OK: includes a, b, c)
{ab, bc}; (OK: includes a, b, c)
{ab, ac}; (OK: includes a, b, c)
{bc, ac}; (OK: includes a, b, c)
{ab} (NO: misses c)
{bc} (NO: misses a)
{ac} (NO: misses b)
* Non-repetitive
So, the number of (c)ombinations I'm searching for a set of three elements is: $c=4$ (the first four in the list).
The total number of pair (g)roups is $g=\frac{n(n-1)}{2}$, so, for $n=3$ elements {a, b, c}
, there are $g=3$: {ab, ac, bc}
. But I still can't see how to calculate:
a) the number of possible pair interactions without repetitions (all in the list above: $a=7$) (perhaps $a=2^g-1=7$?),
and
b) the number of pair groups including ALL elements in the original set, $c = a - [all misses]$ in my example.
Just tried listing the possibilities for a group of four members, {w, x, y, z}
and it is not evident: {wx, xy, yz}
includes all, but {wx, xy, wy}
misses z
, don't see how to filter those.
Any tips are welcome, thanks.