Digit sum

In mathematics, the digit sum of a natural number in a given number base is the sum of all its digits. For example, the digit sum of the decimal number would be

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 base 10, the digit sum of 84001 is

For any two bases and for sufficiently large natural numbers

[1]

The sum of the base 10 digits of the integers 0, 1, 2, ... is given by OEISA007953 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 digital root, which is the result of repeatedly applying the digit sum operation until the remaining value is only a single digit. The decimal digital root of any non-zero integer will be a number in the range 1 to 9, whereas the digit sum can take any value. Digit sums and digital roots can be used for quick divisibility tests: a natural number is divisible by 3 or 9 if and only if its digit sum (or digital root) is divisible by 3 or 9, respectively. For divisibility by 9, this test is called the rule of nines and is the basis of the casting out nines technique for checking calculations.

Digit sums are also a common ingredient in checksum algorithms to check the arithmetic operations of early computers.[3] Earlier, in an era of hand calculation, Edgeworth (1888) suggested using sums of 50 digits taken from mathematical tables of logarithms as a form of random number generation; if one assumes that each digit is random, then by the central limit theorem, these digit sums will have a random distribution closely approximating a Gaussian distribution.[4]

The digit sum of the binary representation of a number is known as its Hamming weight or population count; algorithms for performing this operation have been studied, and it has been included as a built-in operation in some computer architectures and some programming languages. These operations are used in computing applications including cryptography, coding theory, and computer chess.

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

References

  1. ^ Bush, L. E. (1940), "An asymptotic formula for the average sum of the digits of integers", American Mathematical Monthly, 47 (3), Mathematical Association of America: 154–156, doi:10.2307/2304217, JSTOR 2304217.
  2. ^ Borwein, J. M.; Borwein, P. B. (1992), "Strange series and high precision fraud" (PDF), American Mathematical Monthly, 99 (7): 622–640, doi:10.2307/2324993, hdl:1959.13/1043650, JSTOR 2324993, archived from the original (PDF) on 2016-05-09, retrieved 2009-03-02.
  3. ^ Bloch, R. M.; Campbell, R. V. D.; Ellis, M. (1948), "The Logical Design of the Raytheon Computer", Mathematical Tables and Other Aids to Computation, 3 (24), American Mathematical Society: 286–295, doi:10.2307/2002859, JSTOR 2002859.
  4. ^ 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

Read other articles:

American professional wrestling television show WWE Saturday Morning SlamGenreProfessional wrestlingCreated byVince McMahonPresented byTony DawsonStarringWWE rosterOpening themeThis Time It's Mine by Jim Johnston[1]Country of originUnited StatesOriginal languageEnglishNo. of seasons1No. of episodes38ProductionCamera setupMulticamera setupRunning time30 minutes (inc. commercials)[2]Original releaseNetworkThe CW (Vortexx)ReleaseAugust 25, 2012 (2012-08-25) –May 11, 2013…

Léon MeyerLéon Meyer, sous-secrétaire d'État à la Marine marchande, maire du Havre (1924)FonctionsMinistre de la Marine marchande3 juin 1932 - 28 janvier 1933Député de la Seine-Maritime10 juin 1923 - 19 novembre 1941Maire du Havre7 décembre 1919 - 10 juin 1940Conseiller municipal du Havre12 mai 1912 - 10 juin 1940Conseiller général de la Seine-Maritime4 août 1907 - 17 octobre 1937BiographieNaissance 11 septembre 1868Le HavreDécès 22 janvier 1948 (à 79 ans)17e arrondisseme…

Motorsport track in the United States Myrtle Beach SpeedwayLocationMyrtle Beach, South CarolinaTime zoneGMT-5Coordinates33°44′47″N 78°57′7″W / 33.74639°N 78.95194°W / 33.74639; -78.95194Capacity12,000 (Oval)Opened1958Closed2020Major events NASCAR Whelen All-American Series Myrtle Beach 400 (1993-2019) IceBreaker 125 (2016-2020) D-ovalSurfaceAsphaltLength0.538 miles (0.866 km)BankingTurns - 13° Straights - 4° front, 3° back Myrtle Beach Speedway Myrtle Beach…

