(Last digits)The last digit of $N$ in base $b$ is the remainder of $N$ divided by $b$, and the number formed by the last $j$ digits is the remainder of $N$ divided by $b^j$. In particular, $N$ ends in the digit $d$ (with $d<b$) if and only if $b$ divides $N-d$.
← Back to Exercise 829