Compute the digital root (repeated digit sum) of any number. Shows iteration steps, divisibility-by-9 connection, multiplicative digital root, additive persistence, and digit frequency analysis.
The digital root of a number is the single-digit value obtained by repeatedly summing its digits until only one digit remains. For example, the digital root of 9875 is 2, because 9+8+7+5 = 29, then 2+9 = 11, then 1+1 = 2. A beautiful shortcut exists: the digital root equals the number modulo 9 (with 9 replacing 0 for nonzero numbers). This connection to divisibility by 9 is the basis for the ancient technique of "casting out nines" to check arithmetic. The additive persistence counts how many summing steps are needed to reach the digital root. This calculator also computes the multiplicative digital root (repeatedly multiply digits) and multiplicative persistence. A step-by-step iteration table traces every intermediate value, digit frequency analysis shows the distribution of digits in your number, and comparison presets let you explore numbers with unusually high persistence like 77 (persistence 4) or the smallest number with persistence 11 (277777788888899).
While the digital root formula (1 + (n−1) mod 9) gives the answer in one step, this calculator shows the full iterative process and counts persistence — the number of steps to reach a single digit, which is a non-trivial number theory quantity with open research questions. It also computes the multiplicative digital root (repeatedly multiply digits), analyzes digit frequency, and tests divisibility by 3 and 9 — making it a comprehensive number theory exploration tool.
Digital root: dr(n) = 1 + ((n − 1) mod 9) for n > 0, dr(0) = 0 Additive persistence: number of digit-sum iterations to reach a single digit Multiplicative digital root: repeatedly multiply digits until single digit
Result: Digital root = 2, Persistence = 3
9875 → 9+8+7+5 = 29 → 2+9 = 11 → 1+1 = 2. Three steps, digital root is 2. Also: 9875 mod 9 = 2.
The digital root is the foundation of an ancient error-checking technique called "casting out nines." To verify a calculation like 123 × 456 = 56088, compute the digital root of each factor: dr(123) = 6, dr(456) = 6, and dr(6 × 6) = dr(36) = 9. Then check: dr(56088) = 9. Since both sides give 9, the answer is likely correct. If they disagree, there is definitely an error. This works because the digital root is the remainder modulo 9, and modular arithmetic distributes over addition and multiplication.
Additive persistence counts how many digit-sum iterations are needed to reach a single digit. Most numbers below 10^20 have persistence ≤ 3. The smallest numbers with persistence 1, 2, 3, 4 are 10, 19, 199, and 19999999999999999999999. Finding numbers with additive persistence > 4 in base 10 is a famously open problem. Multiplicative persistence (replacing sums with products) is also studied: 277777788888899 has multiplicative persistence 11, and it is conjectured that no number has persistence > 11 in base 10.
The digital root equals the number modulo 9 (with 0 replaced by 9 for positive numbers). This is because 10 ≡ 1 (mod 9), so each digit's place value is congruent to 1, and the number mod 9 equals the digit sum mod 9. This self-similarity under digit summation is why the pattern is preserved across iterations. The digital root function partitions positive integers into nine residue classes, making it useful in number theory proofs and recreational mathematics puzzles.
The digital root is the single-digit number obtained by repeatedly summing the digits of a number until only one digit remains. Use this as a practical reminder before finalizing the result.
The digital root equals the remainder when dividing by 9, except when the remainder is 0 and the number is nonzero (then the digital root is 9). A number is divisible by 9 if and only if its digital root is 9.
Additive persistence is the number of times you must sum the digits before reaching a single-digit result. For 9875, persistence is 3 (three summing steps).
Instead of summing digits repeatedly, you multiply them. For 39: 3×9=27, 2×7=14, 1×4=4. The multiplicative digital root is 4.
The smallest number with additive persistence 4 is 19999999999999999999999. Finding numbers with very high persistence is an open problem in recreational mathematics.
An ancient arithmetic checking technique: compute digital roots of both sides of an equation. If the digital roots disagree, there is definitely an error. It works because digital root is the remainder mod 9.