Toolkit 64

Remainder Rules

Divisibility by 3

The remainder of nn when divided by 33 is equal to the remainder of the sum of the digits of nn when divided by 33.

Divisibility by 9

The remainder of nn when divided by 99 is equal to the remainder of the sum of the digits of nn when divided by 99.

Divisibility by 11

The remainder of nn when divided by 1111 is equal to the remainder of the alternating sum of its digits.

Example:

5329592+35=5(mod11)53295\equiv 9-2+3-5=5\pmod{11}

From right to left, consider the signs ++ and - alternately.

Divisibility by 2, 5, and 10

Only the last digit matters.

Divisibility by 4, 25, and 100

Only the last two digits matter.

Divisibility by 8, 125, and 1000

Only the last three digits matter.