Let S(x) denote the sum of the digits of a positive integer x. Find the maximum possible value of S(x+2019)−S(x).
Solution
Solution:
We note that S(a+b)≤S(a)+S(b) for all positive a and b, since carrying over will only decrease the sum of digits. (A bit more rigorously, one can show that S(x+a⋅10b)−S(x)≤a for 0≤a≤9.) Hence we have S(x+2019)−S(x)≤S(2019)=12, and equality can be achieved with x=100000 for example.
Want a route through all this instead of an archive? The track
puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.
Source: MathNet,
licensed CC-BY-4.0.
Statement reproduced verbatim; metadata (topic, difficulty) added by this project.