Why Multiples of Three are Divisible by 3

  • Thread starter Thread starter Char. Limit
  • Start date Start date
Click For Summary
The discussion explains that a number is divisible by three if the sum of its digits is also divisible by three, due to the properties of congruences in base 10. Specifically, since 10 is congruent to 1 modulo 3, each digit contributes equally to the overall congruence of the number. This means that the entire number can be expressed in terms of its digits' sum when considering divisibility by three. The principle extends to other bases, where a number is divisible by n-1 if the sum of its digits is divisible by n-1. Understanding these congruences clarifies the divisibility rules across different numerical bases.
Char. Limit
Gold Member
Messages
1,222
Reaction score
23
Why is it that if the sum of the digits of a number is divisible by three, the number itself is also divisible by three?

I've tried to do it, but I can't get anywhere. This is the best I have.

Start with an integer x, which can also be written thus...

x=x_1+x_2\times10+x_3\times10^2+x_4\times10^3+...+x_i\times10^{i-1}

Which gives us the digits of x. So, why is it that if...

\frac{\sum_{i=1}^{n} x_i}{3} \in \mathbb{Z}

then...

\frac{x}{3} \in \mathbb{Z}

for an n-digit number x?
 
Physics news on Phys.org
Because you're working in base 10, and 10 = 1 (mod 3). If you were working in base 8, then the sum of the digits would be divisible by 7 iff the original number was.
 
You should understand congruences:
<br /> \begin{array}{c}<br /> 1 \equiv 1 (\textrm{mod} \, 3) \\<br /> 10 \equiv 1 (\textrm{mod} \, 3) \\<br /> 10^{2} \equiv 1 (\textrm{mod} \, 3) \\<br /> \cdots \\<br /> 10^{n} \equiv 1 (\textrm{mod} \, 3)<br /> \end{array}<br />
Multiplying each of the congruences by a_{n}, where a_{n} is the nth digit from the right (the first one being labeled by a_{0}), and having in mind that:

<br /> x = \overline{a_{n} \cdots a_{1} a_{0}} = a_{n}*10^{n} + \cdots a_{1}*10 + a_{0}<br />

so

<br /> x \equiv (a_{n} + \cdots + a_{1} + a_{0}) (\textrm{mod} \, 3)<br />

Similarly, you can derive other criteria for divisibility.
 
CRGreathouse said:
Because you're working in base 10, and 10 = 1 (mod 3). If you were working in base 8, then the sum of the digits would be divisible by 7 iff the original number was.

Dickfore said:
You should understand congruences:
<br /> \begin{array}{c}<br /> 1 \equiv 1 (mod 3) \\<br /> 10 \equiv 1 (mod 3) \\<br /> 10^{2} \equiv 1 (mod 3) \\<br /> \dotslow \\<br /> 10^{n} \equiv 1 (mod 3)<br /> \end{array}<br />
Multiplying each of the congruences by a_{n}, where a_{n} is the nth digit from the right (the first one being labeled by a_{0}), and having in mind that:

<br /> x = \overline{a_{n} \dotslow a_{1} a_{0}} = a_{n}*10^{n} + \dotslow a_{1}*10 + a_0{}<br />

so

<br /> x \equiv (a_{n} + \dotslow + a_{1} + a_{0}) (mod 3)<br />

Similarly, you can derive other criteria for divisibility.

Thanks for the answers, I get it now. It makes total sense when you think about congruence, I guess.
 
Actually it is more like number (written in base 10) is divisible by 9 if sum of digits is divisible by 9, 3 is just a side effect.

In general, this rule works for numbers in base n being divisible by n-1 if sum of digits is divisible by n-1.
 
So the divisible-by-three rule would also work in base four, base seven, and any base 3n+1 then...

Thanks.
 
I am studying the mathematical formalism behind non-commutative geometry approach to quantum gravity. I was reading about Hopf algebras and their Drinfeld twist with a specific example of the Moyal-Weyl twist defined as F=exp(-iλ/2θ^(μν)∂_μ⊗∂_ν) where λ is a constant parametar and θ antisymmetric constant tensor. {∂_μ} is the basis of the tangent vector space over the underlying spacetime Now, from my understanding the enveloping algebra which appears in the definition of the Hopf algebra...

Similar threads

  • · Replies 21 ·
Replies
21
Views
1K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 0 ·
Replies
0
Views
839
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
864
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K