I would like you to ask about counting set for $n = 3$. So, this should be $2^9=512$, am I right? In my set, there are:
- reflexive relation = $2^{n^2-n}=64$
- symmetric relation = $2^{(n^2+n)/2}=64$
- transitive relation = $171$
- antisymmetric relation = $2^n\cdot3^{(n^2-n)/2}=216$
Finally, when I add all this relations, I have $64+64+171+216=515$. So, why is the different? I would be grateful for help.
Your question has nothing to do with special properties of relations such as reflexive, symmetric, and so on. Instead, your question is about the general concept of a binary relation.
A binary relation on a set $X$ is, by definition, a subset of $X \times X$. To put it another way, a binary relation on $X$ is an element of the power set $\mathcal P(X \times X)$.
If a set $X$ has $m$ elements then the set $Y = X \times X$ had $n=m^2$ elements.
And if a set $Y$ has $n$ elements then its power set $\mathcal P(Y)$ has $2^n$ elements.
So, the number of binary relations on a set with $m$ elements is equal to $2^{m^2}$.
In your case where $m=4$ you get $$2^{4^2}=2^{16}=65536 $$