23 Oct '07 16:48>
Originally posted by rubberjaw30Swap 'three' for 'nine' and it's still true.
or, you can just say that if the sum of digits is divisible by three, then the number is divisible by three...
Originally posted by TheMaster37The algorithms for testing divisibility by 7 I've come across are all horribly complicated, do you know one that's relatively simple? From the top of my head, these are the divisibility tests I know up to 25:
[...] There is even one for multiples of 7, but that's a bit trickier.