Given that S contains n elements and two sets A and B are selected.
Two sets A and B can be selected in 2n ways.
The number of ways of selecting two sets such that their union is S and intersection is nullset is 1 .
Therefore the probability is 2n1.