Digital sum in base b

Digital sum in base b

The digital sum in base b of a set of natural numbers is calculated as follows: express each of the numbers in base b, then take the sum of corresponding digits and discard all carry overs. That is, the digital sum is the same as the normal sum except that no carrying is used.

For example in decimal (base 10) arithmetic, the digital sum of 123 and 789 is 802:

  • 3 + 9 = 12, discard the 10 leaving 2.
  • 2 + 8 = 10, discard the 10 leaving 0.
  • 1 + 7 = 8, there is no carry to discard.
123
789
---
802

More usually the digital sum is calculated in binary (base 2) where the result only depends upon whether there are an even or odd number of 1s in each column. This is the same function as parity or multiple exclusive ors.

For example:

011 (3)
100 (4)
101 (5)
---
010 (2) is the binary digital sum of 3, 4 and 5.

The binary digital sum is crucial for the theory of the game of nim.

The digital sum in base b is an associative and commutative operation on the natural numbers; it has 0 as neutral element and every natural number has an inverse element under this operation. The natural numbers together with the base-b digital sum thus form an abelian group; this group is isomorphic to the direct sum of a countable number of copies of Z/bZ.


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Digital sum — There are a number of common mathematical meanings of the term digital sum: Values The digit sum add the digits of the representation of a number in a given base. For example, considering 84001 in base 10 the digit sum would be… …   Wikipedia

  • Digital AMPS — IS 54 and IS 136 are second generation (2G) mobile phone systems, known as Digital AMPS (D AMPS). It was once prevalent throughout the Americas, particularly in the United States and Canada. D AMPS is considered end of life, and existing networks …   Wikipedia

  • Digital-to-analog converter — For digital television converter boxes, see digital television adapter. 8 channel digital to analog converter Cirrus Logic CS4382 as used in a soundcard. In electronics, a digital to analog converter (DAC or D to A) is a device that converts a… …   Wikipedia

  • Digital differential analyzer — This article is about the digital implementation of a Differential Analyzer. For other uses of DDA, see DDA. For the graphics algorithm, see Digital Differential Analyzer (graphics algorithm). A digital differential analyzer (DDA), also sometimes …   Wikipedia

  • Digital Differential Analyzer — A Digital Differential Analyzer (DDA), also sometimes called a Digital Integrating Computer [cite book last = Mayorov first = F. V. authorlink = coauthors = title = ELECTRONIC DIGITAL INTEGRATING COMPUTERS Digital Differential Analyzers publisher …   Wikipedia

  • Digital television transition in the United States — Further information: Digital television transition The DTV (an abbreviation of digital television, also called digital broadcast) transition in the United States was the switchover from analog (the traditional method of transmitting television… …   Wikipedia

  • Digit sum — In mathematics, the digit sum of a given integer is the sum of all its digits, (e.g.: the digit sum of 84001 is calculated as 8+4+0+0+1 = 13). Digit sums are most often computed using the decimal representation of the given number, but… …   Wikipedia

  • Direct digital synthesizer — A DDS function generator. Direct Digital Synthesizer (DDS) is a type of frequency synthesizer used for creating arbitrary waveforms from a single, fixed frequency reference clock. Applications of DDS include: signal generation, local oscillators… …   Wikipedia

  • List of mathematics articles (D) — NOTOC D D distribution D module D D Agostino s K squared test D Alembert Euler condition D Alembert operator D Alembert s formula D Alembert s paradox D Alembert s principle Dagger category Dagger compact category Dagger symmetric monoidal… …   Wikipedia

  • Examples of generating functions — The following examples are in the spirit of George Pólya, who advocated learning mathematics by doing and re capitulating as many examples and proofs as possible. The purpose of this article is to present common tricks of the trade in context, so …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”