I'm having problem wrapping my mind around something. Let's assume set A = {1,2}. How many relations are there in the group? I know there's a formula that goes $$2^{n^2}$$ where $n$ is the number of objects in a set. That gives us $$2^4$$ which is 16.
But when I count the relations manually:
{1,1} {2,2} {1,2} {2,1}
That gives me only 4. What am I missing here?
Hint:
$R$ is a relation on set $A$ if and only if $R$ is a subset of $A\times A$.