We shall use the fact that the number of all subsets of n-element set is 2n.
(a) Let S={a,b,c,d,e}. By defenition, a biniry relation ρ on a set S is a subset of a Cartesian square S×S. Since ∣S×S∣=5⋅5=25, there are 225=33,554,432 binary relations on the set S={a,b,c,d,e}.
(b) Let us find the number of binary relations ρ on the set S={a,b,c,d,e} that contain (a,a) and (b,b). Since elements of a relation ρ∖{(a,a),(b,b)} can be arbitrary elements of S×S∖{(a,a),(b,b)}, the number of binary relation on S that contain (a,a) and (b,b) is equal to the number of binary relations R⊂S×S∖{(a,a),(b,b)}. Since ∣S×S∖{(a,a),(b,b)}∣=25−2=23 , there are 223=8,388,608 binary relations on the set S={a,b,c,d,e} that contain (a,a) and (b,b).
Comments