Ilikebugs
- 94
- 0
View attachment 6241 Is there a better way than guess and check? Also is there a way for a 3 digit number to get to 3 steps, because 999 only goes to 2.
Ilikebugs said:the digit sum is the same?
Ilikebugs said:The ones digit is subtracted by 1 and the tens digit is added by 1
MarkFL said:Correct! :D
So this leave the digit sum unchanged. What about if $n$ ends in one or more zeroes? What can we do then? (Thinking)
greg1313 said:Alternatively, observe that the digit sum for consecutive numbers increases by 1 as we add 1, "rolling over" to 1 as we increase by one from a digit sum of 9. Since 999 - 99 = 900 and 900/9 = 100, there are 100 numbers in the given range with a digit sum of 5.
MarkFL said:Greg, I'm just curious, had you ever heard of "digit sums" before this thread? I hadn't. It seems a topic for a rich exploration. :D