Solution

ID: past-exam-of-the-year-1-of-the-computer-science-course-of-the-university-of-oxford/2015/discrete-mathematics-continuous-mathematics-and-probability-resit/3/d/solution

The decimal expansion is . Since , repeated use of the multiplication rule in part (b)(ii) gives for every . Repeated use of the addition rule in part (b)(i) now gives
If , the left side is congruent to zero, whence
This is the decimal digit-sum divisibility test for three, derived directly from modular arithmetic.

New to topics? Read the docs here!