Let be the sum of the decimal digits of the largest 2017-digit multiple of 7 and be the sum of the decimal digits of the smallest 2017-digit multiple of 7. Find .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
The largest is
a = 7 . ⌊ 7 1 0 2 0 1 7 ⌋
note that
1 0 2 0 1 7 = 7 × t + 3 ⟹ t = 7 1 0 2 0 1 7 − 3 ⟹ a = 7 × t = 1 0 2 0 1 7 − 3
a has 2016 9 's and 1 7 , so the sum of its digits is A = 9 . 2 0 1 6 + 7
Similarly, the smallest is
b = 7 . ( ⌊ 7 1 0 2 0 1 6 + 1 ) ⌋
and
1 0 2 0 1 6 = 7 × k + 1 ⟹ k = 7 1 0 2 0 1 6 − 1 ⟹ b = 7 × ( k + 1 ) = 1 0 2 0 1 6 − 1 + 7 = 1 0 2 0 1 6 + 6
b has 2015 0 's, 1 1 and 1 6 , so the sum of its digits is B = 1 + 6
Finally A − B = 2 0 1 6 × 9