Compute the sum of digits in the following difference:
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.
D = Number of 5s = 2018 5 5 5 5 5 ⋯ 5 5 5 5 5 6 2 − Number of 4s =2018 4 4 4 4 4 ⋯ 4 4 4 4 4 5 2 = ( Number of 5s = 2018 5 5 5 5 5 ⋯ 5 5 5 5 5 6 − Number of 4s =2018 4 4 4 4 4 ⋯ 4 4 4 4 4 5 ) ( Number of 5s = 2018 5 5 5 5 5 ⋯ 5 5 5 5 5 6 + Number of 4s =2018 4 4 4 4 4 ⋯ 4 4 4 4 4 5 ) = Number of 1s = 2019 1 1 1 1 1 ⋯ 1 1 1 1 1 × 1 Number of 0s =2018 0 0 0 0 0 ⋯ 0 0 0 0 0 1 = Number of 1s = 4038 1 1 1 1 1 ⋯ 1 1 1 1 1
Therefore the sum of digits of D is 4 0 3 8 .