You may know that a number is divisible by 9 when its digit sum is. With modular arithmetic this stops being a trick and becomes a two-line proof, and the same idea gives tests for 3, 11, 4, 8 and even 7 and 13.
Por qué funciona
| Modulus | Because | Test |
|---|---|---|
| 3, 9 | $10 \equiv 1$ | digit sum |
| 11 | $10 \equiv -1$ | alternating sum from the right |
| 2, 5 | $10 \equiv 0$ | last digit |
| 4 | $100 \equiv 0$ | last two digits |
| 8 | $1000 \equiv 0$ | last three digits |
| 7, 11, 13 | $1000 \equiv -1$ (as $1001 = 7 \cdot 11 \cdot 13$) | alternating sum of 3-digit blocks |
Ejemplo resuelto: Remainder mod 9
- Digit sum: $8 + 4 + 3 + 7 + 2 + 6 + 5 = 35$.
- $35 \equiv 3 + 5 = 8 \pmod{9}$.
Respuesta: $8$.
Ejemplo resuelto: Divisible by 11?
- From the ones digit: $2 - 8 + 0 - 8 + 1 - 9 = -22$.
- $-22 \equiv 0 \pmod{11}$, so yes. Indeed $918{,}082 = 11 \cdot 83{,}462$.
Respuesta: Yes.
Ejemplo resuelto: A missing digit
- From the right: $2 - 1 + 3 - 4 + \square - 7 = \square - 7$.
- We need $\square - 7 \equiv 0 \pmod{11}$, and the only digit that works is $\square = 7$.
- Check: $774{,}312 = 11 \cdot 70{,}392$.
Respuesta: $7$.
Ejemplo resuelto: Blocks of three for 7
- Since $1001 = 7 \cdot 143$, we have $1000 \equiv -1 \pmod{7}$. So group the digits in threes from the right and alternate signs: $789 - 456 + 2 = 335$.
- $335 = 7 \cdot 47 + 6$, so the remainder is $6$. Check: $2{,}456{,}789 = 7 \cdot 350{,}969 + 6$.
Respuesta: $6$.
Error común
Idea clave