Divisibility July 2026

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,

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).

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.
and
IF 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.

    \[B = 8\]

    \[B-1 = 7\]

Let’s pick a number in base 10: Is 5210 divisible by 710? No, 52 ÷ 7 = 7 with a remainder of 3.

Convert 5210 to octal: 5210 = 648 (because in base 10, 52 = 6 × [8] + 4 × [1])

Add the digits of 648: 68 + 48 = 128

Add the digits again: 18 + 28 = 38, therefore a remainder of 38

This is the same remainder in each base:

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.

    \[B = 8\]

    \[B+1 = 9\]

Let’s pick a number in base 10: Is 9510 divisible by 910? No, 95 ÷ 9 = 10 with a remainder of 5.

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


Leave a Reply

Your email address will not be published. Required fields are marked *