5. a) Recall the quotient - remainder theorem which states that given any
integer n and positive integer d, there exist unique integers q and r such that
n = d · q + r where 0r <
d. Now let d = 5 and consider the possible values for r.
The quotient - remainder theorem guarantees that every integer x can be
written in the form x = 5 · q + r where 0r < 4.
The set A0 includes all the integers for which r = 0.
The set A1 includes all the integers for which r = 1.
The set A2 includes all the integers for which r = 2.
The set A3 includes all the integers for which r = 3.
The set A4 includes all the integers for which r = 4.
The sets A0, A1, A2, A3 and A4 are mutually disjoint sets.
Thus every integer occurs in precisely one of the sets A0, A1, A2, A3 and A4, and hence these sets partition the set of integers.
b) To find the relation induced by this partition, compare the subsets A0, A1, A2, A3 and A4 to the equivalence classes you found in the previous question.
The relation s induced by
this partition is defined as follows: for any integers m and n, m s n 5 | (m -
n).