Mathematical Reasoning
The divisibility rules for and are based on modular arithmetic. Since and , each digit's position in the number does not affect its divisibility by or .
This elegant property underlies the simplicity of the rules.
Why Does This Work? Step-by-Step Explanation
Suppose you have a number written in base with digits:
To check divisibility by , consider how the powers of behave in modulo arithmetic:
- And so on for higher powers.
So,
The same logic holds for because .
Practical Example
Take .
- Compute the digit sum:
- Since is divisible by both and , is divisible by both and .
Visualizing with Modular Arithmetic
If two numbers are congruent modulo , that means their difference is a multiple of . For divisibility by or , the sum of the digits captures all the relevant information about divisibility.
- If , then and leave the same remainder when divided by .
- Therefore, if is divisible by , so is .
Divisibility by — Combining Rules
Since , a number must be divisible by both and to be divisible by .
- Divisibility by : The last digit is even.
- Divisibility by : The sum of the digits is divisible by .
Why Not All Numbers?
Note that these rules are special to and because modulo these numbers. For other divisors (like or ), similar digit-based rules do not generally apply or are more complex, because modulo those numbers.
Further Intuition
The decimal system (base ) is what makes these digit-sum rules possible. In other number bases, similar but different rules can be developed based on the relationship between the base and the divisor.
- In base :
- A similar rule holds for divisors of :
- This means the sum of the digits of a number in base determines divisibility by .
- For divisors of , we have:
- This leads to an alternating sum rule for divisibility by (e.g., in base 10, ).
Understanding these patterns connects basic arithmetic to deeper structures in mathematics, such as modular arithmetic, number bases, and the remarkable consistency found throughout the number system.