To choose or not to choose

To choose, or not to choose. That is the question.

And that applies specifically while trying to comprehend why the number of reflexive relations that can be made on the set A is 2n2n and not n.

I am going to try explaining why that seems to be the case.

But before we get dirty with it, let us see what a reflexive relation looks like:

Considering a set B={1,2,3}.

Here, if you make a relation R:B×B, you’ll get something like this:

  • R1={(1,1),(2,2),(3,3)}
  • R2={(1,3),(1,2)(1,1)}
  • R3={(1,1),(2,2),(3,3),(1,2),(3,2),}

where RnR.

Note here that R1 and R3 are, by definition, reflexive. But R2 is not. Again, if you see clearly, a reflexive relation may OR may not contain pairs in the form of (a,a). This is important to understand.

Now we get our hands dirty.

Let me re-iterate what we will be doing.

Let us consider the set A with n number of elements. We form a relation R:A×A. And now, we want to find the number of reflexive relations in R.

If you make a square matrix of order n×n (the same as the number of elements in A) and try to see where the reflexive relations lie:

a1a2a3a4ana1a1Ra1.....a2.a2Ra2....a3..a3Ra3...a4...a4Ra4.......an.....anRan

You will see that the diagonal elements are reflexive. And there are n diagonal elements.

So, bro, shouldn’t there be n reflexive relations in R?

No. Why? We’re getting there, son.

There are n elements on each side. Thus, the total number of relations become n2

a1a2a3a4ana1a1Ra1.....a2.a2Ra2....a3..a3Ra3...a4...a4Ra4.......an.....anRan}n elementsn elements

That makes n2n non-diagonal elements.

Now, remember that we said that “a reflexive relation may or may not have pairs in the form of (a,a)”?

Well, you have n2n elements waiting to be chosen. Or not.

Either way, you’ll already have chosen the n diagonal elements (since there is no other way).

If we had to say “To choose, or not to choose the n2n elements?” in math:

We say:

2n2n

That’s the number of reflexive relations. Or to be precise, that’s the number of the permutations.

Because it was a binary choice (meaning we had only 2 choices), we multiplied 2 with itself n2n times.

I think this is pretty rad.