Skip to main content

如何计算Digit Sum

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.

公式

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

分步指南

  1. 1Digit sum: add all digits together
  2. 2For 1234: 1+2+3+4 = 10
  3. 3Digital root: repeat until single digit
  4. 4Digital root of n = 1 + (n−1) mod 9

例题解析

输入
12345
结果
Digit sum = 1+2+3+4+5 = 15, Digital root = 6
输入
999
结果
Digit sum = 27, Digital root = 9

常见问题

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.

准备好计算了吗?尝试免费的 Digit Sum 计算器

自己尝试一下 →

设置

隐私条款关于© 2026 PrimeCalcPro