learn.howToCalculate
learn.whatIsHeading
The digit sum is the sum of all individual digits in a number. The digital root is the single digit obtained by repeatedly summing digits. These are used in divisibility checks and casting out nines.
Công thức
Digit sum = sum of all digits; Digital root = 1 + ((n−1) mod 9)
- n
- the number
- d
- digit sum — sum of all digits in n
- r
- digital root — repeatedly sum digits until single digit
Hướng dẫn từng bước
- 1Digit sum: add all digits together
- 2For 1234: 1+2+3+4 = 10
- 3Digital root: repeat until single digit
- 4Digital root of n = 1 + (n−1) mod 9
Ví dụ có lời giải
đầu vào
12345
Kết quả
Digit sum = 1+2+3+4+5 = 15, Digital root = 6
đầu vào
999
Kết quả
Digit sum = 27, Digital root = 9
Câu hỏi thường gặp
What is the divisibility rule for 9?
A number is divisible by 9 if and only if its digit sum is divisible by 9 (or equals 9).
What is "casting out nines"?
An ancient divisibility checking technique using digit sums to detect arithmetic errors.
What is the digital root of a number like 999?
9+9+9 = 27, then 2+7 = 9. The digital root is 9.
Sẵn sàng để tính toán? Dùng thử Máy tính Digit Sum miễn phí
Hãy tự mình thử →