Why Multiples of Three are Divisible by 3

  • Context: Undergrad 
  • Thread starter Thread starter Char. Limit
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around the divisibility rule for numbers, specifically focusing on why a number is divisible by three if the sum of its digits is divisible by three. Participants explore this concept within the context of different numerical bases and congruences.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant presents a mathematical expression for an integer and questions the relationship between the sum of its digits and its divisibility by three.
  • Another participant explains that in base 10, the number 10 is congruent to 1 modulo 3, which supports the divisibility rule for three.
  • A further contribution elaborates on congruences, showing that each power of 10 is congruent to 1 modulo 3, leading to the conclusion that the number's congruence can be expressed in terms of its digits.
  • One participant suggests that the rule for divisibility by 9 is more fundamental, with the divisibility by 3 being a consequence of this broader rule.
  • Another participant indicates that the divisibility rule for sums of digits applies to other bases, specifically noting that it holds for base n being divisible by n-1.

Areas of Agreement / Disagreement

Participants express differing views on the fundamental nature of the divisibility rules, with some emphasizing the specific case for base 10 and others suggesting a more general principle applicable to various bases. No consensus is reached regarding the primacy of the rules discussed.

Contextual Notes

The discussion includes assumptions about numerical bases and congruences that may not be universally applicable without further clarification. The implications of these rules in different bases are not fully resolved.

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.
 

Similar threads

  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K