A nonnegative integer's decimal expansion uses digits . Testing divisibility reduces this polynomial in ten modulo the divisor: for example makes divisibility by eleven equivalent to vanishing of the alternating digit sum.
New to topics? Read the docs here!