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\)?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. A relation from \(\displaystyle A\) to \(\displaystyle A\) is a subset of \(\displaystyle A\times A\).

    \[\displaystyle R\subseteq A\times A\]
  2. Count the pairs in \(\displaystyle A\times A\).

    \[\displaystyle |A\times A|=3\cdot 3=9\]
  3. Each of the 9 pairs may or may not be in \(\displaystyle R\), so there are \(\displaystyle 2\) to the power \(\displaystyle 9\) subsets.

    \[\displaystyle 2^{9}\]
  4. Therefore, there are 512 distinct relations.

    \[\displaystyle 2^{9}=512\]

Answer

512

🎯 Build my path to this exercise