Maths Olympiad Prep

Library / /38 of 196

Algebra Difficulty 4.6 AIME Prove it Soviet Union

Problem:
Let f(n)f(n) be the sum of nn and its digits. For example, f(34)=41f(34) = 41. Is there an integer such that f(n)=1980f(n) = 1980? Show that given any positive integer mm we can find nn such that f(n)=mf(n) = m or m+1m + 1.

Solution

Solution:
If the last digit of nn is not 99, then f(n+1)=f(n)+2f(n + 1) = f(n) + 2. If the last digit of nn is 99, then f(n+1)<f(n)f(n + 1) < f(n). On the other hand, ff clearly achieves arbitrarily large values. Also f(1)=1f(1) = 1.

Now consider any m>1m > 1. Let MM be the smallest integer such that f(M)>mf(M) > m. Then f(M1)mf(M - 1) \leq m. Since f(M)>f(M1)f(M) > f(M - 1) we must have f(M)=f(M1)+2f(M) = f(M - 1) + 2. Hence either f(M)=m+1f(M) = m + 1 or f(M1)=mf(M - 1) = m.

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.