Say I have a set A with 5 elements in it. I want to make a relation of A onto itself. I know there are 5^2 possible pairs, so there are 2^(5^2) possible relations.
Now lets say A = {a,b,c,d,e}
How would I find the number of relations that contain (a,b), (c,d), and (d,e)?
I'm pretty sure that (2^25 - 2^22) would give me the number of relations that contain at least one of (a,b), (c,d), (d,e), wouldn't it? And then from there, how could I get the number of relations that contains all 3 of the pairs?
Thanks.