Chapter 16
Casting Out in Threes
Here is a quick test for divisibility by , resting on the fact that . Use it to decide whether is divisible by .
Solution
Because is a multiple of , the number leaves remainder on division by . So a number leaves the same remainder as the sum of its digits taken in three-digit groups from the right. For the groups are and , and a multiple of (and of ), so is divisible by both. Indeed .
The companion fact gives a matching rule: since leaves remainder on division by , a number leaves the same remainder as the alternating sum of its three-digit groups, on division by , and all at once.