How can I show that this is an equivalence relation ?
$$R=\lbrace (a,b): 5\mid(a^2-b^2) \rbrace$$
How can I show that this is an equivalence relation ?
$$R=\lbrace (a,b): 5\mid(a^2-b^2) \rbrace$$
On
This is often a source of confusion among beginners, so I'll try to explain where the problem is.
Everybody knows intuitively what a relation among elements of a set is; examples from the real world are “being a parent of”, “being siblings”, “being taller” and so on.
However, defining what a relation is becomes circular, so in mathematics a more pragmatic approach is followed:
a relation is a set consisting of ordered pairs
If $R$ is a set of ordered pairs, or a relation, we say that $R$ is a relation on the set $A$ if, for all $(x,y)\in R$, we have $x\in A$ and $y\in A$.
For instance, the empty relation is a relation on every set. If $A$ is any set, the relation $\{(x,x):x\in A\}$ is a relation on $A$, usually called the identity on $A$.
A relation $R$ on a set $A$ is said
The three properties together are shortened into saying that $R$ is an equivalence relation on $A$.
Where does the confusion start from? An alternative notation for $(a,b)\in R$ is $a\mathrel{R}b$. You should remember that you need to test two elements, when talking about an instance of the relation.
Your relation is probably defined on the integers. So you have to answer the following questions:
An equivalence relation needs to be reflexive, symmetric and transitive.
So in this case, is it true that:
?