My maths background is not so strong, please go slowly.
Suppose I have 3 elements, which are A, B and C.
I want to find (1) the number of operations to perform to find (2) all possible clusters that can be formed out of the 3 elements.
For this example, after some attempts on a piece of paper, I get the following:
(ABC) -> 1 operation, 1 cluster
(A) (B) (C) -> 1 operation, 3 clusters
(AB) (C) -> 1 operation, 2 clusters
(AC) (B) -> 1 operation, 2 clusters
(BC) (A) -> 1 operation, 2 clusters
Therefore, I get 5 operations and 10 clusters.
Similarly, suppose I now have 4 elements, which are A, B, C and D.
Again, I want to find (1) the number of operations to perform to find (2) all possible clusters that can be formed out of the 3 elements.
For this example, after some attempts on a piece of paper again, I get the following:
(ABCD) -> 1 operation, 1 cluster
(A) (B) (C) (D) -> 1 operation, 4 clusters
(AB) (CD) -> 1 operation, 2 clusters
(AC) (BD) -> 1 operation, 2 clusters
(AD) (BC) -> 1 operation, 2 clusters
(ABC) (D) -> 1 operation, 2 clusters
(ABD) (C) -> 1 operation, 2 clusters
(ADC) (B) -> 1 operation, 2 clusters
(BCD) (A) -> 1 operation, 2 clusters
(AB) (C) (D) -> 1 operation, 3 clusters
(AC) (B) (D) -> 1 operation, 3 clusters
(AD) (B) (C) -> 1 operation, 3 clusters
(BC) (A) (D) -> 1 operation, 3 clusters
(BD) (A) (C) -> 1 operation, 3 clusters
(CD) (A) (B) -> 1 operation, 3 clusters
Therefore, I get 15 operations and 37 clusters.
(Note: I hope I did not miss any combination, if I did, please correct it.)
I will be grateful to anyone who can describe to me the general form to compute the number of operations and clusters for any number of elements. Thanks.