Friday, 11 March 2016

elementary number theory - Adding sum of leftmost digits




Starting with a number of at least 9 digits, every minute we add the sum of the leftmost 9 digits of the current number to the number itself. Will we always, at some point, see 9 consecutive numbers that are all not divisible by 9?




The sum of the leftmost 9 digits is at most 9×9=81, so we never add more than 81 each time. Consequently, when the number is large enough, the leftmost 9 digits will stay the same for more than 9 minutes. We can wait until the leftmost 9 digits is divisible by 9, to make sure that we have 9 consecutive numbers that leave the same remainder when divided by 9. If we can ensure that at some point this remainder is not 0, we would be done.


Answer




Let an be the nth number. Clearly, the sequence {an}n is strictly increasing and hence unbounded. Let M=10m for some m11 and such that M>a1. Then there is a minimal n0 with an0M. As noted by the OP, an0an01+81, hence certainly an0 has leading digits 100000000. This means that the sequence will grow in steps of 1 for a while, namely until we hit 10m+10m8 exactly. From here on, we will advance in steps of 2 until we hit 10m+210m8 exactly. Now follow steps of 3 until we hit 10m+310m8+2, then steps of size 4 until we hit 10m+410m8+2, then steps of size 5 until we hit 10m+510m8+2, then steps of size 6 until 10m+610m8+4. Note that 10m+510m8+2+k6 is not a multiple of 9 (or even a multiple of 3). Thus we have found 10m869 consecutive terms that are not multiples of 9


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find lim without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...