|
||||
Title: Digit sum of three consecutive numbers Post by Christine on Mar 19th, 2013, 10:38am Is there a method to finding a positive integer x such that each of DigitSum(x), DigitSum(x-1) and DigitSum(x+1) is divisible by a certain prime number? Say the prime number is 7 or 17, how to find the smallest integer x? |
||||
Title: Re: Digit sum of three consecutive numbers Post by towr on Mar 19th, 2013, 11:11am Either ds(x-1) and ds(x), or ds(x) and ds(x+1) are consecutive numbers; so they can't be divisible by the same number (>1). |
||||
Title: Re: Digit sum of three consecutive numbers Post by pex on Mar 19th, 2013, 11:15am on 03/19/13 at 10:38:59, Christine wrote:
If I understand the question correctly, this does not seem possible. At least one of the differences DigitSum(x)-DigitSum(x-1) and DigitSum(x+1)-DigitSum(x) is going to be 1, so those two digit sums will be coprime. Edit: not fast enough... |
||||
Title: Re: Digit sum of three consecutive numbers Post by Christine on Mar 19th, 2013, 12:02pm Sorry I got it wrong. This is what I found so far: It is possible to find 3 consecutive integers such two of them have their digitsum divisible by a certain prime p and other integer divisible by the same prime p. For example, 156999, 157000 and 157001 DigitSum(156999) = 1+5+6+9+9+9 = 39 = 3*13 DigitSum(157000) = 1+5+7+0+0+0 = 13 157001 = 13 * 12077 I don't whether this is a known or perhaps interesting result. And how to explain this? But I find it very cool. |
||||
Title: Re: Digit sum of three consecutive numbers Post by pex on Mar 19th, 2013, 12:25pm Aha. Barring errors in my program that took all of two minutes to write, the smallest triple for p=7 is DigitSum(609999) = 42 = 6*7 DigitSum(610000) = 7 610001 = 87143*7. For p=17: DigitSum(17899) = 34 = 2*17 DigitSum(17900) = 17 17901 = 1053*17 |
||||
Title: Re: Digit sum of three consecutive numbers Post by towr on Mar 20th, 2013, 12:22am Then for 19, I'd say 19899999999999999999 => 9*19 19900000000000000000 => 19 19900000000000000001 = 1047368421052631579*19 However, I don't think it was Christine's intent that it's necessarily the first two where you take the digit sum. So you might get a smaller result by taking the digit sum of the first and last, or the last two. |
||||
Title: Re: Digit sum of three consecutive numbers Post by pex on Mar 20th, 2013, 12:30am on 03/20/13 at 00:22:31, towr wrote:
I had convinced myself that that couldn't happen last night, but I don't recall why, and it's not making much sense now that it's morning. So... you're probably right. |
||||
Title: Re: Digit sum of three consecutive numbers Post by towr on Mar 20th, 2013, 10:20am For example: ds(419) = 2*7 420 = 10*7 ds(421) = 1*7 |
||||
Title: Re: Digit sum of three consecutive numbers Post by Christine on Mar 20th, 2013, 5:18pm on 03/20/13 at 10:20:44, towr wrote:
Nice! is the triplet (419, 420, 421) the smallest divisible by 7? what are the smallest four consecutive integers with the same property? |
||||
Title: Re: Digit sum of three consecutive numbers Post by pex on Mar 21st, 2013, 12:26am on 03/20/13 at 17:18:52, Christine wrote:
on 03/20/13 at 17:18:52, Christine wrote:
|
||||
Title: Re: Digit sum of three consecutive numbers Post by ravibhole_1 on Apr 7th, 2013, 9:53am It is not possible |
||||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |