Consider a random positive integer x . Subtract x by its digit sum. [E.g. digit sum of 2 7 = 2 + 7 ]
Which is the smallest integer, aside from 1, that always divides this new integer?
For fun: Let the answer be α . Prove that for any multiple of α 2 , the digit sum is always a multiple of α 2 .
a) Prove by using Series
b) Prove by using Induction
c) Prove by using Modulo
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
It's essentially the same hahah :)
Try out the "for fun" part of the question too!!
Let x = ∑ a l l r 1 0 r a r , where a r , r ∈ Z , a r ∈ [ 0 , 9 ] and r ∈ [ 0 , ∞ ) .
x − ∑ a r
= ∑ 1 0 r a r − ∑ a r
= ∑ ( 1 0 r − 1 ) a r
Assume 1 0 n − 1 is a multiple of 9 .
1 0 n + 1 − 1
= 1 0 ( 1 0 n ) − 1
= 1 0 ( 1 0 n − 1 + 1 ) − 1
= 9 0 k + 9 , where k ∈ Z ⇒ 1 0 n + 1 − 1 is a multiple of 9 .
∴ 1 0 n − 1 is a multiple of 9 for all n . (proven)
∴ x − ∑ a r = ∑ ( 1 0 r − 1 ) a r is a multiple of 9 for any positive integer x . (proven)
Since the number is a multiple of 9 , it must be a multiple of 3 .
For fun:
a. Let x from the above solution be a multiple of 9 ⇒ x = 9 m , where m ∈ Z
Hence 9 m − ∑ a r = 9 k
∑ a r = 9 ( m − k )
∴ the digit sum is a multiple of 9 .
b. Consider 9 n = 1 0 a 1 + a 0 , where a 0 , a 1 ∈ Z + . Assume a 0 + a 1 = 9 k , k ∈ Z +
For n + 1 ,
9 n + 9
= 1 0 a 1 + a 0 + ( 1 0 − 1 )
= 1 0 ( a 1 + 1 ) + ( a 0 − 1 )
∴ ( a 1 + 1 ) + ( a 0 − 1 ) = a 1 + a 0 = 9 k
To disprove a 1 + a 0 = 9 k , consider n = 1
9 ( 1 ) = 1 0 ( 0 ) + 9
a 1 + a 0 = 0 + 9 = 9
∴ a 1 + a 0 = 9 k ∀ 9 n = 1 0 a 1 + a 0 by induction.
From 9 k = a 1 + a 0 , let a 1 = 1 0 b 1 + b 0
∴ 9 k = 1 0 ( b 1 ) + ( a 0 + b 0 )
⇒ a 0 + b 0 + b 1 = 9 k ′ , where k ′ ∈ Z +
By induction, for all multiples of 9 , the digit sum is a multiple of 9 ( ∵ b 1 can be expressed as 1 0 c 1 + c 0 and so on).
c. Recall that 1 0 n − 1 is a multiple of 9 ∀ n .
Let 9 k = ∑ a l l r 1 0 r a r , where a r , r , k ∈ Z , a r ∈ [ 0 , 9 ] and r ∈ [ 0 , ∞ ) .
For any integer α ,
α ( 1 0 n ) = α ( 1 0 n − 1 + 1 )
= 9 m + α , m ∈ Z
≡ α mod 9
∵ 9 k ≡ 0 mod 9 ,
∑ 1 0 r a r ≡ 0 mod 9
∑ a r ≡ 0 mod 9
⇒ ∑ a r = 9 m ′ , where m ′ ∈ Z
∴ the digit sum of a multiple of 9 is a multiple of 9 .
Let's say we have a two digit no. with digits a and b. 10a + b - ( a+b) = 9a-9b = 9(a-b) Note that we can always factor out 9. So 9 is definitely a factor. Since 9 is a factor, we can be sure that 3 is also a factor as 9= 3*3. So we can be sure that 3 is the smallest factor other than 1. Note that this method works for all numbers no matter the number of digits.
Never thought this also happens..ah nature has its own interesting patterns
Is this an explanation?
The divisibility rule of 3 is that the sum of all its digits is divisible by 3. If you take the sum of a number's digits and subtract it again, you will end up with 0, which is divisible by 3.
Sorry, could you explain how you know that the digit sum of a random integer is a multiple of 3, such that you canuse the divisibility rule of 3? Also, how do you always get 0 after subtracting off a random integer with its digit sum? Do clarify these 2 questions.
Lastly, as you were saying, 0 is divisible by 3, then is 0 not divisible by 2? By this logic, 2 should be the answer.
Log in to reply
0 is divisible by all numbers except 0. The divisibility rule of two is that the last digit is even, NOT that the digits sum is even. I never said that the sum of any integer's digits is divisible by three, but the digit sum divided by three will leave the same remainder as the original number divided by three, so you can substitute the digits sum for the original number. When you subtract the digits sum again, you get 0.
Log in to reply
Ahh I think I understand what you mean now. Is this what you are trying to say?
Let x = ∑ 1 0 r a r
x ≡ b mod 3
Digits sum, ∑ a r ≡ b mod 3
Hence x − (digits sum) ≡ 0 mod 3
Is this what you are trying to say? If so, could you do me a favour? I'm interested in seeing the proof for the divisibility rule of 3 , where the remainder obtained when a random integer is divided by 3 equals to the remainder obtained when its digits sum is divided by 3 :)
Log in to reply
@Lucas Tan – That's kind of hard to explain, and honestly, I don't quite understand the proof either, but briefly, any power of 10 divided by 3 leaves a remainder of 1.
Log in to reply
@Jesse Li – It's okay, I understand the proof.
Note that r mod 9 ≡ r mod 3 for any r ∈ Z , ∵ 9 = 3 2 .
From my proof, I have shown that 1 0 r a r ≡ a r mod 9 .
Hence, 1 0 r a r ≡ a r mod 3 .
x − (digits sum)
= ∑ 1 0 r a r − ∑ a r
≡ ( ∑ a r − ∑ a r ) mod 3
≡ 0 mod 3
Hence a random integer subtracted off its digits sum is a multiple 3 .
Let the number be xy. 10x+y-(x+y)=9x. So it is divisible by 9 so by 3
Log in to reply
This only works for a 2-digit number. The proof you have is incomplete and insufficient.
Problem Loading...
Note Loading...
Set Loading...
Let x = a + 1 0 b + 1 0 0 c + 1 0 0 0 d . . .
The number concerned here would be a + 1 0 b + 1 0 0 c . . . − ( a + b + c . . . ) = 9 b + 9 9 c + 9 9 9 d . . . , which is always divisible by 9, hence always divisible by 3.