For every integer n, let S(n) be the sum of the digits of n (in base ten). What is the smallest integer N for which S(S(N))≥10?
Solution
Solution:
The answer is 199. Indeed if n had 1 or 2 digits, n≤99, and then S(n)≤18 and S(S(n))≤9, so n has at least three digits. Observe that for n≤198, still S(n)≤18. Instead if n=199, S(n)=19 and S(S(n))=10, as sought.
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 translated into English from it; metadata (topic, difficulty) added by this project.