All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars
 perplexus dot info

 Threes and sevens (Posted on 2006-10-25)
You can decide whether a number is divisible by 3 by forming its cross sum, that is the sum of all its decimal digits: It is divisible by three exactly if its cross sum is. Similarly, a three-digit number is divisible by seven if (and only if) the sum of twice its most significant digit plus three times its middle digit plus its least significant digit is divisible by seven.

Can you find a similar scheme for checking divisibility by 33 and 37, for numbers with an arbitrary number of digits?

 No Solution Yet Submitted by vswitchs Rating: 2.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
 re: Generally speaking ... | Comment 6 of 7 |
(In reply to Generally speaking ... by Steve Herman)

Absolutely right. The trick with 33 and 37 is that their remainders modulo 10^k (k=0,1..) are in the set {-1,1,-10,10,-11,11} which allows for particularly "nice" rules.
 Posted by JLo on 2006-10-25 12:24:32

 Search: Search body:
Forums (5)