For then, the outcome of an addition or multiplication is
independent of the chosen representatives.
Well, x = x' mod n (respectively, y = y' mod n)
means that there exists an integer a (respectively, b)
such that x - x' = na (respectively, y - y' =
nb). This implies
Hence x + y = x' + y' mod n.
Similarly we find
Hence xy = x'y' mod n.
Z/nZ
then its opposite -a is the unique element b such that
a + b = 0.
To prove these properties, one computes left-hand and right-hand sides in each case using the definitions. These are easy checks.