it occurred to me last night (for the first time)
IDEA
IF divisibility by 9 in base 10 can be determined by adding the digits,
IF divisibility by 11 in base 10 can be determined by adding the even and subtracting the odd digits,
IF divisibility by 9 in base 10 can be determined by adding the digits,
THEN divisibility by B-1 in base B can be determined by adding the digits.
This is not an original idea, turns out it’s well known.
Divisibility by 3 or 9 (from the wiki)
First, take any number (for this example it will be 492) and add together each digit in the number (4 + 9 + 2 = 15). Then take that sum (15) and determine if it is divisible by 3. The original number is divisible by 3 (or 9) if and only if the sum of its digits is divisible by 3 (or 9).
First, take any number (for this example it will be 492) and add together each digit in the number (4 + 9 + 2 = 15). Then take that sum (15) and determine if it is divisible by 3. The original number is divisible by 3 (or 9) if and only if the sum of its digits is divisible by 3 (or 9).
Adding the digits of a number up, and then repeating the process with the result until only one digit remains, will give the remainder of the original number if it were divided by nine (unless that single digit is nine itself, in which case the number is divisible by nine and the remainder is zero).
This can be generalized to any standard positional system, in which the divisor in question then becomes one less than the radix; thus, in base-twelve, the digits will add up to the remainder of the original number if divided by eleven, and numbers are divisible by eleven only if the digit sum is divisible by eleven.
andIF divisibility by 11 in base 10 can be determined by adding the even and subtracting the odd digits,
THEN divisibility by B+1 in base B can be determined by the same process.
This is not an original idea, either.
EXAMPLE 1
For example, divisibility by 7 is very easy using octal numbers.

Convert 5210 to octal: 5210 = 648 (because in base 10, 52 = 6 × [8] + 4 × [1])
For example, divisibility by 7 is very easy using octal numbers.
![]()
![]()

Convert 5210 to octal: 5210 = 648 (because in base 10, 52 = 6 × [8] + 4 × [1])
Add the digits of 648: 68 + 48 = 128
This is the same remainder in each base:
Add the digits again: 18 + 28 = 38, therefore a remainder of 38
5210 = 710 x 710 remainder 310.
648 = 78 x 78 remainder 38.
Yes, 38 = 310
EXAMPLE 2
Divisibility by 9 is also easy using octal numbers. We will next follow the well-known rule for divisibility by 1110.
Divisibility by 9 is also easy using octal numbers. We will next follow the well-known rule for divisibility by 1110.
![]()
![]()
Convert 9510 to octal: 9510 = 1378 (because in base 10, 95 = 1 × [64] + 3 × [8] + 7 × [1])
Add the even digits, and subtract the odd digits, of 1378: 18 – 38 + 78 = 58
This is the same remainder in each base:
9510 = 910 x 1010 remainder 510.
1378 = 118 x 128 remainder 58.
Yes, 58 = 510



