Binary relation · Exercise-BINARY-RELATION-006
Step-by-step solved exercise: Relations and functions
Let \(\displaystyle A=\{1,2,3\}\). How many distinct relations are there from \(\displaystyle A\) to \(\displaystyle A\)?
Binary relation · Exercise-BINARY-RELATION-006
Let \(\displaystyle A=\{1,2,3\}\). How many distinct relations are there from \(\displaystyle A\) to \(\displaystyle A\)?
A relation from \(\displaystyle A\) to \(\displaystyle A\) is a subset of \(\displaystyle A\times A\).
Count the pairs in \(\displaystyle A\times A\).
Each of the 9 pairs may or may not be in \(\displaystyle R\), so there are \(\displaystyle 2\) to the power \(\displaystyle 9\) subsets.
Therefore, there are 512 distinct relations.
512