Additive Persistence Calculator
Count how many times you must add the digits of a number before reaching a single digit.
What it does
Additive persistence counts how many times the digits of a number must be added together before the result is a single digit. For 19 the sums are 10 and then 1, so the persistence is two. The number 19 is the smallest with additive persistence two.
The final single digit is the digital root, which is closely related to the remainder modulo nine. Because the digit sum preserves a number modulo nine, the digital root can often be found without iterating at all.
The iteration always terminates quickly because adding digits of a multi digit number gives a much smaller number. Even a very long number needs only a few steps to collapse below ten.
This page performs the additions with exact integers and shows each sum in the chain. It reports both the persistence count and the final digital root.
The input limit is one trillion, and a step guard makes the loop safe for every allowed value.
How to use
- Enter a whole number n from 0 to 1,000,000,000,000.
- Read the persistence count in the main result box.
- Follow the chain of digit sums beside it.
- The final single digit is the digital root.
- The default n = 19 reproduces the worked example.
- Try n = 199 to see a chain of length three.
Formula
- n
- The starting integer.
- digit sum
- The addition applied at each step.
- P(n)
- The additive persistence of n.
A number already below ten has persistence zero. The final value is the digital root, equal to one plus the remainder of n minus one modulo nine, with zero when n is a positive multiple of nine. The chain is shown explicitly so the count can be checked.
Worked example
Example: n = 19
The page opens with n = 19.
- Add the digits: 1 + 9 = 10.
- Add again: 1 + 0 = 1.
- The value 1 is a single digit, so the process stops.
- The tool reports persistence 2, chain 10 -> 1, and digital root 1.
- For 199 the chain is 19 -> 10 -> 1 with persistence 3.
- Check the digital root directly: 19 leaves remainder 1 modulo 9.
Reference table
| n | Chain | Persistence | Digital root |
|---|---|---|---|
| 7 | none | 0 | 7 |
| 10 | 1 | 1 | 1 |
| 19 | 10 -> 1 | 2 | 1 |
| 99 | 18 -> 9 | 2 | 9 |
| 199 | 19 -> 10 -> 1 | 3 | 1 |
Limits
- Inputs above one trillion are rejected to keep the printed value short.
- Only base ten digit sums are used.
- A step guard bounds the iteration.
- The tool shows the chain, not the digit lists at each step.
Common mistakes
- Multiplying the digits instead of adding them.
- Counting the starting number as one of the steps.
- Confusing the digital root with the first digit sum.
- Assuming the persistence grows with the number of digits in a simple way.
- Forgetting that eleven is not the smallest with persistence two.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the persistence of 19?
2, with chain 10 -> 1.
What is the persistence of 99?
2, with chain 18 -> 9.
What is the digital root of 199?
1, after the chain 19 -> 10 -> 1.
Questions
What is the digital root?
The single digit reached by repeatedly summing digits.
How does this relate to multiples of nine?
A positive multiple of nine has digital root nine.
How fast does the chain shrink?
Very quickly, even for numbers with many digits.
What is the smallest with persistence two?
Nineteen.
Are results exact?
Yes. Integer addition is used.
What input range is accepted?
Whole numbers from 0 through 1,000,000,000,000.