Dr. Frankenthree creates numbers by splicing three consecutive positive integers together. He notices these numbers are multiples of 3:
7 8 9 1 4 1 5 1 6 5 0 5 1 5 2 1 9 8 1 9 9 2 0 0 = 3 × 2 6 3 = 3 × 4 7 1 7 2 = 3 × 1 6 8 3 8 4 = 3 × 6 6 0 6 6 4 0 0 .
Are the numbers Dr. Frankenthree creates in this way always multiples of 3?
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.
Two points, taken from the comments:
Splicing together the numbers will also splice together the sum of their digits. Since the sum of digits is divisible by 3 the spliced number is divisible by 3.
We have a quiz (in our free content) which leads you through the process of solving "Justify visually that 258 is divisible by 3." which should help you understand why it's a general rule that an integer is divisible by 3 if and only if the sum of digits is divisible by 3:
Good explanation
How do we know that when the sum of a number's digits are divisible by three the number will be divisible by three?
Log in to reply
That is the divisibility rule for 3 , it's true for all numbers divisible by 3 .
Here you can checkout divisibility rules .
We have a quiz (in our free content) which leads you through the process of solving "Justify visually that 258 is divisible by 3." which should help you understand why it's a general rule:
n+n+1+n+2 is not the same as splicing the three numbers together.
Log in to reply
those r the 3 consecutive nos. and that's the criteria which the question states!!!!
@Mark Monnin splicing together the numbers will also splice together the sum of their digits. Since the sum of digits is divisible by 3 the spliced number is divisible by 3.
Log in to reply
But if sum of digits of integer n is S, sum of digits of n+1 need not to be S+1?
389 - 390 - 391 The sum of digits of 390 is not the sum of digits of 389 + 1 So you'll have to do some more work, right?
Log in to reply
The sum of the digits of 390 is divisible by 3 so 390 is divisible by 3 . Why will you consider 389+1 ? 390 doesn't have any digit as 1 ! Only the digits of the number should be considered . I have considered the three consecutive numbers as n, n+1, n+2 . These can be any consecutive numbers . So the digits of these numbers are unknown . We add them to see whether it is divisible by 3 or not .
n+n+1+n+2=3(n+1)
389390391 , 389+390+391 = 1170 = 3x390 =3(389+1)
Log in to reply
Sum of digits of 389390391 is 3+8+9+3+9+3+9+1=45 =3•15 Not 1170. You haven't considered that yet.
Log in to reply
@Inksa Inkeroinen – This is also correct ! In this way also you can show that it is divisible by 3 . Here you know the number so you can add the digits and show but when the number is unknown and it is mentioned that it is concatenated by three consecutive numbers then you can show n+n+n+2 =3(n+1) which is divisible by 3 .
Log in to reply
@Nashita Rahman – The sum of those numbers (n, n+1 and n+2) is then divisible by 3. How about their digits?
Log in to reply
@Inksa Inkeroinen – The question asks for a number which is concatenated by n,n+1,n+2 , we need to check whether it is divisible by 3 or not. So we add n+n+1+n+2 to see that . And we notice that it's divisible by 3 , you can check that out too by trying some numbers . The digits of the numbers n,n+1,n+2 aren't required as per the question . My solution doesn't consider the digits of n,n+1,n+2 ! And the number is unknown so how will you generalise the digits?
Log in to reply
@Nashita Rahman – OK, let's check it by trying some number, let's say n=14. Dr Frankenthree's number is now 141516 isn't it? You have to prove it is divisible by 3. Of course it is, since 141516/3=47172. But how you show it by n+n+1+n+2=14+15+16=45?
I have tried to generalise digits in my solution below. I afraid there is no upvotes, so you have to find it quite far below... :) Check it and tell what you think about it!
Log in to reply
@Inksa Inkeroinen – I have updated my solution by adding a statement that I am not adding the digits of the number to clear the confusion . I hope it is ok now ! My solution has a simple approach to the problem , there are other ways too to solve the problem.
In your solution you have assumed that x is not of some form ? But the number can be of any form ?
Log in to reply
@Nashita Rahman – I tried to tell that in the beginning x can be anything except such that it end 98 or 99 (or 8 or 9 if they are one-digit numbers). Those situations I then checked separately. So i believe I considered every possibles.
In your solution: For example, 333435 here n=33 , n+1=34, n+2=35 . n+n+1+n+2=33+34+35=102 =3x34=3(n+1)
You show that 102 is divisible by 3. I don't see how it proves that 333435 would be divisible by 3.
Log in to reply
@Inksa Inkeroinen – It is divisible by 3 from its divisibility rule ! There are many ways to apply the divisibility rule .
Incorrect explanation, but here's the right one: 100(n) + 10(n+1) + 1(n+2) = 111(n) + 12 , 111(n) + 12 = 3 [ 37(n) + 4 ] you're welcome.
Log in to reply
What do you find incorrect ? It will be great help if you let me know what's incorrect . For divisibility by 3 you just need to add the digits !!
And it is not mentioned that it is a three digit number so you can't explain it that way as it shows only for a three digit number
You are correct
That's only correct for single-digit numbers
The sum of the three numbers is not the same as the sum of the digits of the three numbers. That's what people are getting at. You've proved that the sum of three consecutive numbers is a multiple of 3, not that the concatenation of three consecutive numbers is a multiple of 3.
Log in to reply
Okay, I see where the confusion lies now .The question says that you're concatenating the consecutive numbers so I have added the three consecutive numbers which are the digits of the number . Then I have shown using the divisibility rule of 3 that it is divisible by 3 .
Log in to reply
No, let's say we have 18, 19, and 20. You say n=18, and you're adding n+(n+1)+(n+2). You are showing that 18+19+20=57 is divisible by 3. What you should be showing is that 1+8+1+9+2+0=21 (WHICH IS NOT 57) is divisible by 3.
Obviously it works, but you're not showing it correctly. There's the case with passing a multiple of 10 that we have to think about.
Your method works when we don't pass a multiple of 10. Let's say 17, 18, 19. Then if you let n be the sum of the digits of the first number: n=1+7=8 We get n+1 is the sum of digits of the second number (1+8=9=n+1), and n+2 is the sum of digits of the third number (1+9=10=n+2). Then the sum of the digits of the concatenation (171819) is indeed n+(n+1)+(n+2).
The point is: you're coming to the correct conclusion with an incorrect proof.
Log in to reply
@Michael Atsma – I have updated my solution by putting a statement that I haven't added the digits of the number ! I hope it is clear now . Basically my solution has a simple approach . I agree with what you're saying but I am not proving what you meant . And it's like a trick to consider the sum of consecutive numbers instead of the digits to show that it is divisible by 3 ! It's just a simple and easy approach to solve the problem .
So if S1, S2 and S3 are the sums of digits of numbers n, n+1 and n+2, how do you show that S1+S2+S3 is divisible by 3?
Log in to reply
n+n+1+n+2 = 3n+3 = 3(n+1),this is the line which clearly defines it!!!
Log in to reply
No, it shows, that sum of those numbers is divisible by 3, but doesn't show that sum of their digits would be.
That is the trick used here ! For any unknown number comprising of three consecutive numbers it is impossible to know the digits but as we know that it is concatenated by three consecutive numbers so we are using n+n+1+n+2 here to show that it is divisible by 3 .
why so many upvotes (0.0) ?
If we have a number 192021, then the sum of the parts are 10, 2 and 3 respectively which does not correspond to n, n+1, n+2 clearly.
Log in to reply
No , it's not like that . n=19 , n+1=20 n+2=21 . They're all consecutive numbers . n+n+1+n+2 = 19+20+21 = 60= 3x20 which is divisible by 3 .
Log in to reply
I'm still wondering, how this, n+n+1+n+2=60 shows that 192021 is divisible by 3?
Log in to reply
@Inksa Inkeroinen – It's because the number is concatenated from n,n+1,n+2 . Divisibility rule of 3 is also applied !
Log in to reply
@Nashita Rahman – OK, that means you are using n, n+1 and n+2 as "digits" of number. Those "digits" may contain more than on number, and still the divisibility rule holds? I have never before seen that kind of rule.
Edited: Now I can even to generalise this proof:
https://brilliant.org/wiki/proof-of-divisibility-rules/#divisibility-by-3-similar-for-9
to even this: let { x 1 , x 2 , … x n } be any set of positive integers. If x 1 + x 2 + … + x n is divisible by 3, x 1 ∣ x 2 ∣ … ∣ x n (spliced together) is divisible by 3. :)
@Inksa Inkeroinen – Inksa -- If there are more than three digits in the number (which would be the n, n+1, n+2 that you are talking about), look for groups of numbers which can just as well be the consecutive n, n+1, n+2 called for. It can be groups of two numbers (47, 48, 49), groups of four numbers (4711, 4712, 4713), and so forth. Also, as the Moderator has stated, if one adds each individual digit, the sum is divisible by 3.
The three numbers, as they are consecutive, will contain:
This means that the digit sums of the three consecutive numbers will have:
This means that the digit sum of the concatenated number will have a remainder of 0 + 1 + 2 = 3 = 0 on division by 3, meaning that it will be a multiple of 3
"Digit sum" is not doing what the question asks you to do... which is to splice the numbers together.
Log in to reply
But once you splice them, you want to take the digit sum of the spliced number to determine whether this sum is divisible by three.
"the digit sum of the concatenated number".
The numbers are first concatenated and then the digit sum is evaluated to determine divisibility by 3.
Brilliant proof. Hope it will pass the incorrect proof by Nashita in upvotes at some point...
Divisibility by 3 is true if the sum of the digits of a number add up to 3 or a multiple thereof. Let's define the first of the consecutive numbers as a . Notice that a can also be written as a = a 0 + 1 0 a 1 + 1 0 0 a 2 + 1 0 0 0 a 3 ⋯ and consequently a + 1 = 1 + a 0 + 1 0 a 1 + 1 0 0 a 2 + 1 0 0 0 a 3 ⋯ a + 2 = 2 + a 0 + 1 0 a 1 + 1 0 0 a 2 + 1 0 0 0 a 3 ⋯ Notice that a 0 , a 1 , a 2 , a 3 , ⋯ are the digits of a , thus we will only concern ourselves with those with the following expressions. Adding all three right hand sides of the previous equations (and disregarding the powers of 1 0 ) results in 3 + 3 a 0 + 3 a 1 + 3 a 2 + 3 a 3 ⋯ 3 ( 1 + a 0 + a 1 + a 2 + a 3 ⋯ ) Clearly, adding the digits of a , a + 1 , and a + 2 results in a number with its digits also adding up to 3 or a multiple thereof. Thus, a number formed by the concatenation of 3 consecutive integers is always divisible by 3 .
sorry but there is a flaw in your reasoning,
Eg.
Lets take a => 129 => 9 + 2 * 10 + 1 * 10^2 => a0 + 10
a1 + 100
a2
such that a0 = 9 , a1 = 2, a2 = 1.
Now (a+1) => 130 => 1 + 9 + 2*10 + 1 * 10^2 //is mathematically correct BUT
if I ask you what is the sum of the digits of (a+1) by your reasoning you would say it is (1 + a0 + a1 + a2 ) => (1 + 9 + 2 + 1) => (13) which is incorrect since sum of digits is actually 4.
flaw might be related to modular arithmetic may be, I feel so , I don't know.
Log in to reply
I didn't account for the cases where adding 1 or 2 to a results in carrying. Thanks for letting me know :P.
Such a number can be written as ( n − 1 ) ⋅ 1 0 a + n ⋅ 1 0 b + ( n + 1 ) . Modulo 3, this is equivalent to ( n − 1 ) ⋅ 1 a + n ⋅ 1 b + ( n + 1 ) = ( n − 1 ) + n + ( n + 1 ) = 3 n ≡ 0 . Thus the number is a multiple of 3.
Let us take the middle number as 'n' then the three consecutive numbers are (n-1) , n, (n+1) respectively.
Now, the sum of the three numbers= (n-1) + n +(n+1)=3n.
It is clear sum of three consecutive numbers always multiple of 3. This implies concatenation of any three consecutive numbers is always multiple of 3.
Therefore, the numbers Dr. Frankenthree creates in this way always multiples of 3
The statement of the problem clearly says that the number contructed by three consecutive positive integers say m, n, p is taken literarly as a new new number mnp and not m+n+p. Now if m=1 and n =2 and p=3 then the constructed number will be 123 which cannot be devided by 3!!!! Therefore the correct answer is NO!
Log in to reply
123 divided by 3 is 41. So, you cannot show that answer would be no.
check: https://brilliant.org/practice/divisibility-3/?p=1
123 is divisible by 3. Since sum of digits is 1+2+3=6 is divisible by 3.
Let the three consecutive integers be a , a + 1 and a + 2 , with a having n digits. Then the concatenated number N = a × 1 0 2 ( n − 1 ) + ( a + 1 ) × 1 0 n − 1 + ( a + 2 ) . Then, we have:
N ≡ a × 1 0 2 ( n − 1 ) + ( a + 1 ) × 1 0 n − 1 + ( a + 2 ) (mod 3) = a + ( a + 1 ) + ( a + 2 ) (mod 3) = 3 a + 3 (mod 3) = 0 (mod 3)
Yes , it is true that all numbers obtained in such a way are always divisible by 3.
@Naren Bhandari , numbers on their (such as 3 in this problem) in a problem need not be in LaTex.
Log in to reply
I see the problem has been edited. Thank you Sir, for your suggestion .
Log in to reply
Not my suggestion. It is the practice in Brilliant.org. I was told by the Brilliant staff before.
Log in to reply
@Chew-Seong Cheong – I see . Thank you for conveying me the practice of Brilliants.
All the numbers can be expressed as
n(n+1)(n+2)
where n is the root number, and the brackets DON'T signify multiplication.
How do we know it is divisible by three?
Simply sum the digits.
Summing
n+n+n+1+2 gives 3n + 3. Which is clearly divisible by 3.
This will also hold for ANY three consecutive rational numbers written side to side. Thank you.
You forgot that the position of digits matter and that n is not necessary a digit for instance if n = 198
Summing
n+n+1+n+2
don't give the sum of digits! It gives the sum of numbers only. See example in other comment.
Consider that with three consecutive numbers, you can substract one from the highest number and add it to the lowest number without changing the sum total. This results in three identical numbers, which obviously always can be divided by three.
大家好!these numbers is regular because they follow a rule.For example:789 = 888 - 99,and 141516 = 151515 - 99999.It's obvious that 888,99,151515 and 99999 can be divided by 3,so the result of their subtraction can be divided by 3.I'm Chinese so my English is not good,some of the words I even used translator.I might make some grammatical errors,sorry.
I like your solution! I find it ingenious! Can you generalise it to form a mathematical proof?
Log in to reply
sorry!although I can understand your comment,it's difficult for me to express it in English.So could you mind if I answer in Chinese?
Method 1:
When we observe carefully we come to know that for any three numbers there will be at least one number which will be a multiple of 3 . Therefore, Dr. Frankenstein can always create such numbers .
Method 2 :
Let the three numbers be a , ( a − 1 ) , ( a − 2 ) . Now we will add the numbers and if it is divisible by 3 the number is also divisible by three .
a + a - 1 + a - 2 = 3a - 3 = 3(a - 1)
So, now it is clear that the number will always be a multiple the 3 .
1 2 3 4 5 6 7 8 9 10 11 12 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
If Dr. Frankenthree ALWAYS multiplies by three as shown in the problem, then all of products will be a multiples of three. It’s as simple as that!
Recall that a number is divisible by 3 if and only if the sum of its digits is divisible by 3.
Let S(n) == n mod 3. So S(n) = 0 iff n is divisible by 3 iff the sum of its digits is divisible by 3. More generally, S(n) is the remainder when n is divided by 3.
Given an arbitrary integer n we wish to prove that the concatenation N=n|(n+1)|(n+2) is divisible by 3.
Using the 'sum of digits' formulation, it is clear that S(N) = S(n) + S(n+1) + S(n+2). Also it's clear that {S(n),S(n+1),S(n+2)} = {0,1,2} : if S(n) = 0, S(n+1) = 1, and S(n+2) = 2, and so forth. Each value appears exactly one. Thus S(N) = S(n) + S(n+1) + S(n+2) = 0 + 1 + 2 == 0 mod 3. Thus N is divisible by 3.
If we add all the intergars of a number up and its product is divisible by three, we know the number is divisible by three.
For this problem, because all ranges come in a group of three consecutive digits, we just have to break down the range into 3 singular groups of 3 of numbers. This would look like turning the number 123 into the categories of 1,2, and 3. Then we see that a pattern occurs where all numbers will fit into one of two possibilities: one number divisible by three paired with either two other odd numbers (such as 567) or paired with one odd and one even number (such as 678).
Since all odd numbers can be factored down into a 1 (a prime number multiplied by 1 and itself) and all even numbers can be factored down to a 2, the pair of one even, one odd, and one divisible by three will clearly add up to a number divisible by three since this version factored down will always look like this: 2+1+3=6 and 6/3=2 and is divisible.
Now for the second option where one digit is divisible by three and the other two are odd numbers, we can see that consecutively, all odd numbers one digit away from one another have a difference of three (see 567: 7-5=3). This means any number with option two will factor down to 3+3=6 and then 6/3=2 to show that this option will always be divisible by three as well.
Therefore, any three consecutive numbers will contain one number divisible by 3 and two other numbers that will add up to 3, thus creating a product that is always divisible by 3.
Three consecutive integers always have exactly one that is divisible by 3, this that number can be discarded altogether from the whole process, as the sum of its digits is surely divisible by three. The concatenation of the other two can be written as 1 0 n × x + y where x and y are the numbers, n being the length of the number x (concatenating 46 and 47 means 1 0 2 × 4 6 + 4 7 ). But 1 0 n × x + y = 9 . . 9 × x + x + y , 9..9 having n digits, all nines. Since that multiplication will always end up as divisible by 3, we can discard it as well, and what we are left with is x + y. If the original number we discarded was before or after these numbers (like 45, 46, 47, where we discarded 45), then x-1 is divisible by 3, y=x+1, so x + y = ( x − 1 + 1 ) + ( x − 1 + 2 ) = 2 × ( x − 1 ) + 3 which is divisible by three. If the original number we discarded was between these numbers (like 44,45, 46, where we discarded 45), then x+1 is divisible by 3, y=x+2, so x + y = 2 x + 2 = 2 ( x + 1 ) , again, divisible by three. Q.E.D.
(x)+(x+1)+(x+2) = 3x+3 =3(x+1) hence divisible by 3
Given any 3 consecutive numbers, there will always be exactly one with m o d 3 = 1 , one with m o d 3 = 2 , and one with m o d 3 = 0 . Adding up all the mod's for the three numbers will result in something with m o d 3 = 0 . The divisibility rule for three is that the sum of all the digits is also a multiple of 3 . This also means that adding up the digits of the numbers doesn't change the module for it in m o d 3
If the three numbers that you choose are N, N+1, N+2 We can make them all equal by saying N+1, N+1, N+1 By doing this, you are adding the same number 3 times. The sum is a multiple of three.
Yeah, but the only problem is, this proves it for integers less than 8 only. If a is 8 or greater, your argument doesn't work. You have to generalize a bit.
Consider three consecutive positive integers, one smaller, one slightly bigger and one that's the biggest. We'll call them n-1, n and n+1. If you wanna see that a number is divisible by 3, all you gotta do is sum up the integers of each digit (Ex 678 >>>>> 6+7+8=21=7X3).
So as a general rule (n-1)+n+(n+1)=n+n+n=3n.
See? All you need to know your times tables and you'll see how it all ADDS UP.
[N.B. You can also think of it this way. When ever you pick three consecutive positive numbers, there will always already be one divisible by 3 and the other two will be divisible by three when summed together.]
As a number is a multiple of 3 if the sum of its digits is a multiple of 3, the three numbers n, n+1, and n+2 are concatenated, not added, multiplied, etc. so if the numbers are always multiples of three, 3 n + n + 1 + n + 2 must be an integer. We can simplify the numerator into 3n+3, after which you factor out the three. as 3 3 ( n + 1 ) will always be an integer for all integer values of n, so yes, this will always work.
My solution considers the sum of digits of Dr. Frankenthree's number. Let x be a positive integer of n digits ( n ≥ 1 ) . Here is very many essentially similar solutions which states that x + ( x + 1 ) + ( x + 2 ) is divisible by 3. That is obvious, but I cannot myself see, how this leads to the result, that Dr. Frankenthree's number would be divisible by 3. I have asked it many times in the comments of the solution, but I don't think I have got satisfying answer. So I think this problem is not proven for example in that solution most upvoted just now, and i'll try it myself also.
Let's assume first that x is not in form
(1) 9 9 9 … 9 (n pcs. 9's) or
(2) 9 9 9 … 9 8 (n-1 pcs. 9's and 8)
That means, x is not number which every digits are 9 (case 1) or every other digits are 9 but the last is 8 (case 2) and then x + 1 and x + 2 are also n-digit numbers. Now, Dr. Frankenthree's number is (let's name this A)
A = 1 0 2 n x + 1 0 n ( x + 1 ) + ( x + 2 ) = ( 1 0 2 n + 1 0 n + 1 ) x + ( 1 0 n + 2 )
Sum of digits of number ( 1 0 2 n + 1 0 n + 1 ) is 1 + 1 + 1 = 3 . So, it is divisible by 3 and then ( 1 0 2 n + 1 0 n + 1 ) x is divisible by 3. Sum of digits of number ( 1 0 n + 2 ) is 1 + 2 = 3 , so it is also divisible by 3. Then A is sum of two numbers, both of them divisible by 3 and therefore A itself is divisible by 3.
At last, we have to consider cases (1) and (2). Let's examine them separately. In case (1), x = 9 9 9 … 9 , and sum of digits of Dr. Frankenthree's number is
n ⋅ 9 + 1 + ( 1 + 1 ) = 9 n + 3 = 3 ( 3 n + 1 )
Then it is divisible by 3 and the whole Dr. Frankenthree's number is divisible by 3. In case (2), x = 9 9 9 … 9 8 , sum of digits of Dr. Frankenthree's number is
( ( n − 1 ) ⋅ 9 + 8 ) + ( n ⋅ 9 ) + 1 = 9 n − 9 + 8 + 9 n + 1 = 1 8 n = 3 ⋅ 6 n
And in the similar way Dr. Frankenthree's number is divisible by 3 in this last case also.
Is my solution understandable? I believe i've got it correct. If you find mistakes or something to clarify, please comment! I'm sorry about my english, it's not my native language.
Scala:
(1 to 2000).sliding(3).forall(_.mkString("").toLong % 3 == 0)
returns true
Such numbers are of the form 1 0 0 n + 1 0 ( n + 1 ) + ( n + 2 ) = 1 1 1 n + 1 2 = 3 ⋅ ( 3 7 n + 4 ) .
Which means they are all a multiple of 3. QED
This proves it for positive integers less than 8, not others.
A number is dividable by 3 if and only if the sum of its digits is dividable by 3.
The sum of the digits of the combined number is the sum over the sum of the digits of its components.
To make the sum over the sums dividable by 3 all the partial sums either need to be dividable by 3 themselves or 1 of them is dividable by 3 while the other are of the form 3n-1and 3m+1.
Now the question becomes, if the sum of the digits of 3 sequencal numbers falls in one of the cases above.
So what does it mean to add 1 to a number for the sum of its digits? Well if the last digit is anything from from 0 to 8 it's just increasing the sum by 1 as well. If the last digit is a 9 the next digit will be increased (adding 1 to the sum) while setting the last digit to 0 (subtracting 9 from the sum).
So adding 1 to a number either adds 1 to the sum of its digits or it adds 1 while subtracting a multiple of 9 (if there are multiple 9s at the end of the original number). The subtraction of 9 doesn't change the remainder of the number when dividing by 3.
So starting at some number n adding 1 and adding 1 again will create 3 numbers with sums of their digits of 3x-1 3y and 3z+1 (maybe in different order).
The sum of those sums is 3x + 3y + 3z +1 -1= 3(x+y+z). Therefore the sum of the digits of the combined number is dividable by 3 and the number is as well.
我们可以假设这个数由三个n位数组成的,分别为x-1、x、x+1,那么这个数L= 1 0 2 n ∗ ( x + 1 ) + 1 0 n ∗ x + ( x + 1 ) = x ∗ ( 1 0 2 n + 1 0 n + 1 ) − ( 1 0 2 n − 1 ) 。 其中 1 0 2 n + 1 0 n + 1 各位数之和等于1+0+0+……+1+0+……+1=3是3的倍数, 1 0 2 n − 1 各位数之和等于9+9+……是3的倍数,那么L就是3的倍数。
Problem Loading...
Note Loading...
Set Loading...
Let three consecutive numbers be n , n+1 , n+2 .
We know that a number is divisible by 3 if the sum of its digits is divisible by three .
n+n+1+n+2 = 3n+3 = 3(n+1). [ For example, 333435 here n=33 , n+1=34, n+2=35 . n+n+1+n+2=33+34+35=102 =3x34=3(n+1) ]
Here I am not adding the digits of the number rather I am adding the consecutive numbers that form the number, either way it can shown that it is divisible by 3.
This implies that the concatenation of any three consecutive numbers is always divisible by 3.