You need to refer to the sections on Congruence and Arithmetic modulo n in Chapter 3
for this question. Consider numbers such as 19326 or 96123. One way to check whether
they are divisible by 3 is to simply try to divide them directly. However, there is a test for
divisibility by 3. Add up the digits, e.g. 1 + 9 + 3 + 2 + 6 = 21. Since the sum of the digits
21 is divisibly by 3, then both numbers are divisible by 3, since the sums of their digits
are divisible by 3. A number such as 112 is not divisible by 3 since 1 + 1 + 2 = 4 is not
divisible by 3. The goal of this question is to prove formally that this test for divisibility
by 3 works for the general case.
(a) Show that 10 ≡3 1 and 10k ≡3 1 for any positive integer k.
(b) Show that A × 10k ≡3 A for any positive integers k and A.
(c) Now consider a number where the digits are [ak, ak−1, · · · , a1, a0]. This number N is
equivalent to
N = ak × 10k + ak−1 × 10k−1 + · · · + a2 × 102 + a1 × 10 + a0,
where ak is an integer from 1 to 9, and the rest of the ai are integers from 0 to 9.
Show that N ≡3 ak + ak−1 + · · · + a2 + a1 + a0, and then show that N is divisible by
3 if and only if ak + ak−1 + · · · + a2 + a1 + a0 is divisible by 3.
(d) Suggest a test for divisibility by 6.