Freeks/divisibility.book(保存済みの内容) … 編集へ / ファイル一覧へ

ページ 13 / 30 … 1 … 11 12 13 14 15 … 30 … ← 前のページ … 次のページ →


12 #85 Divisibility test for 3 forget

For digits \(d(i)\) (at the \(10^i\) place), \(\sum_{i=0}^{n} d(i) \cdot 10^i\) is divisible by 3 if and only if the digit sum \(\sum_{i=0}^{n} d(i)\) is divisible by 3.

12.1 Preparation

\(10^i\) leaves remainder 1 when divided by 3 (induction from \(10 = 3 \cdot 3 + 1\)).
L10↑ … \(i \in \mathbb{M} \Longrightarrow \exists c \in \mathbb{M} . 10 ^ i = 3 \cdot c + 1\) \(\blacktriangleleft\) ⋅𝕄:D ,↑s𝕄 ,↑0X ,\(\mathbb{W}.\) ,Axℤ
Adding a multiple of 3 does not change whether a number is divisible by 3.
L3t … \(x , t \in \mathbb{M} \Longrightarrow ( 3 \mid x + 3 \cdot t \Longleftrightarrow 3 \mid x )\) \(\blacktriangleleft\) ∣+ ,∣sub ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,Axℤ

12.2 Main theorem

Let the digits be \(d(i)\) (at the \(10^i\) place). Each \(d(i)\) need only be a natural number; the result holds even if it is not less than 10.
Proof: since \(10^i = 3c + 1\), \(d \cdot 10^i = d + 3dc\). Summing gives the form \(\sum d(i) 10^i = \sum d(i) + 3t\) (induction), and adding a multiple of 3 does not change whether it is divisible by 3 (L3t).
\(\forall i \in \mathbb{M} . d ( i ) \in \mathbb{M} \Longrightarrow \forall n \in \mathbb{M} . ( 3 \mid \sum_{ i \in 0 \mathinner{\ldotp\ldotp} n } d ( i ) \cdot 10 ^ i \Longleftrightarrow 3 \mid \sum_{ i \in 0 \mathinner{\ldotp\ldotp} n } d ( i ) )\) \(\blacktriangleleft\) L10↑ ,L3t ,⋅𝕄:D ,↑s𝕄 ,↑∈𝕄 ,↑0X ,⋅0𝕄 ,⋅0X ,\(\mathbb{W}.\) ,Axℤ ,AxΣ

ページ 13 / 30 … ← 前のページ … 次のページ →