Kuinka laskea Sum of Digits
Mikä on Sum of Digits?
A digit sum calculator adds together all the individual digits of a number. The sum of digits of 12345 is 1+2+3+4+5 = 15. Digit sums are used in divisibility rules (a number is divisible by 9 if its digit sum is divisible by 9), check digit algorithms, and computing digital roots.
Kaava
sum = d1 + d2 + d3 + ... + dn
Vaiheittainen opas
- 1Separate the number into individual digits
- 2Add all digits together
- 3The result is the digit sum
Ratkaistut esimerkit
Syöte
12345
Tulos
15
Used in divisibility rules and digital roots
Yleisiä virheitä vältettäväksi
- ✕Including the decimal point in multi-digit sums
- ✕Forgetting negative signs don't affect digit sums
Oletko valmis laskemaan? Kokeile ilmaista Sum of Digits-laskuria
Kokeile itse →