Hello,

Yes

Huh ?Is it okay to generalize, and say that the last digits of a number where and is the remainder of in ? And the last digits are in one of the residue classes?

The last n digits are the remainder in the Euclidian division of by

What I don't understand is why you bother yourself talking about residue classes... ?