Cardinality of a Set

Rarely Tested

Cardinality of a Set

## Definition / Concept

The cardinality of a finite set is the number of distinct elements present in it.

## Formula

$$n(A)=\text{Number of distinct elements in }A$$

For two finite sets:

$$n(A\cup B)=n(A)+n(B)-n(A\cap B)$$

For three finite sets:

$$n(A\cup B\cup C)=n(A)+n(B)+n(C)-n(A\cap B)-n(B\cap C)-n(C\cap A)+n(A\cap B\cap C)$$

## Terminologies

- Cardinality → Number of elements in a set.

- Disjoint sets → Sets having no common element.

## Conditions / Special Cases

If:

$$A\cap B=\varnothing$$

then:

$$n(A\cup B)=n(A)+n(B)$$

If $A$, $B$ and $C$ are pairwise disjoint:

$$n(A\cup B\cup C)=n(A)+n(B)+n(C)$$

## Usage

- Used in counting problems involving overlapping or disjoint sets.

Question 1

Let $$A=\{1,2,3,4,5,6\} and B = \{9,10,11,12\}$$ The number of ONTO function from A to B is:

Question 2

Find the total number of surjective (onto) functions $$f: A \to B$$ where the domain is given by the set $$A = \{1, 2, 3, 4, 5, 6\}$$ and the codomain is given by the set $$B = \{1, 2, 3, 4\}$$, subject to the additional constraint that the function value satisfies $$f(1) \neq f(2)$$.

Go back to topics

Join CAT 2026 course by 5-Time CAT 100%iler

Start your IIM journey with the right preparation and crack CAT 2026.