Cartesian product · Exercise-CARTESIAN-PRODUCT-006
Step-by-step solved exercise: Relations and functions
If |A| = 3 and |B| = 2, how many pairs does A × B have?
Cartesian product · Exercise-CARTESIAN-PRODUCT-006
If |A| = 3 and |B| = 2, how many pairs does A × B have?
Each pair \(\displaystyle (a,b)\) has \(\displaystyle a\) in \(\displaystyle A\) and \(\displaystyle b\) in \(\displaystyle B\).
There are \(\displaystyle |A| = 3\) choices for the first coordinate.
For each of them there are \(\displaystyle |B| = 2\) choices for the second coordinate.
The choices multiply: \(\displaystyle |A \times B| = |A| \cdot |B|\).
Therefore, \(\displaystyle |A \times B| = 6\).
6