Let a and b be integers. The statement that a divides b means there exists an integer k such that b = a × k. In standard integer number theory, the divisor a is generally required to be nonzero when the relationship is connected to ordinary division and remainder calculations. For a nonzero divisor, this condition is equivalent to saying that the dividend produces a zero remainder.
Unlike approximate numerical closeness, divisibility is exact. The integer 100 is divisible by 25 because 100 = 25 × 4. The integer 101 is not divisible by 25 because no integer multiplier produces 101. Signs do not change whether an integer multiple exists.
If 24 is divisible by 8, then -24 is divisible by 8, 24 is divisible by -8, and -24 is divisible by -8. The associated quotient signs differ, but the divisibility property is preserved. Zero requires careful treatment.
For any nonzero integer a, the statement a | 0 is true because 0 = a × 0. However, using zero as a divisor in a quotient or modulo operation is undefined. Some abstract mathematical conventions discuss divisibility involving zero separately, but such conventions should not be confused with an operational division-by-zero calculation.
The number 1 divides every integer, as does -1. Prime numbers have especially simple positive-divisor structures, while composite numbers have factorizations that can support shorter divisibility procedures. Decimal divisibility rules follow from modular relationships among powers of ten.
For example, the test for 9 works because 10, 100, 1000, and all higher powers of 10 each leave remainder 1 upon division by 9. The test for 8 works because 1000 and every higher decimal place value are multiples of 8. Combining tests requires attention to the prime factors represented.
If an integer is divisible by both a and b, it is divisible by their least common multiple. Their product is guaranteed only when a and b are relatively prime. This explains why divisibility by both 2 and 6 does not imply divisibility by 12. The distinction between a divisibility shortcut and a general remainder computation is also important.
Not every possible divisor has a convenient short digit-based test. Exact integer division provides a general method for any nonzero integer divisor. Because the supplied engine information is unverified, this discussion addresses mathematical definitions and correct procedures without asserting implementation-specific behavior, accepted input syntax, or remainder-sign conventions.