Cardinality of a nested set

124 Views Asked by At

What is the cardinality of {a,{b,{c,d,e},{f,{g}}}}?

I think it's 2 because the set length of the broadest {} is 2, but I am not sure if the set being nested will affect the cardinality.

1

There are 1 best solutions below

0
On

The set has two elements: $a$ and $\{b,\{c,d,e\},\{f\{g\}\}\}$. Therefore its cardinality is 2.

The type of elements a set contains does not affects the set's cardinality. What matters is just the number of elements it contains.