First part answer in the above comments.
Answer to 2nd part:
Assuming, $\large\color{maroon}{\text{S}}$ = $\left \{ 1,2,3 \right \}$ , then following is the Relation in matrix representation :
$$\begin{align*} \text{Z} = \left \{ \left ( R,T \right ) \;\; | \; \; \text{R,T} \subseteq \; \text{S ,} R \cap T = \phi \right \} \end{align*}$$
example :
- first green circle means $\left \{ 2 \right \}$ and $\left \{ 3 \right \}$ is one pair $\left ( \left \{ 2 \right \},\left \{3 \right \} \right )$ in the relation $Z$. And because, we are considering ordered pairs ,then $\left ( \left \{ 3 \right \},\left \{2 \right \} \right )$ will also be a pair in relation $Z$.
- Second green circle means $\left \{ 2,3 \right \}$ and $\left \{ 1 \right \}$ is one pair $\left ( \left \{ 2,3 \right \},\left \{1 \right \} \right )$ in the relation $Z$. And we are considering ordered pairs then $\left ( \left \{ 1 \right \},\left \{2,3 \right \} \right )$ will also be a pair in relation $Z$.
Now,
No of such ordered pairs in relation $Z$ = No of $1$'s in the matrix representation.
Counting procedure:
- one example: 2nd row of matrix, which is related to set $\left \{ 1 \right \}$.
- No of subsets that $\left \{ 1 \right \}$ will be related to are the subsets of $\left \{ 2,3 \right \}$.
- How many subsets of $\left \{ 2,3 \right \}$ ? . = $2^{3-1}$ .(because $1$ is missing here).
- Similarly for subsets $\left \{ 2 \right \}$ and $\left \{ 3 \right \}$ ,, i.e. 3rd and 4th row of the matrix.
- So total $1$'s for these $\binom{3}{1} = 3$ , one element subsets , is = $\binom{3}{1}*2^{3-1}$. (Or, total no of 1's in 2nd,3rd,4th rows of the matrix)
Doing in the same way, will end up arriving in the follwoing series,
$$\begin{align*} &=\binom{3}{0}*2^{3-0} + \binom{3}{1}*2^{3-1} + \binom{3}{2}*2^{3-2} + \binom{3}{3}*2^{3-3} \\ &=\binom{3}{0}*1^0*2^{3-0} + \binom{3}{1}*1^1*2^{3-1} + \binom{3}{2}*1^2*2^{3-2} + \binom{3}{3}*1^3*2^{3-3} \\ &=\sum_{r=0}^{3}\binom{3}{r}1^{r}.2^{3-r} \\ &= (1+2)^{3} \\ &=3^3 \end{align*}$$
If we assume $\large\color{maroon}{\text{S}}$ = $\left \{ 1,2,3,4,5,6....n \right \}$
- Then this above value will be $\large\color{red}{3^n}$
NOTE:
- This relation Z is symmetric with only one self loop at $\phi$..
- Whenever we need only unordered pairs $(R,T) \;\; \text{see qs statement})$ then, we will only count off-diagonal $1$'s and one $(\phi,\phi)$ pair. So, how many unordered ?
$$\begin{align*} \frac{3^n -1}{2} +1 \end{align*}$$