Digit sum
In
Definition
Let be a natural number. We define the digit sum for base , to be the following:
where is one less than the number of digits in the number in base , and
is the value of each digit of the number.
For example, in
For any two bases and for sufficiently large natural numbers
The sum of the base 10 digits of the integers 0, 1, 2, ... is given by OEIS: A007953 in the On-Line Encyclopedia of Integer Sequences. Borwein & Borwein (1992) use the generating function of this integer sequence (and of the analogous sequence for binary digit sums) to derive several rapidly converging series with rational and transcendental sums.[2]
Extension to negative integers
The digit sum can be extended to the negative integers by use of a signed-digit representation to represent each integer.
Properties
The amount of n-digit numbers with digit sum q can be calculated using:
Applications
The concept of a decimal digit sum is closely related to, but not the same as, the
Digit sums are also a common ingredient in
The digit sum of the
Harshad numbers are defined in terms of divisibility by their digit sums, and Smith numbers are defined by the equality of their digit sums with the digit sums of their prime factorizations.
See also
- Arithmetic dynamics
- Casting out nines
- Checksum
- Digital root
- Hamming weight
- Harshad number
- Perfect digital invariant
- Sideways sum
- Smith number
- Sum-product number
References
- JSTOR 2304217.
- JSTOR 2324993, archived from the original(PDF) on 2016-05-09, retrieved 2009-03-02.
- JSTOR 2002859.
- ^ Edgeworth, F. Y. (1888), "The Mathematical Theory of Banking" (PDF), Journal of the Royal Statistical Society, 51 (1): 113–127, archived from the original (PDF) on 2006-09-13.
External links