Let A denote the set of all integers n such that 1≤n≤10000, and moreover the sum of the decimal digits of n is 2. Find the sum of the squares of the elements of A.
A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.
Solution
From the given conditions, we want to calculate i=0∑3j=i∑3(10i+10j)2 By observing the formula, we notice that each term is an exponent of 10.106 shows up 7 times, 105 shows up 2 times, 104 shows up 9 times, 103 shows up 4 times, 102 shows up 9 times, 10 shows 2 times, 1 shows up 7 times. Thus the answer is 7294927.
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: Omni-MATH,
licensed Apache-2.0.
Statement and solution reproduced as published; topic and difficulty added by this site.