Ali K. answered 06/06/21
To find the equivalence classes, we can start from an arbitrary element of our set A, let's say 2, and find all other elements m such that 2 R m. This way we find the equivalence class of 2, denoted by [2]. Then we can continue with remaining elements until we find all classes.
Now to find the equivalence class of 2, we have [2] = {m in A | m^2 - 2^2 is divisible by 5}
We can try all elements of A and realize that the only values of m that satisfies this are m=-3 and m=-2 because 9-4=5 and 4-4=0.
Therefore, the equivalence class of 2 is {2,-3,-2}
Now we can remove {-3,-2,2} from A and continue with the remaining elements. Here is the set of equivalence classes that we get at the end:
{-3,-2,2} , {-6,-4,-1,1} , {-5,0}
Alternative method: another way to find the equivalence classes is to realize that 5 | (m^2-n^2) if and only if m^2 and n^2 have the same remainder when divided by 5. Hence, we could find the remainder of m^2 for all elements of A and that elements with the same result would end up in the same equivalence class:
m : -6 , -5 , -4 , -3 , -2 , -1 , 0 , 1 , 2
m^2%5 : 1 , 0 , 1 , 4 , 4 , 1 , 0 , 1 , 4
Hence {-6,-4,-1,1} are in the same class, {-5,0} are in the other class, and {-3,-2,2} form the last class.