斯洛博丹·米洛舍维奇Слободан МилошевићSlobodan Milošević 南斯拉夫联盟共和国第3任总统任期1997年7月23日—2000年10月7日总理拉多耶·孔蒂奇莫米尔·布拉托维奇前任佐兰·利利奇(英语:Zoran Lilić)继任沃伊斯拉夫·科什图尼察第1任塞尔维亚总统任期1991年1月11日[注]—1997年7月23日总理德拉古京·泽莱诺维奇(英语:Dragutin Zelenović)拉多曼·博若维奇(英语:Radoman Božov…

Confine tra la Repubblica Centrafricana e il Sudan del SudMappa del Sudan del Sud con i suoi confiniDati generaliStati Rep. Centrafricana Sudan del Sud Dati storiciIstituito nel1905 Attuale dal2011 Manuale Il confine tra la Repubblica Centrafricana e il Sudan del Sud ha una lunghezza di 1055 km e va dal triplice confine con il Sudan a nord, al triplice confine con la Repubblica Democratica del Congo a sud.[1] Indice 1 Descrizione 2 Storia 3 Insediamenti vicino al confine 3…

1991 Japanese animated film This article's lead section may be too short to adequately summarize the key points. Please consider expanding the lead to provide an accessible overview of all important aspects of the article. (May 2016) Roujin ZTheatrical release posterDirected byHiroyuki KitakuboWritten byKatsuhiro OtomoProduced byYasuhito NomuraYasuku KazamaYoshiaki Motoya[1]CinematographyHideo Okazaki[1]Edited byEiko Nishide[1]Music byBun Itakura[1]Productioncompa…

此条目序言章节没有充分总结全文内容要点。 (2019年3月21日)请考虑扩充序言,清晰概述条目所有重點。请在条目的讨论页讨论此问题。 哈萨克斯坦總統哈薩克總統旗現任Қасым-Жомарт Кемелұлы Тоқаев卡瑟姆若马尔特·托卡耶夫自2019年3月20日在任任期7年首任努尔苏丹·纳扎尔巴耶夫设立1990年4月24日(哈薩克蘇維埃社會主義共和國總統) 哈萨克斯坦 哈萨克斯坦政府與…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada November 2022. Alime AbdenanovaNama lahirAlime BorasanovLahir4 Januari 1924Kerch, Republik Sosialis Soviet Otonom KrimeaMeninggal5 April 1944 (usia 20)Simferopol, Krimea pada masa pendudukan NaziPengabdian Uni SovietDinas/cabang Tentara Merah (intelijensi militer)…

Stadium in Kilkenny, County Kilkenny, Ireland Nowlan ParkPáirc Uí NualláinFull nameUPMC Nowlan ParkLocationO'Loughlin Road, Kilkenny, County Kilkenny, R95 WN66, IrelandCoordinates52°39′23″N 7°14′22″W / 52.65639°N 7.23944°W / 52.65639; -7.23944Public transitKilkenny railway stationOwnerKilkenny GAACapacity27,000 (18,000 seated)[1][2][3]Field size145 x 88 m Nowlan Park (/ˈnoʊlən/; Páirc Uí Nualláin), known for sponsorship reasons…

Election in Great Britain 1727 British general election ← 1722 14 August – 17 October 1727 (1727-08-14 – 1727-10-17) 1734 → ← elected memberselected members →All 558 seats in the House of Commons280 seats needed for a majority   First party Second party Third party   Leader Sir Robert Walpole Viscount Bolingbroke William Pulteney Party Whig Tory Opposition / Patriot Whigs Leader's seat King's Lynn House …

The TimePoster promosiHangul시간 GenreRomansaMelodramaDitulis olehChoi Ho-chulSutradaraJang Joon-hoPemeranKim Jung-hyunSeohyunNegara asalKorea SelatanBahasa asliKoreaJmlh. episode32ProduksiProduser eksekutifKim Seung-joSon Ji-hyunPengaturan kameraKamera tunggalDurasi35 menitRumah produksiSILKWOOD[a]Will Entertainment [ko][b]DistributorMBCRilis asliJaringanMBCFormat gambar1080i (HDTV)Format audioDolby DigitalRilis25 Juli (2018-07-25) –20 September 2018&#…

County in North Dakota, United States County in North DakotaNelson CountyCountyWater Tower behind Lakota City Hall.Location within the U.S. state of North DakotaNorth Dakota's location within the U.S.Coordinates: 47°55′N 98°11′W / 47.92°N 98.19°W / 47.92; -98.19Country United StatesState North DakotaFoundedMarch 2, 1883 (created)June 9, 1883 (organized)SeatLakotaLargest cityLakotaArea • Total1,009 sq mi (2,610 km2) •…

Ongoing COVID-19 viral pandemic in Gujarat, India This article needs to be updated. Please help update this article to reflect recent events or newly available information. (January 2022) COVID-19 pandemic in GujaratDiseaseCOVID-19Virus strainSARS-CoV-2LocationGujarat, IndiaIndex caseRajkot and SuratArrival date19 March 2020 (4 years, 2 months, 3 weeks and 6 days)Confirmed cases8,25,710 (27/09/2021)[1]Active cases142 (27/09/2021)[1]Recovered8,15,489 (27/09/202…

Ethnic group in Saudi Arabia Ethnic group Australians in Saudi ArabiaTotal population5,000[1]Regions with significant populationsRiyadh · JeddahLanguagesEnglish (Australian) · ArabicReligionIslam, Roman Catholicism and Protestantism Australians in Saudi Arabia are a sizeable community consisting mainly of expatriates. Their population is estimated to be anywhere up to 5,000 with the majority based in major commercial centres such as Riyadh and Jeddah.[1&…

Painting movement Peter Paul Rubens, The Raising of the Cross, c. 1610–1611 Flemish Baroque painting was a style of painting in the Southern Netherlands during Spanish control in the 16th and 17th centuries. The period roughly begins when the Dutch Republic was split from the Habsburg Spain regions to the south with the Spanish recapturing of Antwerp in 1585 and goes until about 1700, when Spanish Habsburg authority ended with the death of King Charles II.[1] Antwerp, home to the…

Ernst BachErnst Bach in Vienna in 1902Born(1876-05-10)10 May 1876Cheb, Bohemia, Austria-HungaryDied1 November 1929(1929-11-01) (aged 53)Munich, GermanyOccupation(s)Actor, theatre manager and playwrightYears active1900–1929 Ernst Bach (10 May 1876 – 1 November 1929) was an Austrian actor and playwright. He made his debut as an actor at the Raimund Theater in Vienna in 1899. In 1903 he moved to Berlin to the Residenz-Theater [de], then to the Lustspielhaus [de&#…

Dutch men's cycling team For the women's team, see Team dsm–firmenich PostNL (women's team). Team dsm–firmenich PostNLThe team at the 2023 Paris–NiceTeam informationUCI codeDFPRegisteredNetherlands (2005–2014)Germany (2015–2021)Netherlands (2022–)Founded2005 (2005)Discipline(s)RoadStatusUCI Professional Continental (2005–2012)UCI WorldTeam (2013–)BicyclesColnago (2005)Koga (2006–2011)Felt (2012)Giant (2013–2018)Cervélo (2019–2020)Scott (2021–)ComponentsShimanoWebsit…

جهاد الغنام جهاد الغنام معلومات شخصية الميلاد سنة 1961   رفح  الوفاة 9 مايو 2023 (61–62 سنة)[1]  رفح  سبب الوفاة ضربة جوية[1]  قتله القوات الجوية الإسرائيلية،  وشاباك  مواطنة دولة فلسطين  الحياة العملية المهنة مقاوم  الحزب حركة الجهاد الإسلامي في فلسط…

Howitzer 152 mm howitzer M1910/37 An identical looking 152 mm howitzer M1910 displayed in Hämeenlinna Artillery MuseumTypehowitzerPlace of originUSSRProduction historyNo. builtabout 99SpecificationsMasscombat: 2,725 kg(6,007 lb)travel: 3,050 kg(6,724 lb)Barrel length1.83 m (6 ft) L/12Height1.91 m (6 ft 3 in)Crew8Caliber152.4 mm (6 in)BreechInterrupted screwRecoilHydro-pneumaticCarriageBox trailElevation0° to 41°Traverse6°Rate of fire6 ro…

يفتقر محتوى هذه المقالة إلى الاستشهاد بمصادر. فضلاً، ساهم في تطوير هذه المقالة من خلال إضافة مصادر موثوق بها. أي معلومات غير موثقة يمكن التشكيك بها وإزالتها. (مارس 2016) هذه المقالة يتيمة إذ تصل إليها مقالات أخرى قليلة جدًا. فضلًا، ساعد بإضافة وصلة إليها في مقالات متعلقة بها. (ين…