本文へスキップ
Number Buffet

数字根

数の各桁を一桁になるまで足し合わせます。「9を捨てる」検算の背後にある中世の算法を、2 から 36 までの任意の基数で。

OEIS A010888 · 読了 3 分

設定

クイックプリセット

Digits only, up to 40 of them. Spaces, underscores and commas are ignored.

Used by the consecutive-numbers mode only; the two single-number modes ignore it.

In base b the digital root is the residue modulo b − 1, so base 10 gives the familiar mod-9 result.

Prints "48 → 3" rather than just the root.

Base 10 only — other bases are grouped by the base’s own digits.

見た目を微調整

まず画像の横にあるプリセットを選んでください。ここで細かく調整します。

Frame

A border drawn inside the edge of the image.

詳細設定

結果

50 件の値

1 → 1, 2 → 2, 3 → 3, 4 → 4, 5 → 5, 6 → 6, 7 → 7, 8 → 8, 9 → 9, 10 → 1, 11 → 2, 12 → 3, 13 → 4, 14 → 5, 15 → 6, 16 → 7, 17 → 8, 18 → 9, 19 → 1, 20 → 2, 21 → 3, 22 → 4, 23 → 5, 24 → 6, 25 → 7, 26 → 8, 27 → 9, 28 → 1, 29 → 2, 30 → 3, 31 → 4, 32 → 5, 33 → 6, 34 → 7, 35 → 8, 36 → 9, 37 → 1, 38 → 2, 39 → 3, 40 → 4, 41 → 5, 42 → 6, 43 → 7, 44 → 8, 45 → 9, 46 → 1, 47 → 2, 48 → 3, 49 → 4, 50 → 5

In base 10 the digital root is the remainder on division by 9, with 9 standing in for 0. That is why it detects divisibility by 3 and 9. Roots repeat with period 9, so this page advances the cycle rather than re-summing each number’s digits.


画像を作成

これらの数字を装飾して画像としてダウンロードするには JavaScript を有効にしてください。値そのものは上に一覧表示されています。

Text on the image

Drag a line straight onto the picture to place it — once placed, it stays exactly where you put it. Everything here is drawn into the download.

以下の解説記事はまだ翻訳されておらず、英語で表示されます。

数字根について

Reducing a numeral to a single digit is older than the decimal point reached Europe. Hippolytus, the Roman bishop who died around 235, described digit-summing of Greek numerals in The Refutation of all Heresies, and the Syrian philosopher Iamblichus (c. 245 – c. 325) covered it in his commentary on Nicomachus of Gerasa's Introduction to Arithmetic. Both used it to reduce a numeral to a "root" between 1 and 9. Neither connected it to checking a calculation.

That step appears first in India. The earliest surviving work to use digit sums as a check on arithmetic is the Mahāsiddhānta, written around 950 by Aryabhata II (c. 920 – c. 1000). Around 1020 the Persian polymath Ibn Sina — Avicenna in Latin — set out full details of what he called the Hindu method of checking calculations by casting out nines, and the technique travelled west alongside the Hindu–Arabic numerals themselves: Leonardo of Pisa describes the procedure in Liber Abaci in 1202. European arithmetic texts carried it for centuries afterwards as a quick proof of a long multiplication.

It works because 10 ≡ 1 (mod 9): every power of ten leaves remainder 1, so a number and its digit sum always have the same remainder on division by nine. The same reasoning is why it fails as an error check. Reordering digits does not change their sum, so writing 1324 for 1234 passes the test. Modern check digits — the Luhn algorithm on a bank card, the mod-11 digit on an ISBN-10 — weight each position differently precisely to catch that transposition.

The digit-sum check also circulates today under the banner of "Vedic mathematics", after Bharati Krishna Tirtha's book of that name, published posthumously in 1965. Tirtha said his sixteen sutras came from a pariśiṣṭa, an appendix, to the Atharvaveda. K. S. Shukla asked him to point them out in a standard edition and was told they appeared only in a version Tirtha alone had seen. S. G. Dani, Kim Plofker and others have since noted that the Vedas contain none of the sutras, and that the methods rely on decimal notation, which reached India far later. The techniques work; the attribution does not.

主な性質

  • For n ≥ 1 the digital root in base b is 1 + ((n − 1) mod (b − 1)), and the digital root of 0 is 0 — so it is just the residue modulo b − 1, with b − 1 standing in for 0.
  • In base 10 it works because 10 ≡ 1 (mod 9): every power of ten leaves remainder 1, so a number and its digit sum are congruent modulo 9.
  • dr(a + b) = dr(dr(a) + dr(b)) and dr(a × b) = dr(dr(a) × dr(b)), which is exactly what makes casting out nines a valid check on addition and multiplication.
  • A positive integer is divisible by 9 precisely when its digital root is 9, and by 3 precisely when its digital root is 3, 6 or 9.
  • The digital root of a perfect square is always 1, 4, 7 or 9, because the squares leave only the remainders 0, 1, 4 and 7 modulo 9.
  • Casting out nines cannot detect a transposition of digits: reordering them leaves the digit sum, and therefore the root, unchanged.
  • The smallest numbers with additive persistence 1, 2 and 3 are 10, 19 and 199, and additive persistence has no upper bound.
  • Multiplicative persistence behaves quite differently: 277777788888899 needs 11 steps of multiplying its digits, the most of any known number, and it is conjectured that nothing does better.

登場する場面

  • The divisibility tests for 3 and 9 taught in primary arithmetic are digital-root tests in disguise.
  • Casting out nines was the standard hand check on long multiplication in European arithmetic from Liber Abaci onwards; modern check digits such as Luhn and ISBN-10 displaced it because they also catch transposed digits.
  • Western numerology reduces a birth date or a name to a single digit — the "life path number". That is a belief system, not a mathematical result.
  • "Vortex based mathematics", promoted by Marko Rodin, is built on the 1-2-4-8-7-5 cycle formed by the digital roots of the powers of two. It is pseudomathematics with no standing in number theory, although the cycle itself is real.
  • The parlour trick where you scramble a number’s digits, subtract the smaller from the larger, and always get a multiple of 9 — because a number and any rearrangement of its digits are congruent modulo 9.
  • Recreational number theory keeps returning to digit iteration: Harshad (Niven) numbers, happy numbers and the persistence problems all come from the same family of operations.

このジェネレーターの使い方

生成された値は上部に表示され、横にコピーボタンがあります。画像にするには 画像を作成 のスタイルから見た目を選び、書き出しサイズを指定して PNG・JPEG・WebP でダウンロードしてください。すべてブラウザー内で描画されるため、生成した内容がサーバーに送られることはありません。

操作に合わせてアドレスバーが更新されるので、リンクは常に表示どおりの状態を再現します。特定の数列を共有したり、設定を保存しておくのに便利です。値をプレーンテキストで取り出すには コピー、CSV・JSON・NDJSON・SQL・XML が必要なら データを書き出す を使ってください。

出典

このページの歴史的な記述は、上に挙げたオープンライセンスの資料に基づいています。誤りを見つけたら お知らせください。修正します。